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