This is the mail archive of the cygwin mailing list for the Cygwin 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]

clang++ 3.5.2: undefined reference to `__gxx_personality_v0'


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



Attachment: cygcheck.tar.xz
Description: Binary data

--
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

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