Hi Marcus, I find that strange, as FreeBSD 9.1 is the platform where I develop libobjc2...
Can you give me the output from the cmake command? libcxxrt shipped in 9.1 - I'm using it there (it's in /usr/src/lib/libcxxrt if it isn't installed by default, but I think it is). I do have something in my libmap.conf telling everything that tries to use libsupc++ to use libcxxrt, but that's just for testing libcxxrt. David On 13 Mar 2013, at 14:42, Marcus Müller <[email protected]> wrote: > 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/ > > > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/gnustep-dev -- Sent from my brain _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
