Summary: | Cross-building native 32-bit gcc fails on 64-bit system | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Le Cuirot <chewi> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | tomwij |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://gcc.gnu.org/ml/gcc/2010-08/msg00103.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
James Le Cuirot
2013-01-26 12:10:09 UTC
It's probably worth mentioning that I just hit the equivalent problem with Python 3... LONG_BIT definition appears wrong for platform (bad gcc/glibc config?) And I was able to workaround it in the same manner, applying -m32 to CFLAGS and LDFLAGS in the "cross-configure" step. A proper solution would be very helpful. Aha, just found a much better fix in Python's case. I'll file a separate bug report for that. 1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report. Never mind. I decided to make doubly sure that it wasn't my own cross-building scripts causing the problem and it turns out it was. I try not to do anything too outlandish but it turns out merely setting CONFIG_SITE to some value breaks it, even if you set it to /usr/share/config.site, which is what it uses by default. Very odd. Please close this as invalid. Sorry for the noise. |