gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building libobjc2 on FreeBSD 9.1 with clang 3.2 using cmake fails


From: Marcus Müller
Subject: Building libobjc2 on FreeBSD 9.1 with clang 3.2 using cmake fails
Date: Wed, 13 Mar 2013 15:42:03 +0100

Hi (David),

I'm trying to build libobjc2 on FreeBSD 9.1 with clang 3.2 using cmake, but this fails miserably. What I did is this:

I checked out libobjc2 SVN r36340 (most recent at the time of writing). My clang is clang version 3.2 (tags/RELEASE_32/final). So I did this:

$ mkdir Build; cd Build
$ CC=clang CXX=clang++ cmake ..

This picked up clang 3.2 as expected. However, running make fails:
[ 48%] Built target objc
Linking C executable AllocatePair
../libobjc.so.4.6: undefined reference to `std::type_info::__is_pointer_p() const'
../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
../libobjc.so.4.6: undefined reference to `std::type_info::__is_function_p() const'
../libobjc.so.4.6: undefined reference to `std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void**) const'
../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [Test/AllocatePair] Error code 1

Stop in /home/znek/Projects/GNUstep/libobjc2/Build.
*** [Test/CMakeFiles/AllocatePair.dir/all] Error code 1

Stop in /home/znek/Projects/GNUstep/libobjc2/Build.
*** [all] Error code 1

Stop in /home/znek/Projects/GNUstep/libobjc2/Build.


Looking at ../CMakeLists.txt, this shouldn't happen, no?

$cat ../CMakeLists.txt
[…]
find_library(CXX_RUNTIME cxxrt)
# If it doesn't, then look for GNU libsupc++.so instead (either works, they're
# ABI compatible).
[…]

I guess libcxxrt is FreeBSD 10 only?


Cheers,


  Marcus


-- 
Marcus Müller  .  .  .  http://www.mulle-kybernetik.com/znek/



Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]