* [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain
@ 2012-01-21 23:13 bugzilla at busybox.net
2012-01-31 19:43 ` [Buildroot] [Bug 4718] " bugzilla at busybox.net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2012-01-21 23:13 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=4718
Summary: python (built for powerpc) distutils has paths to host
compiler toolchain
Product: buildroot
Version: 2011.11
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: bvwelch at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
I suspect that I probably missed somewhere that I could have set this up, and I
think I can workaround it using distutil.cfg, but I was surprised that when I
ran "python setup.py build_ext --inplace", the errors were showing path names
from the host where I ran buildroot, rather than my native powerpc toolchain.
Otherwise, buildroot is working great, thank you!
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 4718] python (built for powerpc) distutils has paths to host compiler toolchain
2012-01-21 23:13 [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain bugzilla at busybox.net
@ 2012-01-31 19:43 ` bugzilla at busybox.net
2012-02-01 17:23 ` bugzilla at busybox.net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2012-01-31 19:43 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=4718
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2012-01-31 19:43:30 UTC ---
Python support for cross-compilation is quite horrible, so the problem may be
quite hard to fix.
Could you give some steps to reproduce what you are seeing?
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 4718] python (built for powerpc) distutils has paths to host compiler toolchain
2012-01-21 23:13 [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain bugzilla at busybox.net
2012-01-31 19:43 ` [Buildroot] [Bug 4718] " bugzilla at busybox.net
@ 2012-02-01 17:23 ` bugzilla at busybox.net
2013-05-26 10:55 ` bugzilla at busybox.net
2013-07-10 13:19 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2012-02-01 17:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=4718
--- Comment #2 from William Welch <bvwelch@gmail.com> 2012-02-01 17:23:06 UTC ---
(In reply to comment #1)
> Python support for cross-compilation is quite horrible, so the problem may be
> quite hard to fix.
>
> Could you give some steps to reproduce what you are seeing?
First, may I say that with some more research I found a workaround that is easy
and works good.
But, here is what happens without the workaround:
python setup.py build_ext --inplace
running build_ext
building '_ncapio' extension
creating build
creating build/temp.linux-ppc-2.7
/home/bwelch/jan23a/buildroot-2011.11/output/host/usr/bin/powerpc-unknown-linux-uclibc-gcc
-fno-strict-aliasing -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c _ncapio.c -o
build/temp.linux-ppc-2.7/_ncapio.o
unable to execute
/home/bwelch/jan23a/buildroot-2011.11/output/host/usr/bin/powerpc-unknown-linux-uclibc-gcc:
No such file or directory
error: command
'/home/bwelch/jan23a/buildroot-2011.11/output/host/usr/bin/powerpc-unknown-linux-uclibc-gcc'
failed with exit status 1
Note that instead of using my native powerpc 'gcc' and 'ld', somehow it tried
to use pathnames from my host computer's cross-toolcain??
------------------------
Now the simple workaround:
export CC='gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
export LDSHARED='ld -shared'
running build_ext
building '_ncapio' extension
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -fno-strict-aliasing
-pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
-I/usr/include/python2.7 -c _ncapio.c -o build/temp.linux-ppc-2.7/_ncapio.o
ld -shared build/temp.linux-ppc-2.7/_ncapio.o -L/usr/lib -lpython2.7 -o
/root/ncapio/_ncapio.so
# works fine
thank you! buildroot, python, native gcc all working great
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 4718] python (built for powerpc) distutils has paths to host compiler toolchain
2012-01-21 23:13 [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain bugzilla at busybox.net
2012-01-31 19:43 ` [Buildroot] [Bug 4718] " bugzilla at busybox.net
2012-02-01 17:23 ` bugzilla at busybox.net
@ 2013-05-26 10:55 ` bugzilla at busybox.net
2013-07-10 13:19 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2013-05-26 10:55 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=4718
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |gustavo at zacarias.com.ar
|.org |
--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2013-05-26 10:54:21 UTC ---
Giving this bug to Gustavo, since he's been working on Python cross-compilation
issues recently.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 4718] python (built for powerpc) distutils has paths to host compiler toolchain
2012-01-21 23:13 [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain bugzilla at busybox.net
` (2 preceding siblings ...)
2013-05-26 10:55 ` bugzilla at busybox.net
@ 2013-07-10 13:19 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2013-07-10 13:19 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=4718
Gustavo Zacarias <gustavo@zacarias.com.ar> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Gustavo Zacarias <gustavo@zacarias.com.ar> 2013-07-10 13:18:00 UTC ---
Target toolchain is deprecated so this bug is basically invalid/wontfix now.
Building modules in the target isn't supported nor encouraged.
*IF* you wanted to patch this for an older version of buildroot you'd need to
tweak $(TARGET_DIR)/usr/lib/python2.7/config/Makefile and substitute the
appropiate CC/CXX/AR/RANLIB/PYTHON_FOR_BUILD/PGEN_FOR_BUILD definitions to
those matching the target.
But it's completely unsupported, it may or may not work and might need
additional tweaking.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-10 13:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-21 23:13 [Buildroot] [Bug 4718] New: python (built for powerpc) distutils has paths to host compiler toolchain bugzilla at busybox.net
2012-01-31 19:43 ` [Buildroot] [Bug 4718] " bugzilla at busybox.net
2012-02-01 17:23 ` bugzilla at busybox.net
2013-05-26 10:55 ` bugzilla at busybox.net
2013-07-10 13:19 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox