Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412283 - sys-devel/gcc-4.4.6-r1 - onftest.c:1: error: bad value (atom) for -march= switch
Summary: sys-devel/gcc-4.4.6-r1 - onftest.c:1: error: bad value (atom) for -march= switch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-17 04:54 UTC by Kai Dietrich
Modified: 2012-04-17 15:38 UTC (History)
0 users

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


Attachments
emerge --info =sys-devel/gcc-4.4.6-r1 (emerge_info,4.74 KB, text/plain)
2012-04-17 04:57 UTC, Kai Dietrich
Details
work/build/gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,38.42 KB, application/x-bzip)
2012-04-17 04:59 UTC, Kai Dietrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Dietrich 2012-04-17 04:54:42 UTC
On a gentoo hardened system, the compile of sys-devel/gcc-4.4.6-r1 fails during the configure phase.

Here is a short snippet of the build log:

checking for x86_64-pc-linux-gnu-ranlib... /usr/x86_64-pc-linux-gnu/bin/ranlib
checking for x86_64-pc-linux-gnu-strip... /usr/x86_64-pc-linux-gnu/bin/strip
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/x86_64-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1



Reproducible: Always

Steps to Reproduce:
1. emerge -uDNv world
2. wait for gcc build to fail
Comment 1 Kai Dietrich 2012-04-17 04:57:42 UTC
Created attachment 309213 [details]
emerge --info =sys-devel/gcc-4.4.6-r1
Comment 2 Kai Dietrich 2012-04-17 04:59:43 UTC
Created attachment 309215 [details]
work/build/gcc-build-logs.tar.bz2
Comment 3 Kai Dietrich 2012-04-17 05:07:55 UTC
output of 'emerge -pqv =sys-devel/gcc-4.4.6-r1':

[ebuild     U ] sys-devel/gcc-4.4.6-r1 [4.4.5] USE="cxx fortran gtk hardened mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-libssp) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla (-libffi%)"

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-17 15:32:43 UTC
Comment on attachment 309215 [details]
work/build/gcc-build-logs.tar.bz2

Please attach the config.log to this bug report.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-17 15:33:13 UTC
(In reply to comment #4)
> Comment on attachment 309215 [details]
> work/build/gcc-build-logs.tar.bz2
> 
> Please attach the config.log to this bug report.

Skip that, you included it in the tarball.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-17 15:38:05 UTC
./x86_64-pc-linux-gnu/libgcc/config.log:

configure:2415: /var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -o conftest -g -pipe -O2 -march=atom -mtune=atom -O2     conftest.c  >&5
conftest.c:1: error: bad value (atom) for -march= switch
conftest.c:1: error: bad value (atom) for -mtune= switch
configure:2418: $? = 1
configure:2590: checking for suffix of object files
configure:2611: /var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -g -pipe -O2 -march=atom -mtune=atom -O2    conftest.c >&5
conftest.c:1: error: bad value (atom) for -march= switch
conftest.c:1: error: bad value (atom) for -mtune= switch
configure:2614: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2627: error: in `/var/tmp/portage/sys-devel/gcc-4.4.6-r1/work/build/x86_64-pc-linux-gnu/libgcc':
configure:2630: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


You are using a newer gcc which understands -march=atom to build an older gcc which does not, so you need to stick to something like -march/-mtune=i686 in your CFLAGS.