Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2017 15:57:32 +0000
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
Message-ID:  <bug-219658-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219658-21822>