From owner-freebsd-python@freebsd.org Thu Feb 18 18:41:56 2021 Return-Path: Delivered-To: freebsd-python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3C47E5455E0 for ; Thu, 18 Feb 2021 18:41:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DhNpr13r0z3Gmj for ; Thu, 18 Feb 2021 18:41:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 246735455DF; Thu, 18 Feb 2021 18:41:56 +0000 (UTC) Delivered-To: python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 242665453D7 for ; Thu, 18 Feb 2021 18:41:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DhNpr0LjXz3GZl for ; Thu, 18 Feb 2021 18:41:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F33BE1D68C for ; Thu, 18 Feb 2021 18:41:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 11IIftTc065596 for ; Thu, 18 Feb 2021 18:41:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11IIftts065595 for python@FreeBSD.org; Thu, 18 Feb 2021 18:41:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 253604] lang/python39: use libmpdec from ports Date: Thu, 18 Feb 2021 18:41:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: skrah@bytereef.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2021 18:41:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253604 --- Comment #4 from Stefan Krah --- (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 atomic_uc= har; /usr/include/c++/v1/atomic:2390:typedef atomic=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::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::least uchar_t; /usr/local/include/boost/xpressive/match_results.hpp:1180: typedef numeric::conversion_traits converstion_traits; /usr/local/include/boost/xpressive/detail/dynamic/parse_charset.hpp:81:=20= =20=20 typedef typename boost::uint_t::least uchar_t; /usr/local/include/boost/xpressive/detail/dynamic/parse_charset.hpp:83:=20= =20=20 typedef numeric::conversion_traits converstion_traits; --=20 You are receiving this mail because: You are the assignee for the bug.=