FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-02-2011, 09:53 AM
 
Default unable to compile gcc 4.5.3-r1

Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following error
when doing so:

mkdir -p -- x86_64-pc-linux-gnu/libgomp
Checking multilib configuration for libgomp...
Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script
/usr/share/crossdev/include/site/x86_64-linux-gnu
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for
x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include
checking for C compiler default output file name...
configure: error: in
`/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I have searched google and looked at bugs.gentoo.org, but no joy.

I am running unstable amd64 gentoo.

Any assistance would be appreciated.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici@ccs.covici.com
 
Old 09-02-2011, 10:05 AM
Dale
 
Default unable to compile gcc 4.5.3-r1

covici@ccs.covici.com wrote:

Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following error
when doing so:

mkdir -p -- x86_64-pc-linux-gnu/libgomp
Checking multilib configuration for libgomp...
Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script
/usr/share/crossdev/include/site/x86_64-linux-gnu
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for
x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include
checking for C compiler default output file name...
configure: error: in
`/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I have searched google and looked at bugs.gentoo.org, but no joy.

I am running unstable amd64 gentoo.

Any assistance would be appreciated.



Google worked here for me but usually when I have a problem, it fails.
I guess Google treats you the same as me. lol I found this:


http://forums.gentoo.org/viewtopic-t-294109.html

That help any?

Dale

:-) :-)
 
Old 09-02-2011, 10:16 AM
 
Default unable to compile gcc 4.5.3-r1

Dale <rdalek1967@gmail.com> wrote:

> covici@ccs.covici.com wrote:
> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following error
> > when doing so:
> >
> > mkdir -p -- x86_64-pc-linux-gnu/libgomp
> > Checking multilib configuration for libgomp...
> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
> > configure: loading site script /usr/share/config.site
> > configure: loading site script /usr/share/crossdev/include/site/linux
> > configure: loading site script
> > /usr/share/crossdev/include/site/x86_64-linux-gnu
> > configure: creating cache ./config.cache
> > checking for --enable-version-specific-runtime-libs... no
> > checking for --enable-generated-files-in-srcdir... no
> > checking build system type... x86_64-pc-linux-gnu
> > checking host system type... x86_64-pc-linux-gnu
> > checking target system type... x86_64-pc-linux-gnu
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking for
> > x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
> > /usr/x86_64-pc-linux-gnu/include -isystem
> > /usr/x86_64-pc-linux-gnu/sys-include
> > checking for C compiler default output file name...
> > configure: error: in
> > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details.
> >
> > I have searched google and looked at bugs.gentoo.org, but no joy.
> >
> > I am running unstable amd64 gentoo.
> >
> > Any assistance would be appreciated.
> >
>
> Google worked here for me but usually when I have a problem, it fails.
> I guess Google treats you the same as me. lol I found this:
>
> http://forums.gentoo.org/viewtopic-t-294109.html
>
> That help any?
Nope, this only happens in that specific situation, most things compile
normally. I didn't see that post for that reason -- I was looking for
something more specific.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici@ccs.covici.com
 
Old 09-02-2011, 10:44 AM
Blakawk
 
Default unable to compile gcc 4.5.3-r1

On 02.09.2011 12:16, covici@ccs.covici.com wrote:

Dale <rdalek1967@gmail.com> wrote:


covici@ccs.covici.com wrote:
> Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following
error

> when doing so:
>
> mkdir -p -- x86_64-pc-linux-gnu/libgomp
> Checking multilib configuration for libgomp...
> Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
> configure: loading site script /usr/share/config.site
> configure: loading site script
/usr/share/crossdev/include/site/linux

> configure: loading site script
> /usr/share/crossdev/include/site/x86_64-linux-gnu
> configure: creating cache ./config.cache
> checking for --enable-version-specific-runtime-libs... no
> checking for --enable-generated-files-in-srcdir... no
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... x86_64-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for
> x86_64-pc-linux-gnu-gcc...
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc

> -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem

> /usr/x86_64-pc-linux-gnu/include -isystem
> /usr/x86_64-pc-linux-gnu/sys-include
> checking for C compiler default output file name...
> configure: error: in
>
`/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':

> configure: error: C compiler cannot create executables
> See `config.log' for more details.
>
> I have searched google and looked at bugs.gentoo.org, but no joy.
>
> I am running unstable amd64 gentoo.
>
> Any assistance would be appreciated.
>

Google worked here for me but usually when I have a problem, it
fails.

I guess Google treats you the same as me. lol I found this:

