Gentoo Archives: gentoo-user

From: covici@××××××××××.com
To: blakawk@×××××××××.com
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] unable to compile gcc 4.5.3-r1
Date: Fri, 02 Sep 2011 14:47:36
Message-Id: 13206.1314974776@ccs.covici.com
In Reply to: Re: [gentoo-user] unable to compile gcc 4.5.3-r1 by Blakawk
1 Blakawk <blakawk@×××××××××.com> wrote:
2
3 > On 02.09.2011 14:11, covici@××××××××××.com wrote:
4 > > Blakawk <blakawk@×××××××××.com> wrote:
5 > >
6 > >> On 02.09.2011 12:16, covici@××××××××××.com wrote:
7 > >> > Dale <rdalek1967@×××××.com> wrote:
8 > >> >
9 > >> >> covici@××××××××××.com wrote:
10 > >> >> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following
11 > >> >> error
12 > >> >> > when doing so:
13 > >> >> >
14 > >> >> > mkdir -p -- x86_64-pc-linux-gnu/libgomp
15 > >> >> > Checking multilib configuration for libgomp...
16 > >> >> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
17 > >> >> > configure: loading site script /usr/share/config.site
18 > >> >> > configure: loading site script
19 > >> >> /usr/share/crossdev/include/site/linux
20 > >> >> > configure: loading site script
21 > >> >> > /usr/share/crossdev/include/site/x86_64-linux-gnu
22 > >> >> > configure: creating cache ./config.cache
23 > >> >> > checking for --enable-version-specific-runtime-libs... no
24 > >> >> > checking for --enable-generated-files-in-srcdir... no
25 > >> >> > checking build system type... x86_64-pc-linux-gnu
26 > >> >> > checking host system type... x86_64-pc-linux-gnu
27 > >> >> > checking target system type... x86_64-pc-linux-gnu
28 > >> >> > checking for a BSD-compatible install... /usr/bin/install -c
29 > >> >> > checking whether build environment is sane... yes
30 > >> >> > checking for a thread-safe mkdir -p... /bin/mkdir -p
31 > >> >> > checking for gawk... gawk
32 > >> >> > checking whether make sets $(MAKE)... yes
33 > >> >> > checking for
34 > >> >> >
35 > >> >>
36 > >> x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
37 > >> >> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gc\c/
38 > >> >> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
39 > >> >> -isystem
40 > >> >> > /usr/x86_64-pc-linux-gnu/include -isystem
41 > >> >> > /usr/x86_64-pc-linux-gnu/sys-include
42 > >> >> > checking for C compiler default output file name...
43 > >> >> > configure: error: in
44 > >> >> >
45 > >> >>
46 > >> `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
47 > >> >> > configure: error: C compiler cannot create executables
48 > >> >> > See `config.log' for more details.
49 > >> >> >
50 > >> >> > I have searched google and looked at bugs.gentoo.org, but no
51 > >> joy.
52 > >> >> >
53 > >> >> > I am running unstable amd64 gentoo.
54 > >> >> >
55 > >> >> > Any assistance would be appreciated.
56 > >> >> >
57 > >> >>
58 > >> >> Google worked here for me but usually when I have a problem, it
59 > >> >> fails.
60 > >> >> I guess Google treats you the same as me. lol I found this:
61 > >> >>
62 > >> >> http://forums.gentoo.org/viewtopic-t-294109.html
63 > >> >>
64 > >> >> That help any?
65 > >> > Nope, this only happens in that specific situation, most things
66 > >> > compile
67 > >> > normally. I didn't see that post for that reason -- I was looking
68 > >> > for
69 > >> > something more specific.
70 > >>
71 > >> Please provide the so-called config.log to see what happened
72 > >> (normally
73 > >> located in
74 > >>
75 > >> /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log).
76 > >
77 > > OK, here is a section of config.log -- I hope its not too much.
78 > >
79 > >
80 > > COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
81 > >
82 > > COLLECT_LTO_WRAPPER=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/lto-wrapper
83 > > Target: x86_64-pc-linux-gnu
84 > > Configured with:
85 > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
86 > > --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
87 > > --includedir=/u\sr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
88 > > --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
89 > > --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man\
90 > > --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
91 > >
92 > > --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
93 > > --host=x86_64-pc-lin\ux-gnu --build=x86_64-pc-linux-gnu
94 > > --disable-altivec --disable-fixed-point --without-ppl --without-cloog
95 > > --disable-lto --enable-nls --without-included-gettext
96 > > \--with-system-zlib --disable-werror --enable-secureplt
97 > > --enable-multilib --enable-libmudflap --disable-libssp
98 > > --enable-libgomp
99 > > --with-python-dir=/share/gcc-dat\a/x86_64-pc-linux-gnu/4.5.3/python
100 > > --enable-checking=release --disable-libgcj
101 > > --enable-languages=c,c++,fortran --enable-shared
102 > > --enable-threads=posix
103 > > --enable-\__cxa_atexit --enable-clocale=gnu
104 > > --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo
105 > > 4.5.3-r1
106 > > p1.0, pie-0.4.5'
107 > > Thread model: posix
108 > > gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
109 > > configure:3638: $? = 0
110 > > configure:3627:
111 > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
112 > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
113 > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
114 > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
115 > > /usr/x86_64-pc-linux-gnu/sys-include -V >&5
116 > > xgcc: '-V' must come at the start of the command line
117 > > configure:3638: $? = 1
118 > > configure:3627:
119 > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
120 > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
121 > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
122 > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
123 > > /usr/x86_64-pc-linux-gnu/sys-include -qversion >&5
124 > > xgcc: unrecognized option '-qversion'
125 > > xgcc: no input files
126 > > configure:3638: $? = 1
127 > > configure:3658: checking for C compiler default output file name
128 > > configure:3680:
129 > > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
130 > > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
131 > > -B/usr/x86_64-pc-linu\x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
132 > > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
133 > > /usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe\
134 > > -ggdb
135 > > conftest.c >&5
136 > > /usr/lib/../lib64/crt1.o: In function `_start':
137 > > (.text+0x12): undefined reference to `__libc_csu_fini'
138 > > /usr/lib/../lib64/crt1.o: In function `_start':
139 > > (.text+0x19): undefined reference to `__libc_csu_init'
140 > > collect2: ld returned 1 exit status
141 > > configure:3684: $? = 1
142 > > configure:3721: result:
143 > > configure: failed program was:
144 > > | /* confdefs.h */
145 > > | #define PACKAGE_NAME "GNU OpenMP Runtime Library"
146 > > | #define PACKAGE_TARNAME "libgomp"
147 > > | #define PACKAGE_VERSION "1.0"
148 > > | #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
149 > > | #define PACKAGE_BUGREPORT ""
150 > > | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
151 > > | #define PACKAGE "libgomp"
152 > > | #define VERSION "1.0"
153 > > | /* end confdefs.h. */
154 > > |
155 > > | int
156 > > | main ()
157 > > | {
158 > > |
159 > > | ;
160 > > | return 0;
161 > > | }
162 > > configure:3727: error: in
163 > > |
164 > >
165 > > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
166 > > configure:3731: error: C compiler cannot create executables
167 >
168 > Looking on Google for "undefined reference to __libc_csu_init" leads
169 > to several gentoo forum threads which seems to indicate that removing
170 > /lib/libc.so symlink may solve the problem.
171
172 Yep, that did it -- thanks so much. I have software which needs that
173 link to be there, so I have to put it back in normal use -- I hope I
174 don't run into strange things like that anymore.
175
176 Thanks again.
177
178 --
179 Your life is like a penny. You're going to lose it. The question is:
180 How do
181 you spend it?
182
183 John Covici
184 covici@××××××××××.com