Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28591 Discussions

(.gnu.linkonce.d.DW.ref.__gxx_personality_v0+0x0): undefined reference to `__gxx_personality_v0'

rrodriguez
Beginner
1,004 Views
Hi everybody!
I am trying to compile a f90 program with /opt/intel/fce/9.1.045 (ifort) compiler on a x86-64 system (fedora core 6) and I must use the tecio64.a library, but I find the following error:

tecio64.a(tecxxx.o):(.gnu.linkonce.d.DW.ref.__gxx_personality_v0+0x0): undefined reference to `__gxx_personality_v0'

I guess some link is missing but I don't know which one. Could somebody help me, please?
Thank you very much in advance!!

Rosa
0 Kudos
5 Replies
TimP
Honored Contributor III
1,004 Views
Ifthis library containsC++ functions built by g++ or icpc, you would likely need to add -lstdc++ in your link step.
0 Kudos
TimP
Honored Contributor III
1,004 Views

You may require the same major version of g++ to be active when you build with ifort as the one with which your library was made. Similar restrictions may apply when you run.

0 Kudos
rrodriguez
Beginner
1,004 Views
Thank you very much for your help. I have added the library:

/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libstdc++.a

and it compiles in the right way. But when I execute, it gives me the following error:

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
converttotecplotb 0000000000406761 Unknown Unknown Unknown
converttotecplotb 00000000004080D1 Unknown Unknown Unknown
converttotecplotb 00000000004049F9 Unknown Unknown Unknown
converttotecplotb 00000000004038EA Unknown Unknown Unknown
libc.so.6 000000348061DA44 Unknown Unknown Unknown
converttotecplotb 000000000040382D Unknown Unknown Unknown

where 'converttotecplotb ' is part of the name of my f90 program. Does somebody have some idea about which can be the problem?
Thanks a lot again!
Rosa
0 Kudos
TimP
Honored Contributor III
1,004 Views
This report isn't very helpful. It could be stack overflow, which could be fixed by setting a larger stack. You may have to run with debugger to get more information.
0 Kudos
rrodriguez
Beginner
1,004 Views
I have already solved the problem. Thank you very much for your help.
With kind regards :-)

Rosa
0 Kudos
Reply