I tried couple of times to build 4.6.1 (to get a second host for distcc for my anoter pc) but it failed all the time Reproducible: Always Steps to Reproduce: 1. Unmask and add keywords for 4.6.1-r1 2. try to emerge it 3. Actual Results: Build fails Expected Results: Build finishes successfully I tried to google on message I get. the most relevant page/thread was following http://gcc.gnu.org/ml/fortran/2011-07/msg00001.html Most helpful message there was next >>>>>>>>>>>>> Look at http://gcc.gnu.org/wiki/FAQ#Configuration_fails_with_.27.27configure:_error:_cannot_compute_suffix_of_object_files:_cannot_compile.27.27._What_is_the_problem.3F your problem is well-known and spread ;-) Probably you're missing some libraries like mpfr, gmp or mpc. You should have an explanation of the error in /u/markus/tmp/gcc4.6.1/build-gcc/x86_64-unknown-linux-gnu/libgcc/config.log <<<<<<<<<<<< At the path they suggest I found a file that contained suspicious 'error' words, but I it did not get any clue for me (file attached) Also that message has a link and there has been told that issue is related to (possibly) missing "MPFR, GMP and MPC". All of them already had been installed in my system. I tried to update those packages to unstable versions and rebuild stable gcc and than install 4.6.1. But no success again :( === I know that installing hard masked system package is an evil, but still I supposed that it at least will compile. Most funny thing is that for my other box (amd based) exactly this version compiled without any glitch
Created attachment 284017 [details] build log
Created attachment 284019 [details] env
Created attachment 284021 [details] emerge --info
Created attachment 284023 [details] emerge -pqv output
Created attachment 284027 [details] file that pointed out to by error message this file was located at `/var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/build/i686-pc-linux-gnu/libgcc`
The actual error is: conftest.c: In function 'main': conftest.c:11:1: internal compiler error: Aborted As the failing test is trivial, that means the at that point built gcc (as the test regards the just built gcc) has been built incorrectly. Are you sure '-march=prescott' is the correct value for you ?
(In reply to comment #6) > The actual error is: > conftest.c: In function 'main': > conftest.c:11:1: internal compiler error: Aborted > As the failing test is trivial, that means the at that point built gcc (as the > test regards the just built gcc) has been built incorrectly. > > Are you sure '-march=prescott' is the correct value for you ? Thanks for tip. Value 'prescott' was used since 4.1.2. And its left till now :) Replaced with core2. Rerun build of gcc-4.4 and after 4.6
(In reply to comment #6) > The actual error is: > conftest.c: In function 'main': > conftest.c:11:1: internal compiler error: Aborted > As the failing test is trivial, that means the at that point built gcc (as the > test regards the just built gcc) has been built incorrectly. > > Are you sure '-march=prescott' is the correct value for you ? It still fails to compile :( Below is a list of what I done: * install binary gcc from http://tinderbox.dev.gentoo.org/ get working gcc * downgrade to stable MPFR, GMP and MPC * rebuild gcc-4.4.5 * replace prescott with core2 for march option in make.conf * rebuild toolchain after march update * run emerge of gcc-4.6.1 I did a diff of logs and error are exactly same Do you have any other ideas?
I don't know what's causing the error, but to use 4.6.1 you're probably going to have to run ~x86. We have several bugs open from people having problems with <glibc-2.12 and I think you may need a newer binutils as well.
I'm having problems here too Generating dependency graph for directory /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/gcc-4.6.1/ Generating dependency graph for directory include/profile/impl/ Generating dependency graph for directory include/ Generating dependency graph for directory /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/gcc-4.6.1/libstdc++-v3/ Generating dependency graph for directory /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/gcc-4.6.1/libstdc++-v3/libsupc++/ Generating dependency graph for directory include/parallel/ Generating dependency graph for directory include/ext/pb_ds/ Generating dependency graph for directory include/profile/ Generating dependency graph for directory include/tr1/ Generating dependency graph for directory include/x86_64-pc-linux-gnu/ Generating file index... Generating directory index... Generating example index... Generating file member index... finalizing index lists... finished... :: :: Fixing up the man pages... rm: cannot remove `*_src_*': No such file or directory :: :: Man pages in /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/doc/doxygen/man :: echo timestamp > stamp-man-doxygen /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/build /var/tmp/portage/sys-devel/gcc-4.6.1-r1/work/gcc-4.6.1 >>> Source compiled. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE "/var/log/sandbox/sandbox-21319.log" VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: open_wr S: deny P: /proc/self/coredump_filter A: /proc/self/coredump_filter R: /proc/9598/coredump_filter C: /usr/lib/jvm/oracle-jdk-bin-1.7/bin/jar -cf@ config-test.jar F: open_wr S: deny P: /proc/self/coredump_filter A: /proc/self/coredump_filter R: /proc/20616/coredump_filter C: /usr/lib/jvm/oracle-jdk-bin-1.7/bin/jar -cf@ config-test.jar -------------------------------------------------------------------------------- * * The following package has failed to build or install: * * (sys-devel/gcc-4.6.1-r1::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/sys-devel/gcc-4.6.1-r1/temp/build.log' * >>> Regenerating /etc/ld.so.cache...
your bug is not related at all. please file a new one.
Sorry for late reply (was busy). Yes, 4.6.1 compiles with glibc 2.12.2 Maybe you we to add an extra dependancy (>glibc-2.12) for 4.6.x Thanks
(In reply to comment #12) > Sorry for late reply (was busy). > > Yes, 4.6.1 compiles with glibc 2.12.2 > > Maybe you we to add an extra dependancy (>glibc-2.12) for 4.6.x > > Thanks >> Maybe you we to add mean "Maybe we need to add" :)
*** This bug has been marked as a duplicate of bug 362315 ***