Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244310 - dev-libs/glib-2.16.5: failed to emerge with CHOST and CFLAGS for an x86_64 architecture
Summary: dev-libs/glib-2.16.5: failed to emerge with CHOST and CFLAGS for an x86_64 ar...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 15:04 UTC by Simone Eupili
Modified: 2011-10-30 23:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Eupili 2008-10-25 15:04:45 UTC
The compilation fails with these settings in /etc/make.conf

CHOST="x86_64-pc-linux-gnu"
CFLAGS -march=athlon64

It works replacing with:

CHOST="i686-pc-linux-gnu"
CFLAGS -march=athlon



Reproducible: Always

Steps to Reproduce:
1. Set the make.conf for an amd64 architecture
2. emerge glib
3. Error!!

Actual Results:  
{standard input}: Assembler messages: 
{standard input}:72: Error: suffix or operands invalid for `cmpxchg' 
make[4]: *** [gatomic.lo] Error 1 
make[4]: Leaving directory `/var/tmp/portage/glib-2.16.5/work/glib-2.16.5/glib' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/var/tmp/portage/glib-2.16.5/work/glib-2.16.5/glib' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/var/tmp/portage/glib-2.16.5/work/glib-2.16.5/glib' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/glib-2.16.5/work/glib-2.16.5' 
make: *** [all] Error 2 

!!! ERROR: dev-libs/glib-2.16.5 failed.
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-25 23:03:15 UTC
Please include the complete build.log file, and also the output after running "emerge --info".  Thanks...  5:)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-26 14:09:45 UTC
Please gather all information in this bug report, not on external sites.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-26 14:12:08 UTC
Please read up on how to change CHOST[1], why you cannot turn an x86 OS into an amd64 OS just like that[2], and if you still want more, read up on how to do real cross compiling[3].


[1] http://www.gentoo.org/doc/en/change-chost.xml
[2] http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#upgradex86
[3] http://www.gentoo.org/proj/en/base/embedded/cross-development.xml