Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379969 - sys-devel/gcc-4.6.1-r1 fails to build
Summary: sys-devel/gcc-4.6.1-r1 fails to build
Status: RESOLVED DUPLICATE of bug 362315
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-20 14:36 UTC by zvasylvv
Modified: 2011-12-02 23:48 UTC (History)
0 users

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


Attachments
build log (build.log.zip,133.09 KB, application/zip)
2011-08-20 14:43 UTC, zvasylvv
Details
env (environment,190.27 KB, application/octet-stream)
2011-08-20 14:43 UTC, zvasylvv
Details
emerge --info (emerge_info,4.13 KB, text/plain)
2011-08-20 14:44 UTC, zvasylvv
Details
emerge -pqv output (emerge_pqv,30.60 KB, text/plain)
2011-08-20 14:44 UTC, zvasylvv
Details
file that pointed out to by error message (config.log,12.91 KB, text/plain)
2011-08-20 14:46 UTC, zvasylvv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zvasylvv 2011-08-20 14:36:32 UTC
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
Comment 1 zvasylvv 2011-08-20 14:43:23 UTC
Created attachment 284017 [details]
build log
Comment 2 zvasylvv 2011-08-20 14:43:47 UTC
Created attachment 284019 [details]
env
Comment 3 zvasylvv 2011-08-20 14:44:32 UTC
Created attachment 284021 [details]
emerge --info
Comment 4 zvasylvv 2011-08-20 14:44:45 UTC
Created attachment 284023 [details]
emerge -pqv output
Comment 5 zvasylvv 2011-08-20 14:46:10 UTC
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`
Comment 6 Rafał Mużyło 2011-08-20 17:06:39 UTC
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 ?
Comment 7 zvasylvv 2011-08-20 18:53:53 UTC
(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
Comment 8 zvasylvv 2011-08-21 13:57:42 UTC
(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?
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2011-08-26 01:40:18 UTC
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.
Comment 10 Billy DeVincentis 2011-09-14 12:27:06 UTC
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...
Comment 11 SpanKY gentoo-dev 2011-09-14 15:12:36 UTC
your bug is not related at all.  please file a new one.
Comment 12 zvasylvv 2011-09-24 16:42:31 UTC
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
Comment 13 zvasylvv 2011-09-24 16:43:33 UTC
(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"

:)
Comment 14 SpanKY gentoo-dev 2011-12-02 23:48:02 UTC

*** This bug has been marked as a duplicate of bug 362315 ***