This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fedora - undefined reference to `__cxa_call_unexpected'


Hello guys,

sorry i really tried to avoid to post my issue but i couldn't find any
answer for my problem.
Here we go. I try to compile and install gcc version 4.5.3 or 4.5.2.

Using Fedora 16 right now. Here my kernel version:
3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64 x86_64 x86_64
GNU/Linux

Current gcc version is:
gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1) //installed with yum

also all required packages for gcc are installed, so far as i know.
My steps:
./configure     // without any parameter, went well
make    // it's compiling a lot but always run into following errror:

libtool: link: (cd ".libs" && rm -f "libgcj_bc.so.1" && ln -s
"libgcj_bc.so.1.0.0" "libgcj_bc.so.1")
libtool: link: (cd ".libs" && rm -f "libgcj_bc.so" && ln -s
"libgcj_bc.so.1.0.0" "libgcj_bc.so")
libtool: link: ar rc .libs/libgcj_bc.a  libgcj_bc.o
libtool: link: ranlib .libs/libgcj_bc.a
libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln -s
"../libgcj_bc.la" "libgcj_bc.la" )
/bin/sh ./libtool --tag=GCJ  --mode=link
/home/michael/Downloads/gcc-4.5.3/host-x86_64-unknown-linux-gnu/gcc/gcj
-B/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/
-B/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/
-B/home/michael/Downloads/gcc-4.5.3/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include  -m32
-L/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava
-ffloat-store -fomit-frame-pointer -g -O2  -m32  '-m32' -o jv-convert
--main=gnu.gcj.convert.Convert -rpath /usr/local/lib/../lib -shared-libgcc   
-L/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/.libs
libgcj.la 
libtool: link:
/home/michael/Downloads/gcc-4.5.3/host-x86_64-unknown-linux-gnu/gcc/gcj
-B/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/
-B/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/
-B/home/michael/Downloads/gcc-4.5.3/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -m32 -ffloat-store
-fomit-frame-pointer -g -O2 -m32 -m32 -o .libs/jv-convert
--main=gnu.gcj.convert.Convert -shared-libgcc 
-L/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava/.libs
-L/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava
./.libs/libgcj.so -lpthread -lrt -ldl -Wl,-rpath -Wl,/usr/local/lib/../lib
./.libs/libgcj.so: undefined reference to `__cxa_call_unexpected'
collect2: ld returned 1 exit status
make[5]: *** [jv-convert] Error 1
make[5]: Leaving directory
`/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/32/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory
`/home/michael/Downloads/gcc-4.5.3/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/michael/Downloads/gcc-4.5.3'
make: *** [all] Error 2


I read some tickets about  "./.libs/libgcj.so: undefined reference to
`__cxa_call_unexpected'" and seems to be that every version 4.5.x has that
problem. Is there any solution to compile version 4.5.3 or 4.5.2 without
hacking the source code? To be honest I am not a c++ pro, not yet.Maybe I
just missing some parameters?

Thank you really much.
-- 
View this message in context: http://old.nabble.com/Fedora---undefined-reference-to-%60__cxa_call_unexpected%27-tp32875788p32875788.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]