From owner-freebsd-python@freebsd.org Tue May 30 15:57:34 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F50DB8233D for ; Tue, 30 May 2017 15:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 16BD768812 for ; Tue, 30 May 2017 15:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1623BB8233C; Tue, 30 May 2017 15:57:34 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15DC8B8233B for ; Tue, 30 May 2017 15:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0416C68810 for ; Tue, 30 May 2017 15:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4UFvX5Q024676 for ; Tue, 30 May 2017 15:57:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 219658] devel/py-pip: wrong reference of /nxb-bin/usr/bin/cc when building c packages Date: Tue, 30 May 2017 15:57:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Some People X-Bugzilla-Who: yzgyyang@outlook.com 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2017 15:57:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219658 Bug ID: 219658 Summary: devel/py-pip: wrong reference of /nxb-bin/usr/bin/cc when building c packages Product: Ports & Packages Version: Latest Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: yzgyyang@outlook.com Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org It seems that FreeBSD uses some cross-compile tools on arm devices (and may= be other embedded platforms) which will cause build errors when building c packages (cffi as an example). References of cc is /nxb-bin/usr/bin/cc in /usr/local/lib/python2.7/_sysconfigdata.py Log: root@beaglebone:~ # pip install cffi Collecting cffi Using cached cffi-1.10.0.tar.gz Complete output from command python setup.py egg_info: unable to execute '/nxb-bin/usr/bin/cc': No such file or directory unable to execute '/nxb-bin/usr/bin/cc': No such file or directory No working compiler found, or bogus compiler options passed to the compiler from Python's distutils module. See the error messages above. (If they are about -mno-fused-madd and you are on OS/X 10.8, see http://stackoverflow.com/questions/22313407/ .) ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cIAYEn/cffi/ Temporary workaround: sed -i '' 's/\/nxb-bin\/usr\/bin\/cc/\/usr\/bin\/cc/g' /usr/local/lib/python2.7/_sysconfigdata.py --=20 You are receiving this mail because: You are the assignee for the bug.=