Date: Thu, 18 Feb 2021 18:41:56 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 253604] lang/python39: use libmpdec from ports Message-ID: <bug-253604-21822-Ke2UBR5Nnk@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253604-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-253604-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253604 --- Comment #4 from Stefan Krah <skrah@bytereef.org> --- (In reply to Steve Wills from comment #3) Yes, interesting indeed. I'm on FreeBSD-12.2 (amd64), fully updated. Circumventing the ports machinery: tar xvf Python-3.9.1.tar.xz cd Python-3.9.1 ./configure CC=3Dclang --with-system-libmpdec [...] clang -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -std=3Dc99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden -I./Include/i= nternal -DCONFIG_64=3D1 -DASM=3D1 -I./Include -I. -I/usr/local/include -I/usr/home/stefan/Python-3.9.1/Include -I/usr/home/stefan/Python-3.9.1 -c /usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c -o build/temp.freebsd-12.2-RELEASE-p3-amd64-3.9/usr/home/stefan/Python-3.9.1/M= odules/_decimal/_decimal.o /usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:3283:43: error: u= se of undeclared identifier 'uchar' if (n > 1 || (n =3D=3D 1 && !isascii((uchar)spec.dot[0]))) { ^ /usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:3292:43: error: u= se of undeclared identifier 'uchar' if (n > 1 || (n =3D=3D 1 && !isascii((uchar)spec.sep[0]))) { ^ 2 errors generated. And I can't find any system header that typedefs uchar: [stefan@freebsd-amd64 ~]$ find /usr/include -type f | xargs grep -n "typedef.*uchar" /usr/include/c++/v1/atomic:493:typedef atomic<unsigned char> atomic_uc= har; /usr/include/c++/v1/atomic:2390:typedef atomic<unsigned char>=20=20=20=20=20 atomic_uchar; /usr/include/sys/stdatomic.h:189:typedef _Atomic(unsigned char)=20=20=20=20= =20=20=20=20 atomic_uchar; [stefan@freebsd-amd64 ~]$ find /usr/local/include -type f | xargs grep -n "typedef.*uchar" /usr/local/include/boost/atomic/detail/atomic_template.hpp:1178:typedef ato= mic< unsigned char > atomic_uchar; /usr/local/include/boost/compute/algorithm/detail/radix_sort.hpp:57: typ= edef uchar_ type; /usr/local/include/boost/compute/types/fundamental.hpp:29:typedef cl_uchar uchar_; /usr/local/include/boost/locale/generic_codecvt.hpp:155: typedef CharType uchar; /usr/local/include/boost/locale/generic_codecvt.hpp:457: typedef CharType uchar; /usr/local/include/boost/locale/generic_codecvt.hpp:659: typedef CharType uchar; /usr/local/include/boost/numeric/ublas/detail/returntype_deduction.hpp:33:= =20=20=20 typedef char(&uchar_value_type)[7]; /usr/local/include/boost/regex/v4/char_regex_traits.hpp:48: typedef unsig= ned char uchar_type; /usr/local/include/boost/regex/v4/char_regex_traits.hpp:60: typedef unsig= ned short uchar_type; /usr/local/include/boost/regex/v4/cpp_regex_traits.hpp:636: typedef typename make_unsigned<charT>::type uchar_type; /usr/local/include/boost/wave/cpplexer/re2clex/scanner.hpp:31:typedef unsig= ned char uchar; /usr/local/include/boost/xpressive/match_results.hpp:1178: typedef typename boost::uint_t<CHAR_BIT * sizeof(char_type)>::least uchar_t; /usr/local/include/boost/xpressive/match_results.hpp:1180: typedef numeric::conversion_traits<uchar_t, int> converstion_traits; /usr/local/include/boost/xpressive/detail/dynamic/parse_charset.hpp:81:=20= =20=20 typedef typename boost::uint_t<CHAR_BIT * sizeof(char_type)>::least uchar_t; /usr/local/include/boost/xpressive/detail/dynamic/parse_charset.hpp:83:=20= =20=20 typedef numeric::conversion_traits<uchar_t, int> converstion_traits; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253604-21822-Ke2UBR5Nnk>