discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Problem compiling libobjc2 on pcbsd 9.1


From: David Chisnall
Subject: Re: Problem compiling libobjc2 on pcbsd 9.1
Date: Mon, 24 Jun 2013 16:46:08 +0100

Hi Stephen,

Please can you confirm that you are trying to build either trunk or RC-2?  This 
looks like an error that I'd expect with RC-1, which should now be fixed.

David

On 24 Jun 2013, at 16:00, Stephen Woolerton <address@hidden> wrote:

> Thanks for your reply David,
> 
> I installed the clang33 port as you suggested, and the libobjc2 build 
> progressed further, but there is still an error. I've copied the results of 
> this build attempt below:-
> 
> address@hidden /usr/local/src/gnustep/dev-libs/libobjc2/Build]# cmake .. 
> -DCMAKE_C_COMPILER=/usr/local/bin/clang33
> -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++33
> -- The C compiler identification is Clang 3.3.0
> -- The CXX compiler identification is Clang 3.3.0
> -- Check for working C compiler: /usr/local/bin/clang33
> -- Check for working C compiler: /usr/local/bin/clang33 -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/local/bin/clang++33
> -- Check for working CXX compiler: /usr/local/bin/clang++33 -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- The ASM compiler identification is Clang
> -- Found assembler: /usr/local/bin/clang33
> -- Warning: Did not find file Compiler/Clang-ASM
> -- Using /usr/lib/libsupc++.so as the C++ runtime library
> -- Looking for include file pthread.h
> -- Looking for include file pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - not found.
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- GNUstep install type set to LOCAL
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /usr/local/src/gnustep/dev-libs/libobjc2/Build
> 
> 
> address@hidden /usr/local/src/gnustep/dev-libs/libobjc2/Build]# make -j8
> Scanning dependencies of target objc
> [  1%] Building C object CMakeFiles/objc.dir/abi_version.c.o
> [  3%] Building C object CMakeFiles/objc.dir/alias_table.c.o
> [  4%] Building C object CMakeFiles/objc.dir/block_to_imp.c.o
> [  6%] Building C object CMakeFiles/objc.dir/caps.c.o
> [  7%] Building C object CMakeFiles/objc.dir/category_loader.c.o
> [  9%] Building C object CMakeFiles/objc.dir/class_table.c.o
> [ 10%] Building C object CMakeFiles/objc.dir/dtable.c.o
> [ 12%] Building C object CMakeFiles/objc.dir/eh_personality.c.o
> [ 13%] Building C object CMakeFiles/objc.dir/encoding2.c.o
> [ 15%] Building C object CMakeFiles/objc.dir/gc_none.c.o
> [ 16%] Building C object CMakeFiles/objc.dir/hash_table.c.o
> [ 18%] Building C object CMakeFiles/objc.dir/hooks.c.o
> [ 19%] Building C object CMakeFiles/objc.dir/ivar.c.o
> [ 21%] Building C object CMakeFiles/objc.dir/legacy_malloc.c.o
> [ 22%] Building C object CMakeFiles/objc.dir/loader.c.o
> [ 24%] Building CXX object CMakeFiles/objc.dir/mutation.m.o
> [ 25%] Building C object CMakeFiles/objc.dir/protocol.c.o
> [ 27%] Building C object CMakeFiles/objc.dir/runtime.c.o
> [ 28%] Building C object CMakeFiles/objc.dir/sarray2.c.o
> [ 30%] Building C object CMakeFiles/objc.dir/selector_table.c.o
> [ 31%] Building C object CMakeFiles/objc.dir/sendmsg2.c.o
> [ 33%] Building C object CMakeFiles/objc.dir/statics_loader.c.o
> [ 34%] Building C object CMakeFiles/objc.dir/toydispatch.c.o
> [ 36%] Building ASM object CMakeFiles/objc.dir/block_trampolines.S.o
> [ 37%] Building ASM object CMakeFiles/objc.dir/objc_msgSend.S.o
> [ 39%] Building C object CMakeFiles/objc.dir/NSBlocks.m.o
> [ 40%] Building C object CMakeFiles/objc.dir/Protocol2.m.o
> [ 42%] Building C object CMakeFiles/objc.dir/arc.m.o
> [ 43%] Building C object CMakeFiles/objc.dir/associate.m.o
> [ 45%] Building C object CMakeFiles/objc.dir/blocks_runtime.m.o
> [ 46%] Building C object CMakeFiles/objc.dir/properties.m.o
> [ 48%] Building CXX object CMakeFiles/objc.dir/objcxx_eh.cc.o
> Linking C shared library libobjc.so
> [ 48%] Built target objc
> Scanning dependencies of target AllocatePair
> Scanning dependencies of target AllocatePair_optimised
> Scanning dependencies of target BlockImpTest
> Scanning dependencies of target BlockImpTest_optimised
> Scanning dependencies of target BlockTest_arc
> Scanning dependencies of target BlockTest_arc_optimised
> [ 50%] Building CXX object
> Test/CMakeFiles/AllocatePair_optimised.dir/AllocatePair.m.o
> [ 53%] Building CXX object Test/CMakeFiles/BlockImpTest.dir/BlockImpTest.m.o
> [ 51%] Building CXX object Test/CMakeFiles/AllocatePair.dir/AllocatePair.m.o
> Scanning dependencies of target BoxedForeignException
> Scanning dependencies of target BoxedForeignException_optimised
> [ 54%] Building CXX object
> Test/CMakeFiles/BlockImpTest_optimised.dir/BlockImpTest.m.o
> [ 56%] Building CXX object Test/CMakeFiles/BlockTest_arc.dir/BlockTest_arc.m.o
> [ 59%] Building CXX object
> Test/CMakeFiles/BoxedForeignException.dir/BoxedForeignException.m.o
> [ 57%] Building CXX object
> Test/CMakeFiles/BlockTest_arc_optimised.dir/BlockTest_arc.m.o
> [ 60%] Building CXX object
> Test/CMakeFiles/BoxedForeignException_optimised.dir/BoxedForeignException.m.o
> Linking C executable AllocatePair
> Linking C executable AllocatePair_optimised
> Linking C executable BlockImpTest
> Linking C executable BlockTest_arc
> Linking C executable BoxedForeignException
> Linking C executable BlockImpTest_optimised
> Linking C executable BlockTest_arc_optimised
> Linking C executable BoxedForeignException_optimised
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable for std::type_info'
> ../libobjc.so.4.6: undefined reference to `vtable 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::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_function_p() const'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `typeinfo for std::type_info'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../libobjc.so.4.6: undefined reference to `std::type_info::~type_info()'
> ../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
> `std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*,
> void**) 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
> `std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*,
> void**) 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
> `std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*,
> void**) 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
> `std::type_info::__do_upcast(__cxxabiv1::__class_type_info const*,
> void**) const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> *** [Test/AllocatePair_optimised] Error code 1
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> *** [Test/BlockImpTest] Error code 1
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> 1 error
> *** [Test/BlockTest_arc] Error code 1
> 1 error
> *** [Test/CMakeFiles/AllocatePair_optimised.dir/all] Error code 2
> 1 error
> *** [Test/CMakeFiles/BlockTest_arc.dir/all] Error code 2
> *** [Test/CMakeFiles/BlockImpTest.dir/all] Error code 2
> *** [Test/AllocatePair] Error code 1
> 1 error
> *** [Test/CMakeFiles/AllocatePair.dir/all] Error code 2
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> *** [Test/BoxedForeignException] Error code 1
> 1 error
> *** [Test/CMakeFiles/BoxedForeignException.dir/all] Error code 2
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> ../libobjc.so.4.6: undefined reference to
> `std::type_info::__is_pointer_p() const'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> *** [Test/BlockTest_arc_optimised] Error code 1
> 1 error
> *** [Test/CMakeFiles/BlockTest_arc_optimised.dir/all] Error code 2
> *** [Test/BlockImpTest_optimised] Error code 1
> 1 error
> *** [Test/CMakeFiles/BlockImpTest_optimised.dir/all] Error code 2
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> *** [Test/BoxedForeignException_optimised] Error code 1
> 1 error
> *** [Test/CMakeFiles/BoxedForeignException_optimised.dir/all] Error code 2
> 8 errors
> *** [all] Error code 2
> 1 error
> 
> -------------------------
> 
> I'm hoping that you can help me to resolve what the issue is.
> 
> Thank you
> Stephen
> 
> 
> On 23/06/13 4:38 AM, David Chisnall wrote: On 22 Jun 2013, at 04:10, Stephen 
> Woolerton wrote:
>>> Hi everyone,
>>> 
>>> I'm hoping someone can help me to compile gnustep-base on PCBSD 9.1.
>>> 
>>> Notes:
>>>  - I'm compiling gnustep-base rather than using ports, in order to use 
>>> blocks.
>>>  - Am using a fresh "jail" made with PCBSD's "warden" and latest ports tree.
>>>  - using clang 3.1
>> Why are you using clang 3.1?  FreeBSD has 3.3 in the tree, and in ports, so 
>> I'd recommend using a newer one...
>> 
> 


-- Sent from my STANTEC-ZEBRA




reply via email to

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