http://forums.gentoo.org/viewtopic-t-294109.html

That help any?
Nope, this only happens in that specific situation, most things
compile
normally. I didn't see that post for that reason -- I was looking
for

something more specific.


Please provide the so-called config.log to see what happened (normally
located in
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log).


--
Blog: http://gentooist.com
Twitter: http://twitter.com/blakawk
 
Old 09-02-2011, 11:15 AM
Dale
 
Default unable to compile gcc 4.5.3-r1

covici@ccs.covici.com wrote:

Dale<rdalek1967@gmail.com> wrote:



Google worked here for me but usually when I have a problem, it fails.
I guess Google treats you the same as me. lol I found this:

http://forums.gentoo.org/viewtopic-t-294109.html

That help any?

Nope, this only happens in that specific situation, most things compile
normally. I didn't see that post for that reason -- I was looking for
something more specific.



Did you check out the link that was also on that page? Here it is:

http://forums.gentoo.org/viewtopic.php?t=27486

It's hard to give a "specific" fix when we don't know much about the
error. All we can do is point and hope one or the other hits the mark.
;-)


Dale

:-) ;-)
 
Old 09-02-2011, 11:56 AM
Pandu Poluan
 
Default unable to compile gcc 4.5.3-r1

(Sorry for top-posting; Gmail java mobile client sucks)

Also, ensure that you have enough free inodes if you are using
ext[2-4] filesystem. Use 'df -i' to check.

I once failed emerging gcc-4.5.3 because I ran out of inodes. That was
when I have a single partition for root, with slightly less than
320'000 inodes.

I was forced to re-create the filesystem, and finally decided to use
ReiserFS instead. You may want to use ReiserFS at least for /var/tmp
to prevent more inodes problems. After all, /var/tmp (especially
/var/tmp/portage) consumes inodes like a hungry dog.

Rgds,


On 2011-09-02, Dale <rdalek1967@gmail.com> wrote:
> covici@ccs.covici.com wrote:
>> Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following error
>> when doing so:
>>
>> mkdir -p -- x86_64-pc-linux-gnu/libgomp
>> Checking multilib configuration for libgomp...
>> Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
>> configure: loading site script /usr/share/config.site
>> configure: loading site script /usr/share/crossdev/include/site/linux
>> configure: loading site script
>> /usr/share/crossdev/include/site/x86_64-linux-gnu
>> configure: creating cache ./config.cache
>> checking for --enable-version-specific-runtime-libs... no
>> checking for --enable-generated-files-in-srcdir... no
>> checking build system type... x86_64-pc-linux-gnu
>> checking host system type... x86_64-pc-linux-gnu
>> checking target system type... x86_64-pc-linux-gnu
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /bin/mkdir -p
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> checking for
>> x86_64-pc-linux-gnu-gcc...
>> /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
>> -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
>> -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
>> /usr/x86_64-pc-linux-gnu/include -isystem
>> /usr/x86_64-pc-linux-gnu/sys-include
>> checking for C compiler default output file name...
>> configure: error: in
>> `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details.
>>
>> I have searched google and looked at bugs.gentoo.org, but no joy.
>>
>> I am running unstable amd64 gentoo.
>>
>> Any assistance would be appreciated.
>>
>
> Google worked here for me but usually when I have a problem, it fails.
> I guess Google treats you the same as me. lol I found this:
>
> http://forums.gentoo.org/viewtopic-t-294109.html
>
> That help any?
>
> Dale
>
> :-) :-)
>
>


--
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/
 
Old 09-02-2011, 12:11 PM
 
Default unable to compile gcc 4.5.3-r1

Blakawk <blakawk@gentooist.com> wrote:

> On 02.09.2011 12:16, covici@ccs.covici.com wrote:
> > Dale <rdalek1967@gmail.com> wrote:
> >
> >> covici@ccs.covici.com wrote:
> >> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following
> >> error
> >> > when doing so:
> >> >
> >> > mkdir -p -- x86_64-pc-linux-gnu/libgomp
> >> > Checking multilib configuration for libgomp...
> >> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
> >> > configure: loading site script /usr/share/config.site
> >> > configure: loading site script
> >> /usr/share/crossdev/include/site/linux
> >> > configure: loading site script
> >> > /usr/share/crossdev/include/site/x86_64-linux-gnu
> >> > configure: creating cache ./config.cache
> >> > checking for --enable-version-specific-runtime-libs... no
> >> > checking for --enable-generated-files-in-srcdir... no
> >> > checking build system type... x86_64-pc-linux-gnu
> >> > checking host system type... x86_64-pc-linux-gnu
> >> > checking target system type... x86_64-pc-linux-gnu
> >> > checking for a BSD-compatible install... /usr/bin/install -c
> >> > checking whether build environment is sane... yes
> >> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> >> > checking for gawk... gawk
> >> > checking whether make sets $(MAKE)... yes
> >> > checking for
> >> >
> >> x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> >> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> >> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
> >> -isystem
> >> > /usr/x86_64-pc-linux-gnu/include -isystem
> >> > /usr/x86_64-pc-linux-gnu/sys-include
> >> > checking for C compiler default output file name...
> >> > configure: error: in
> >> >
> >> `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
> >> > configure: error: C compiler cannot create executables
> >> > See `config.log' for more details.
> >> >
> >> > I have searched google and looked at bugs.gentoo.org, but no joy.
> >> >
> >> > I am running unstable amd64 gentoo.
> >> >
> >> > Any assistance would be appreciated.
> >> >
> >>
> >> Google worked here for me but usually when I have a problem, it
> >> fails.
> >> I guess Google treats you the same as me. lol I found this:
> >>
> >> http://forums.gentoo.org/viewtopic-t-294109.html
> >>
> >> That help any?
> > Nope, this only happens in that specific situation, most things
> > compile
> > normally. I didn't see that post for that reason -- I was looking
> > for
> > something more specific.
>
> Please provide the so-called config.log to see what happened (normally
> located in
> /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log).

OK, here is a section of config.log -- I hope its not too much.

COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-altivec --disable-fixed-point --without-ppl --without-cloog
--disable-lto --enable-nls --without-included-gettext
--with-system-zlib --disable-werror --enable-secureplt
--enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
--enable-checking=release --disable-libgcj
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-\__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1
p1.0, pie-0.4.5'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
configure:3638: $? = 0
configure:3627:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -V >&5
xgcc: '-V' must come at the start of the command line
configure:3638: $? = 1
configure:3627:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -qversion >&5
xgcc: unrecognized option '-qversion'
xgcc: no input files
configure:3638: $? = 1
configure:3658: checking for C compiler default output file name
configure:3680:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe -ggdb
conftest.c >&5
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:3684: $? = 1
configure:3721: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3727: error: in
| `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
configure:3731: error: C compiler cannot create executables


--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici@ccs.covici.com
 
Old 09-02-2011, 12:20 PM
Blakawk
 
Default unable to compile gcc 4.5.3-r1

On 02.09.2011 14:11, covici@ccs.covici.com wrote:

Blakawk <blakawk@gentooist.com> wrote:


On 02.09.2011 12:16, covici@ccs.covici.com wrote:
> Dale <rdalek1967@gmail.com> wrote:
>
>> covici@ccs.covici.com wrote:
>> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following
>> error
>> > when doing so:
>> >
>> > mkdir -p -- x86_64-pc-linux-gnu/libgomp
>> > Checking multilib configuration for libgomp...
>> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
>> > configure: loading site script /usr/share/config.site
>> > configure: loading site script
>> /usr/share/crossdev/include/site/linux
>> > configure: loading site script
>> > /usr/share/crossdev/include/site/x86_64-linux-gnu
>> > configure: creating cache ./config.cache
>> > checking for --enable-version-specific-runtime-libs... no
>> > checking for --enable-generated-files-in-srcdir... no
>> > checking build system type... x86_64-pc-linux-gnu
>> > checking host system type... x86_64-pc-linux-gnu
>> > checking target system type... x86_64-pc-linux-gnu
>> > checking for a BSD-compatible install... /usr/bin/install -c
>> > checking whether build environment is sane... yes
>> > checking for a thread-safe mkdir -p... /bin/mkdir -p
>> > checking for gawk... gawk
>> > checking whether make sets $(MAKE)... yes
>> > checking for
>> >
>> x86_64-pc-linux-gnu-gcc...
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc

>> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
>> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
>> -isystem
>> > /usr/x86_64-pc-linux-gnu/include -isystem
>> > /usr/x86_64-pc-linux-gnu/sys-include
>> > checking for C compiler default output file name...
>> > configure: error: in
>> >
>>
`/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':

>> > configure: error: C compiler cannot create executables
>> > See `config.log' for more details.
>> >
>> > I have searched google and looked at bugs.gentoo.org, but no
joy.

>> >
>> > I am running unstable amd64 gentoo.
>> >
>> > Any assistance would be appreciated.
>> >
>>
>> Google worked here for me but usually when I have a problem, it
>> fails.
>> I guess Google treats you the same as me. lol I found this:
>>
>> http://forums.gentoo.org/viewtopic-t-294109.html
>>
>> That help any?
> Nope, this only happens in that specific situation, most things
> compile
> normally. I didn't see that post for that reason -- I was looking
> for
> something more specific.

Please provide the so-called config.log to see what happened
(normally

located in

/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log).


OK, here is a section of config.log -- I hope its not too much.


COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc

COLLECT_LTO_WRAPPER=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info

--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-altivec --disable-fixed-point --without-ppl --without-cloog
--disable-lto --enable-nls --without-included-gettext
--with-system-zlib --disable-werror --enable-secureplt
--enable-multilib --enable-libmudflap --disable-libssp
--enable-libgomp

--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
--enable-checking=release --disable-libgcj
--enable-languages=c,c++,fortran --enable-shared
--enable-threads=posix

--enable-\__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo
4.5.3-r1

p1.0, pie-0.4.5'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
configure:3638: $? = 0
configure:3627:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -V >&5
xgcc: '-V' must come at the start of the command line
configure:3638: $? = 1
configure:3627:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -qversion >&5
xgcc: unrecognized option '-qversion'
xgcc: no input files
configure:3638: $? = 1
configure:3658: checking for C compiler default output file name
configure:3680:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
-isystem /usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe
-ggdb

conftest.c >&5
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:3684: $? = 1
configure:3721: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3727: error: in
|

