gnustep-dev
[Top][All Lists]
Advanced

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

Re: libobjc2 build broken on OS X


From: David Chisnall
Subject: Re: libobjc2 build broken on OS X
Date: Sat, 1 Dec 2012 11:31:31 +0000

The OS X assembler is a hacked-up version of an ancient version of GNU 
binutils.  You can probably fix this by installing GNU binutils.

David

P.S. libobjc2 is developed in subversion, not git, so I have no idea what the 
git master branch is, or whether it's even remotely current...

On 1 Dec 2012, at 09:44, Charalampos Emmanouilidis wrote:

> 
> The current version (git master branch) of libobjc2 does not compile for OS X.
> 
> 
> associate.m:423:40: warning: direct access to objective-c's isa is deprecated 
> in favor of object_setClass() and object_getClass() 
> [-Wdeprecated-objc-isa-usage]
>         id new = class_createInstance(object->isa, 0);
>                                               ^
> 11 warnings generated.
> Compiling blocks_runtime.m...
> Compiling 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))
>                 ^
> block_to_imp.c:139:17: warning: implicitly declaring library function 
> 'strdup' with type 'char *(const char *)'
>         char *buffer = strdup(block_getType_np(block));
>                        ^
> block_to_imp.c:139:17: note: please include the header <string.h> or 
> explicitly provide a declaration for 'strdup'
> 2 warnings generated.
> Assembling block_trampolines.S...
> Assembler messages:
> Fatal error: invalid listing option `r'
> clang: error: assembler command failed with exit code 1 (use -v to see 
> invocation)
> make: *** [block_trampolines.o] Error 1
> 
> 
> 
> 
> it seems, that the clang compiler passes wrong options to the assembler.
> 
> [ as -arch x86_64 ] is not a valid argmunt for command as on OSX. 
> 
> 
> Yoy may refer to my build log for details:
> https://gist.github.com/4167458
> 
> 
> It would be really great if anybody has a solution to this! 
> I want to use GNUstep for cross platform development (OS X, Linux, iOS, 
> Android, Windows) and 
> I  need to get libobjc2 and gnustep-base running on OS X.
> 
> 
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev


-- Sent from my STANTEC-ZEBRA




reply via email to

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