I simply run make in libobjc2 folder (from trunk). Before that I ran '
source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh '.
reza@reza-Aspire-4710:~/Code/gnustep/libobjc2$ make
This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for help.
Making all for library libobjc...
Compiling file abi_version.c ...
Compiling file alias_table.c ...
Compiling file block_to_imp.c ...
block_to_imp.c:43:10: warning: implicit declaration of function
'asprintf' is invalid in C99 [-Wimplicit-function-declaration]
if (0 > asprintf(&tmpPattern, "%s/objc_trampolinesXXXXXXXXXXX", tmp))
^
1 warning generated.
Compiling file caps.c ...
Compiling file category_loader.c ...
Compiling file class_table.c ...
Compiling file dtable.c ...
Compiling file eh_personality.c ...
Compiling file encoding2.c ...
Compiling file gc_none.c ...
Compiling file hash_table.c ...
Compiling file hooks.c ...
Compiling file ivar.c ...
Compiling file loader.c ...
Compiling file protocol.c ...
Compiling file runtime.c ...
Compiling file sarray2.c ...
Compiling file selector_table.c ...
Compiling file sendmsg2.c ...
Compiling file statics_loader.c ...
Compiling file toydispatch.c ...
Compiling file legacy_malloc.c ...
Compiling file NSBlocks.m ...
Compiling file Protocol2.m ...
Compiling file arc.m ...
Compiling file associate.m ...
Compiling file blocks_runtime.m ...
Compiling file mutation.m ...
Compiling file properties.m ...
Compiling file objc_msgSend.S ...
Compiling file block_trampolines.S ...
Linking library libobjc ...
reza@reza-Aspire-4710:~/Code/gnustep/libobjc2$
On Tue, Jul 3, 2012 at 10:01 PM, David Chisnall <[email protected]> wrote:
> How did you compile libobjc2? The Makefile builds libobjcxx.so and should
> install it in /usr/local/lib by default.
>
> David
>
> On 3 Jul 2012, at 15:59, Reza Primardiansyah wrote:
>
>> You're right. There is error there stating that it cannot find
>> libobjcxx as show below. But my self compiled libobjc2 from trunk
>> doesn't yield libobjcxx, only libobjc. What step did I miss?
>> Thanks
>>
>> Making all for framework LanguageKitCodeGen...
>> Linking framework LanguageKitCodeGen ...
>> /usr/bin/ld: cannot find -lobjcxx
>> /usr/bin/ld: cannot find -lobjcxx
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>> Copying resources into the framework wrapper...
>> Making all in Runtime ...
>> Making build-headers for framework LanguageKitRuntime...
>>
>> Build Project: LanguageKitRuntime
>>
>> Making all for framework LanguageKitRuntime...
>> make[3]: Nothing to be done for `internal-framework-compile'.
>> Making all for framework LanguageKit...
>> make[2]: Nothing to be done for `internal-framework-compile'.
>> Copying resources into the framework wrapper...
>>
>>
>> On Tue, Jul 3, 2012 at 5:17 PM, David Chisnall <[email protected]> wrote:
>>> This sounds like the LanguageKit compile failed, please can you check for
>>> errors there?
>>>
>>> David
>>>
>>> On 3 Jul 2012, at 07:36, Reza Primardiansyah wrote:
>>>
>>>> Hi,
>>>> I tried to compile etoile from trunk on ubuntu 12.04 but I had error
>>>> as shown below. I had compiled GNUstep from trunk. Can anyone give me
>>>> a hint about what I did wrong? I use clang from ubuntu.
>>>>
>>>> Build Project: Compiler
>>>>
>>>> Making all for tool edlc...
>>>> Compiling file main.m ...
>>>> Linking tool edlc ...
>>>> ./obj/edlc.obj/main.m.o: In function
>>>> `-[LKCompilerWarningIgnoringDelegate
>>>> compiler:generatedError:details:]':
>>>> /home/reza/Code/Etoile/Languages/Compiler/main.m:44: undefined
>>>> reference to `kLKHumanReadableDescription'
>>>> ./obj/edlc.obj/main.m.o: In function `main':
>>>> /home/reza/Code/Etoile/Languages/Compiler/main.m:204: undefined
>>>> reference to `ETGetOptionsDictionary'
>>>> ./obj/edlc.obj/main.m.o: In function `staticCompileScript':
>>>> /home/reza/Code/Etoile/Languages/Compiler/main.m:136: undefined
>>>> reference to `defaultStaticCompilterWithFile'
>>>> ./obj/edlc.obj/main.m.o: In function `jitScript':
>>>> /home/reza/Code/Etoile/Languages/Compiler/main.m:105: undefined
>>>> reference to `defaultJIT'
>>>> ./obj/edlc.obj/main.m.o:(.data.rel.ro.__objc_class_ref_LKCompiler[__objc_class_ref_LKCompiler]+0x0):
>>>> undefined reference to `__objc_class_name_LKCompiler'
>>>> clang: error: linker command failed with exit code 1 (use -v to see
>>>> invocation)
>>>> make[5]: *** [obj/edlc] Error 1
>>>> make[4]: *** [internal-tool-all_] Error 2
>>>> make[3]: *** [edlc.all.tool.variables] Error 2
>>>> make[2]: *** [internal-all] Error 2
>>>> make[1]: *** [internal-all] Error 2
>>>> make: *** [internal-all] Error 2
>>>>
>>>> I use clang 3 from ubuntu as shown below
>>>>
>>>> $ clang -v
>>>> Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM
>>>> 3.0)
>>>> Target: i386-pc-linux-gnu
>>>> Thread model: posix
>>>>
>>>> _______________________________________________
>>>> Etoile-dev mailing list
>>>> [email protected]
>>>> https://mail.gna.org/listinfo/etoile-dev
>>>
>>>
>>> -- Sent from my STANTEC-ZEBRA
>>>
>>>
>>> _______________________________________________
>>> Etoile-dev mailing list
>>> [email protected]
>>> https://mail.gna.org/listinfo/etoile-dev
>>
>> _______________________________________________
>> Etoile-dev mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/etoile-dev
>
>
> -- Sent from my PDP-11
>
>
> _______________________________________________
> Etoile-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-dev
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev