Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc works not correct
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
murray
n00b
n00b


Joined: 01 Mar 2005
Posts: 19

PostPosted: Tue Mar 01, 2005 3:46 pm    Post subject: gcc works not correct Reply with quote

Hi,

After upgrading Gentoo 2004.3 to 2005.0 my gcc works not correctly. When i want to compile somthing, i get the error, that my C compiler cannot creates executables files... Now i know, that the file "crt1.o" does not exist!
So I try to reinstall glibc, but i get now these errors :(

Quote:
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf/readlib.o /va
r/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf/xmalloc.o /var/t
mp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf/xstrdup.o /var/tmp/
portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf/chroot_canon.o /var/t
mp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a -lgcc /var/tmp/
portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a `x86_64-pc-linux-gn
u-gcc --print-file-name=crtend.o` /var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-p
c-linux-gnu-nptl/csu/crtn.o
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofclose.o
)(.text+0x171): In function `fclose':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofclose.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofputs.o)
(.text+0xe0): In function `_IO_fputs':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofputs.o)
(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(wfileops.o
)(.text+0x4b1): In function `_IO_wfile_underflow':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(wfileops.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(fileops.o)
(.text+0xca6): In function `_IO_new_file_underflow':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(fileops.o)
(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x723): In function `vsyslog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x8af): In function `openlog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x94f): In function `closelog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofflush.o
)(.text+0xac): In function `_IO_fflush':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofflush.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofwrite.o
)(.text+0xeb): In function `_IO_fwrite':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofwrite.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf
/ldconfig] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofclose.o
)(.text+0x171): In function `fclose':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofclose.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(wfileops.o
)(.text+0x4b1): In function `_IO_wfile_underflow':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(wfileops.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(fileops.o)
(.text+0xca6): In function `_IO_new_file_underflow':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(fileops.o)
(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x723): In function `vsyslog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x8af): In function `openlog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.text+0x94f): In function `closelog':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(syslog.o)(
.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofflush.o
)(.text+0xac): In function `_IO_fflush':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofflush.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofputs.o)
(.text+0xe0): In function `_IO_fputs':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofputs.o)
(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofwrite.o
)(.text+0xeb): In function `_IO_fwrite':
: undefined reference to `_Unwind_Resume'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/libc.a(iofwrite.o
)(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102/work/build-x86-i686-pc-linux-gnu-nptl/elf
/sln] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20041102 failed.
!!! Function src_compile, Line 743, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



[/quote]Have anybody an idea, what to do?

greetz


P.S.: my make.conf is
Quote:
CFLAGS="-march=k8 -O2" CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="multilib -kde -gnome"
Back to top
View user's profile Send private message
murray
n00b
n00b


Joined: 01 Mar 2005
Posts: 19

PostPosted: Tue Mar 01, 2005 6:48 pm    Post subject: Reply with quote

I was wrong... I have the file "crt1.o"
I found the file in /usr/lib32/ and in /usr/lib64/ ... but how i get gcc to find this file?

Here another error, when i start make menuconfig, i get this:
Quote:
HOSTCC scripts/basic/fixdep
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Must I create a symlink or something?
Back to top
View user's profile Send private message
murray
n00b
n00b


Joined: 01 Mar 2005
Posts: 19

PostPosted: Wed Mar 02, 2005 4:07 pm    Post subject: Reply with quote

*push*

can nobody help me?

Or is there a chance to install gcc new? :?
Back to top
View user's profile Send private message
abz
n00b
n00b


Joined: 18 Nov 2004
Posts: 64
Location: Melbourne

PostPosted: Wed Mar 02, 2005 5:06 pm    Post subject: Reply with quote

Have a look at: https://forums.gentoo.org/viewtopic-t-289911-highlight-crt1.html

abz.
Back to top
View user's profile Send private message
murray
n00b
n00b


Joined: 01 Mar 2005
Posts: 19

PostPosted: Wed Mar 02, 2005 5:11 pm    Post subject: Reply with quote

wooohooooo :D

very big thx!
that fix my problem and now it works perfect... i hope ;)

greetz
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Mar 02, 2005 6:03 pm    Post subject: Reply with quote

abz wrote:
Have a look at: https://forums.gentoo.org/viewtopic-t-289911-highlight-crt1.html

abz.

Thanks abz!

Moved from Gentoo on AMD64.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum