Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] AIX5.3 prefix bootstrap gcc-4.2.4 failure
Date: Thu, 08 Apr 2010 16:19:57
Message-Id: 4BBE0215.7090703@gentoo.org
In Reply to: [gentoo-alt] AIX5.3 prefix bootstrap gcc-4.2.4 failure by heroxbd@gmail.com
1 heroxbd@×××××.com wrote:
2 > There are always some unresolved symbol issue in stage 3 of
3 > bootstrap. After another round of STFW, esp. on gcc bugzilla, I think it
4 > is some path issue on AIX linker. ld just couldn't find the right
5 > library to link against.
6
7 Quoting from your 'cmd' attachment:
8 > gcc ... -o cc1-dummy ...
9
10 Are you sure this is stage 3 in building gcc?
11 In stage 2 and above, it is not "gcc" being used, but something like
12 "/path/to/builddir/prev-gcc/xgcc" instead.
13
14 Quoting from your 'debug' attachment:
15 > (ld): i /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a
16 > (ld): i /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc_eh.a
17
18 Your subject says AIX5.3, but your gcc-3.3.2 was built on AIX5.2.
19 This is a really bad idea.
20
21 Also, there is still /opt/freeware/ in library search path - this feels right
22 for stage 1 only, but not for stage 3.
23
24 Or do you have something like LIBPATH or LIBRARY_PATH set in your env?
25
26 > ld: 0711-317 ERROR: Undefined symbol: .__clzdi2
27 > .__clzdi2 [358] ER PR ../.././gcc/combine.c(libbackend.a[combine.o])
28 > 00004f04 .text R_RBR [2102] .extended_count
29 > 00006bc8 .text R_RBR [2262] <.force_to_mode>
30
31 Here I do have _clzdi2.o in builddir, being packed into libgcc.a
32 and thus available when linking cc1-dummy in stage 2 and above.
33
34 I'm doing the built with gcc-3.3.6 installed to /usr/local/, but combine.o
35 from stage1 does not refer to __clzdi2, while it does in stage2 and stage3.
36
37 > ld: 0711-317 ERROR: Undefined symbol: .libintl_dgettext
38 > .libintl_dgettext [96] ER PR ../.././libcpp/files.c(../libcpp/libcpp.a[files.o])
39 > 00001228 .text R_RBR [929] <.report_missing_guard>
40
41 Could you eventually send me (offlist) your complete build log file for gcc,
42 located within prefix-launcher in buildroot/log/gcc.build.*.log
43
44 /haubi/
45 --
46 Michael Haubenwallner
47 Gentoo on a different level