clang++ 3.5.2: undefined reference to `__gxx_personality_v0'

Falk Tannhäuser falk.tannhauser@free.fr
Thu Jun 18 23:24:00 GMT 2015


The following little C++ program produces several linker errors of the kind

/tmp/vec2-125520.o:(.xdata+0x8): undefined reference to `__gxx_personality_v0'
/tmp/vec2-125520.o:(.xdata+0x8): relocation truncated to fit: rva32 against undefined symbol `__gxx_personality_v0'

_____________________
#include <vector>

int main()
{
    std::vector<int> v;
    v.push_back(0);
    return 0;
}
_____________________

The command line is
     clang++ vec2.cxx
The problem goes away when adding the option "-fno-exceptions" to the command line, but of course this precludes the use of exceptions.

The version is:
clang++ --version
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix

g++ 4.9.2 on the same platform is not concerned.
Is this a known problem? In the archives, I only found reports of similar problems concerning older CLANG versions.
cygcheck output attached.

Falk



-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.tar.xz
Type: application/octet-stream
Size: 17392 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150618/97571f85/attachment.obj>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list