`/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
configure:3731: error: C compiler cannot create executables


Looking on Google for "undefined reference to __libc_csu_init" leads to
several gentoo forum threads which seems to indicate that removing
/lib/libc.so symlink may solve the problem.


--
Blog: http://gentooist.com
Twitter: http://twitter.com/blakawk
 
Old 09-02-2011, 02:22 PM
 
Default unable to compile gcc 4.5.3-r1

Dale <rdalek1967@gmail.com> wrote:

> covici@ccs.covici.com wrote:
> > /usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe -ggdb
> > conftest.c>&5
>
> Why is the slash behind pipe up there? Shouldn't -pipe/ be pipe?
>
> Hope that is the fix.

It looks like an artifact of the config, its not there in make.conf.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici@ccs.covici.com
 
Old 09-02-2011, 02:46 PM
 
Default unable to compile gcc 4.5.3-r1

Blakawk <blakawk@gentooist.com> wrote:

> On 02.09.2011 14:11, covici@ccs.covici.com wrote:
> > Blakawk <blakawk@gentooist.com> wrote:
> >
> >> On 02.09.2011 12:16, covici@ccs.covici.com wrote:
> >> > Dale <rdalek1967@gmail.com> wrote:
> >> >
> >> >> covici@ccs.covici.com wrote:
> >> >> > Hi. I am unable to compile gcc 4.5.3-r1 -- I get the following
> >> >> error
> >> >> > when doing so:
> >> >> >
> >> >> > mkdir -p -- x86_64-pc-linux-gnu/libgomp
> >> >> > Checking multilib configuration for libgomp...
> >> >> > Configuring stage 1 in x86_64-pc-linux-gnu/libgomp
> >> >> > configure: loading site script /usr/share/config.site
> >> >> > configure: loading site script
> >> >> /usr/share/crossdev/include/site/linux
> >> >> > configure: loading site script
> >> >> > /usr/share/crossdev/include/site/x86_64-linux-gnu
> >> >> > configure: creating cache ./config.cache
> >> >> > checking for --enable-version-specific-runtime-libs... no
> >> >> > checking for --enable-generated-files-in-srcdir... no
> >> >> > checking build system type... x86_64-pc-linux-gnu
> >> >> > checking host system type... x86_64-pc-linux-gnu
> >> >> > checking target system type... x86_64-pc-linux-gnu
> >> >> > checking for a BSD-compatible install... /usr/bin/install -c
> >> >> > checking whether build environment is sane... yes
> >> >> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> >> >> > checking for gawk... gawk
> >> >> > checking whether make sets $(MAKE)... yes
> >> >> > checking for
> >> >> >
> >> >>
> >> x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> >> >> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> >> >> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
> >> >> -isystem
> >> >> > /usr/x86_64-pc-linux-gnu/include -isystem
> >> >> > /usr/x86_64-pc-linux-gnu/sys-include
> >> >> > checking for C compiler default output file name...
> >> >> > configure: error: in
> >> >> >
> >> >>
> >> `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
> >> >> > configure: error: C compiler cannot create executables
> >> >> > See `config.log' for more details.
> >> >> >
> >> >> > I have searched google and looked at bugs.gentoo.org, but no
> >> joy.
> >> >> >
> >> >> > I am running unstable amd64 gentoo.
> >> >> >
> >> >> > Any assistance would be appreciated.
> >> >> >
> >> >>
> >> >> Google worked here for me but usually when I have a problem, it
> >> >> fails.
> >> >> I guess Google treats you the same as me. lol I found this:
> >> >>
> >> >> http://forums.gentoo.org/viewtopic-t-294109.html
> >> >>
> >> >> That help any?
> >> > Nope, this only happens in that specific situation, most things
> >> > compile
> >> > normally. I didn't see that post for that reason -- I was looking
> >> > for
> >> > something more specific.
> >>
> >> Please provide the so-called config.log to see what happened
> >> (normally
> >> located in
> >>
> >> /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp/config.log).
> >
> > OK, here is a section of config.log -- I hope its not too much.
> >
> >
> > COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> >
> > COLLECT_LTO_WRAPPER=/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/lto-wrapper
> > Target: x86_64-pc-linux-gnu
> > Configured with:
> > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
> > --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
> > --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
> > --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
> > --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
> > --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
> >
> > --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
> > --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
> > --disable-altivec --disable-fixed-point --without-ppl --without-cloog
> > --disable-lto --enable-nls --without-included-gettext
> > --with-system-zlib --disable-werror --enable-secureplt
> > --enable-multilib --enable-libmudflap --disable-libssp
> > --enable-libgomp
> > --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
> > --enable-checking=release --disable-libgcj
> > --enable-languages=c,c++,fortran --enable-shared
> > --enable-threads=posix
> > --enable-\__cxa_atexit --enable-clocale=gnu
> > --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo
> > 4.5.3-r1
> > p1.0, pie-0.4.5'
> > Thread model: posix
> > gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
> > configure:3638: $? = 0
> > configure:3627:
> > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
> > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
> > /usr/x86_64-pc-linux-gnu/sys-include -V >&5
> > xgcc: '-V' must come at the start of the command line
> > configure:3638: $? = 1
> > configure:3627:
> > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
> > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
> > /usr/x86_64-pc-linux-gnu/sys-include -qversion >&5
> > xgcc: unrecognized option '-qversion'
> > xgcc: no input files
> > configure:3638: $? = 1
> > configure:3658: checking for C compiler default output file name
> > configure:3680:
> > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc
> > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/
> > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/
> > -isystem /usr/x86_64-pc-linux-gnu/include -isystem
> > /usr/x86_64-pc-linux-gnu/sys-include -g -O2 -mtune=core2 -pipe
> > -ggdb
> > conftest.c >&5
> > /usr/lib/../lib64/crt1.o: In function `_start':
> > (.text+0x12): undefined reference to `__libc_csu_fini'
> > /usr/lib/../lib64/crt1.o: In function `_start':
> > (.text+0x19): undefined reference to `__libc_csu_init'
> > collect2: ld returned 1 exit status
> > configure:3684: $? = 1
> > configure:3721: result:
> > configure: failed program was:
> > | /* confdefs.h */
> > | #define PACKAGE_NAME "GNU OpenMP Runtime Library"
> > | #define PACKAGE_TARNAME "libgomp"
> > | #define PACKAGE_VERSION "1.0"
> > | #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
> > | #define PACKAGE_BUGREPORT ""
> > | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
> > | #define PACKAGE "libgomp"
> > | #define VERSION "1.0"
> > | /* end confdefs.h. */
> > |
> > | int
> > | main ()
> > | {
> > |
> > | ;
> > | return 0;
> > | }
> > configure:3727: error: in
> > |
> >
> > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgomp':
> > configure:3731: error: C compiler cannot create executables
>
> Looking on Google for "undefined reference to __libc_csu_init" leads
> to several gentoo forum threads which seems to indicate that removing
> /lib/libc.so symlink may solve the problem.

Yep, that did it -- thanks so much. I have software which needs that
link to be there, so I have to put it back in normal use -- I hope I
don't run into strange things like that anymore.

Thanks again.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici@ccs.covici.com
 

Thread Tools




All times are GMT. The time now is 12:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org