discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Having build issues on Mac OS X


From: Kevin Ingwersen
Subject: Re: Having build issues on Mac OS X
Date: Thu, 28 Nov 2013 12:09:40 +0100

Well, do you have any suggestions how i could try and solve the issues? It 
weirdly worked once before… o.o
Am 28.11.2013 um 12:06 schrieb David Chisnall <David.Chisnall@cl.cam.ac.uk>:

> It seems to be trying to build the modern runtime compatibility layer for the 
> old GCC runtime on top of the NeXT / Apple runtime.  I don't know if anyone 
> has tried to build -base on top of the Apple runtime for a while, so that 
> configuration may not work again.
> 
> David
> 
> On 28 Nov 2013, at 11:03, Kevin Ingwersen <ingwie2000@googlemail.com> wrote:
> 
>> For some reason, my configuration fails - for absolutely weird reason… 
>> Somebody have a clue? Im somewhat confused.
>> 
>> configure:13173: checking whether objc really works
>> configure:13203: gcc -o conftest -I./Headers -I./Headers/ObjectiveC2  
>> -I/opt/GNUstep/usr/local/include -I/opt/GNUstep/usr/local/include 
>> -I/opt/GNUstep/usr/local/include  -fnext-runtime -DNeXT_RUNTIME -x 
>> objective-c  -L/opt/GNUstep/usr/local/lib -L/opt/GNUstep/usr/local/lib 
>> -L/opt/GNUstep/usr/local/lib conftest.c -ldl  -lpthread -shared-libgcc 
>> -pthread -fexceptions -fobjc-nonfragile-abi -fnext-runtime -lobjc -lm     >&5
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:1:
>> ./Headers/ObjectiveC2/objc/runtime.h:49:16: error: redefinition of 
>> 'objc_object'
>> typedef struct objc_object
>>               ^
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc.h:40:8:
>>  note: previous definition is here
>> struct objc_object {
>>       ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:1:
>> ./Headers/ObjectiveC2/objc/runtime.h:72:23: error: typedef redefinition with 
>> different types ('unsigned char' vs 'signed char')
>> typedef unsigned char BOOL;
>>                      ^
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc.h:61:21:
>>  note: previous definition is here
>> typedef signed char BOOL; 
>>                    ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:2:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/message.h:36:8:
>>  error: redefinition of 'objc_super'
>> struct objc_super {
>>       ^
>> ./Headers/ObjectiveC2/objc/runtime.h:54:8: note: previous definition is here
>> struct objc_super {
>>       ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:2:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/message.h:83:16:
>>  error: function cannot return function type 'id (id, SEL, ...)'
>> OBJC_EXPORT id objc_msgSend(id self, SEL op, ...)
>>               ^
>> ./Headers/ObjectiveC2/objc/runtime.h:287:72: note: expanded from macro 
>> 'objc_msgSend'
>> #define objc_msgSend(theReceiver, theSelector, args...) 
>> objc_msg_lookup(theReceiver, theSelector)(theReceiver, theSelector, args)
>>                                                                       ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:2:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/message.h:99:16:
>>  error: expected ')'
>> OBJC_EXPORT id objc_msgSendSuper(struct objc_super *super, SEL op, ...)
>>               ^
>> ./Headers/ObjectiveC2/objc/runtime.h:288:85: note: expanded from macro 
>> 'objc_msgSendSuper'
>> #define objc_msgSendSuper(super, op, args...) objc_msg_lookup_super(super, 
>> op)(super->receiver, op, args)
>>                                                                              
>>       ^
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/message.h:99:16:
>>  note: to match this '('
>> ./Headers/ObjectiveC2/objc/runtime.h:288:79: note: expanded from macro 
>> 'objc_msgSendSuper'
>> #define objc_msgSendSuper(super, op, args...) objc_msg_lookup_super(super, 
>> op)(super->receiver, op, args)
>>                                                                              
>> ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> In file included from ././config/objc-common.g:13:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/Object.h:36:
>> In file included from 
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/objc-runtime.h:2:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/objc/message.h:99:16:
>>  error: function cannot return function type 'id (struct objc_super *)'
>> OBJC_EXPORT id objc_msgSendSuper(struct objc_super *super, SEL op, ...)
>>               ^
>> ./Headers/ObjectiveC2/objc/runtime.h:288:68: note: expanded from macro 
>> 'objc_msgSendSuper'
>> #define objc_msgSendSuper(super, op, args...) objc_msg_lookup_super(super, 
>> op)(super->receiver, op, args)
>>                                                                   ^
>> In file included from conftest.c:99:
>> In file included from ././config/config.objc.m:2:
>> ././config/objc-common.g:53:3: warning: assignment to Objective-C's isa is 
>> deprecated in favor of object_setClass() [-Wdeprecated-objc-isa-usage]
>>  obj->isa = self;
>>  ^  ~~~~~~~
>>  object_setClass( , )
>> ././config/objc-common.g:46:5: note: instance variable is declared here
>> id isa;
>>    ^
>> 1 warning and 6 errors generated.
>> configure:13207: $? = 1
>> configure: program exited with status 1
>> configure: failed program was:
>> | /* confdefs.h.  */
>> | #define PACKAGE_NAME ""
>> | #define PACKAGE_TARNAME ""
>> | #define PACKAGE_VERSION ""
>> | #define PACKAGE_STRING ""
>> | #define PACKAGE_BUGREPORT ""
>> | #define OPTION_NO_ENVIRONMENT 0
>> | #define GNUSTEP_TARGET_MAKEFILES "/opt/GNUstep/Library/GNUstep/Makefiles"
>> | #define GNUSTEP_TARGET_USER_DEFAULTS_DIR "Library/Defaults"
>> | #define GNUSTEP_TARGET_USER_CONFIG_FILE "Library/.GNUstep.conf"
>> | #define GNUSTEP_TARGET_CONFIG_FILE "/opt/GNUstep/GNUstep.conf"
>> | #define GNUSTEP_TARGET_SYSTEM_APPS "/opt/GNUstep/Applications"
>> | #define GNUSTEP_TARGET_SYSTEM_ADMIN_APPS 
>> "/opt/GNUstep/Applications/Utilities"
>> | #define GNUSTEP_TARGET_SYSTEM_WEB_APPS 
>> "/opt/GNUstep/Library/WebApplications"
>> | #define GNUSTEP_TARGET_SYSTEM_TOOLS "/opt/GNUstep/usr/local/bin"
>> | #define GNUSTEP_TARGET_SYSTEM_ADMIN_TOOLS "/opt/GNUstep/usr/local/sbin"
>> | #define GNUSTEP_TARGET_SYSTEM_LIBRARY "/opt/GNUstep/Library"
>> | #define GNUSTEP_TARGET_SYSTEM_LIBRARIES "/opt/GNUstep/usr/local/lib"
>> | #define GNUSTEP_TARGET_SYSTEM_HEADERS "/opt/GNUstep/usr/local/include"
>> | #define GNUSTEP_TARGET_SYSTEM_DOC "/opt/GNUstep/Library/Documentation"
>> | #define GNUSTEP_TARGET_SYSTEM_DOC_MAN 
>> "/opt/GNUstep/Library/Documentation/man"
>> | #define GNUSTEP_TARGET_SYSTEM_DOC_INFO 
>> "/opt/GNUstep/Library/Documentation/info"
>> | #define GNUSTEP_TARGET_NETWORK_APPS "/opt/GNUstep/Applications"
>> | #define GNUSTEP_TARGET_NETWORK_ADMIN_APPS 
>> "/opt/GNUstep/Applications/Utilities"
>> | #define GNUSTEP_TARGET_NETWORK_WEB_APPS 
>> "/opt/GNUstep/Library/WebApplications"
>> | #define GNUSTEP_TARGET_NETWORK_TOOLS "/opt/GNUstep/usr/local/bin"
>> | #define GNUSTEP_TARGET_NETWORK_ADMIN_TOOLS "/opt/GNUstep/usr/local/sbin"
>> | #define GNUSTEP_TARGET_NETWORK_LIBRARY "/opt/GNUstep/Library"
>> | #define GNUSTEP_TARGET_NETWORK_LIBRARIES "/opt/GNUstep/usr/local/lib"
>> | #define GNUSTEP_TARGET_NETWORK_HEADERS "/opt/GNUstep/usr/local/include"
>> | #define GNUSTEP_TARGET_NETWORK_DOC "/opt/GNUstep/Library/Documentation"
>> | #define GNUSTEP_TARGET_NETWORK_DOC_MAN 
>> "/opt/GNUstep/Library/Documentation/man"
>> | #define GNUSTEP_TARGET_NETWORK_DOC_INFO 
>> "/opt/GNUstep/Library/Documentation/info"
>> | #define GNUSTEP_TARGET_LOCAL_APPS "/opt/GNUstep/Applications"
>> | #define GNUSTEP_TARGET_LOCAL_ADMIN_APPS 
>> "/opt/GNUstep/Applications/Utilities"
>> | #define GNUSTEP_TARGET_LOCAL_WEB_APPS 
>> "/opt/GNUstep/Library/WebApplications"
>> | #define GNUSTEP_TARGET_LOCAL_TOOLS "/opt/GNUstep/usr/local/bin"
>> | #define GNUSTEP_TARGET_LOCAL_ADMIN_TOOLS "/opt/GNUstep/usr/local/sbin"
>> | #define GNUSTEP_TARGET_LOCAL_LIBRARY "/opt/GNUstep/Library"
>> | #define GNUSTEP_TARGET_LOCAL_LIBRARIES "/opt/GNUstep/usr/local/lib"
>> | #define GNUSTEP_TARGET_LOCAL_HEADERS "/opt/GNUstep/usr/local/include"
>> | #define GNUSTEP_TARGET_LOCAL_DOC "/opt/GNUstep/Library/Documentation"
>> | #define GNUSTEP_TARGET_LOCAL_DOC_MAN 
>> "/opt/GNUstep/Library/Documentation/man"
>> | #define GNUSTEP_TARGET_LOCAL_DOC_INFO 
>> "/opt/GNUstep/Library/Documentation/info"
>> | #define GNUSTEP_TARGET_USER_DIR_APPS "Applications"
>> | #define GNUSTEP_TARGET_USER_DIR_ADMIN_APPS "Applications/Utilities"
>> | #define GNUSTEP_TARGET_USER_DIR_WEB_APPS "Library/WebApplications"
>> | #define GNUSTEP_TARGET_USER_DIR_TOOLS "bin"
>> | #define GNUSTEP_TARGET_USER_DIR_ADMIN_TOOLS "sbin"
>> | #define GNUSTEP_TARGET_USER_DIR_LIBRARY "Library"
>> | #define GNUSTEP_TARGET_USER_DIR_LIBRARIES "Library/Libraries"
>> | #define GNUSTEP_TARGET_USER_DIR_HEADERS "Library/Headers"
>> | #define GNUSTEP_TARGET_USER_DIR_DOC "Library/Documentation"
>> | #define GNUSTEP_TARGET_USER_DIR_DOC_MAN "Library/Documentation/man"
>> | #define GNUSTEP_TARGET_USER_DIR_DOC_INFO "Library/Documentation/info"
>> | #define GNUSTEP_TARGET_SYSTEM_USERS_DIR ""
>> | #define GNUSTEP_TARGET_NETWORK_USERS_DIR ""
>> | #define GNUSTEP_TARGET_LOCAL_USERS_DIR ""
>> | #define STDC_HEADERS 1
>> | #define HAVE_SYS_TYPES_H 1
>> | #define HAVE_SYS_STAT_H 1
>> | #define HAVE_STDLIB_H 1
>> | #define HAVE_STRING_H 1
>> | #define HAVE_MEMORY_H 1
>> | #define HAVE_STRINGS_H 1
>> | #define HAVE_INTTYPES_H 1
>> | #define HAVE_STDINT_H 1
>> | #define HAVE_UNISTD_H 1
>> | #define __EXTENSIONS__ 1
>> | #define _ALL_SOURCE 1
>> | #define _GNU_SOURCE 1
>> | #define _POSIX_PTHREAD_SEMANTICS 1
>> | #define _TANDEM_SOURCE 1
>> | #define USE_ATOMIC_BUILTINS 1
>> | #define HAVE_OBJC_RUNTIME_H 1
>> | #define HAVE_OBJC_OBJC_H 1
>> | #define HAVE_SA_LEN 1
>> | #define HAVE_VISIBILITY_ATTRIBUTE 1
>> | #define SIZEOF_VOIDP 8
>> | #define SIZEOF_SHORT 2
>> | #define SIZEOF_INT 4
>> | #define SIZEOF_LONG 8
>> | #define SIZEOF_LONG_LONG 8
>> | #define SIZEOF_FLOAT 4
>> | #define SIZEOF_DOUBLE 8
>> | #define CON_AUTOLOAD 1
>> | #define HAVE_LIBDL 1
>> | #define HAVE_DLADDR 1
>> | #define HAVE_GETHOSTBYNAME 1
>> | #define HAVE_PTHREAD_H 1
>> | #define SIZEOF_PTHREAD_MUTEX_T 64
>> | #define SIZEOF_PTHREAD_COND_T 48
>> | #define ALIGNOF_PTHREAD_MUTEX_T 8
>> | #define ALIGNOF_PTHREAD_COND_T 8
>> | #define HAVE_NANOSLEEP 1
>> | #define HAVE_USLEEP 1
>> | #define HAVE_OBJC_ROOT_CLASS_ATTRIBUTE 1
>> | /* end confdefs.h.  */
>> | #include "./config/config.objc.m"
>> configure:13240: result: no
>> configure:13248: error: The Objective-C compiler does not work or is not 
>> installed properly.
>> 
>> 
>> 
>> Am 27.11.2013 um 23:43 schrieb Ivan Vučica <ivan@vucica.net>:
>> 
>>> I highly recommend that under OS X people use Xcode from Mac App Store 
>>> (seriously, that's a one-click install).
>>> 
>>> For GNUstep work, I used VirtualBox with Ubuntu.
>>> 
>>> But if you do succeed in your quest to have a reproducibly buildable and 
>>> functional GNUstep under OS X, you'd help a lot of people iterate faster 
>>> (including, based on sights seen at devmeeting in Cambridge, a lot of core 
>>> developers).
>>> 
>>> On 27 Nov 2013 22:26, "Kevin Ingwersen" <ingwie2000@googlemail.com> wrote:
>>> The issue for some people is just that they need just a ObjC compiler. For 
>>> most it is not easy to find the devtools that apple seeds - because you 
>>> need to install gigabytes of junk, just to get to the 300MB of build tools. 
>>> So i want to build GNUstep and offer it as an alternative. I also want to 
>>> use it as a toolchain for automatic building for my own projects (drag0n, 
>>> pcc, etc).
>>> Thanks!
>>> Am 27.11.2013 um 23:14 schrieb Adam Fedor <fedor@gnu.org>:
>>> 
>>>> gnustep-make
>>>> gnustep-base
>>>> gnustep-gui
>>>> gnustep-back
>>>> 
>>>> Note that building GNUstep on MacOSX is difficult as the symbols used by 
>>>> GNUstep conflict with ones in the standard OSX libraries.  It's also not 
>>>> very useful as there is a perfectly acceptable implementation of Cocoa 
>>>> already on OSX. Probably a better approach is to load a virtual machine 
>>>> onto OSX running Linux or Windows and compile GNUstep on that, using that 
>>>> to test any code you have built on OSX.
>>>> 
>>>> 
>>>> On Nov 27, 2013, at 2:57 PM, Kevin Ingwersen <ingwie2000@googlemail.com> 
>>>> wrote:
>>>> 
>>>>> 
>>>>> Any specific order?
>>>>> 
>>>>> Well, I can edit shell scripts. Is InstallGNUstep always the same - not 
>>>>> like, generated? If so, i could optimize it for Mac. :)
>>>>> Am 27.11.2013 um 22:08 schrieb Adam Fedor <fedor@gnu.org>:
>>>>> 
>>>>>> 
>>>>>> On Nov 27, 2013, at 12:05 PM, Kevin Ingwersen 
>>>>>> <ingwie2000@googlemail.com> wrote:
>>>>>> 
>>>>>>> Hey there!
>>>>>>> 
>>>>>>> I am trying to prepair an installable GNUstep package for Mac OS X. But 
>>>>>>> I have been having slight issues with building.
>>>>>>> 
>>>>>>> When I supply flags to ./configure then it works. But InstallGNUstep 
>>>>>>> perfectly ignores them - completely.
>>>>>>> 
>>>>>>> So I am calling it with this
>>>>>>> sudo ./InstallGNUstep --prefix=/opt/GNUstep/ 
>>>>>>> --config-options='--prefix=/opt/GNUstep/ --with-thread-lib=pth 
>>>>>>> --with-x=/opt/X11/ --with-include-flags="-I/opt/GNUstep/include" 
>>>>>>> --enable-libffi --with-library-flags="-L/opt/GNUstep/lib" 
>>>>>>> --x-includes=/opt/X11/include/ --x-libraries=/opt/X11/lib/‚
>>>>>>> 
>>>>>> 
>>>>>> GNUstep startup doesn't really work on MacOSX.  You should try to 
>>>>>> compile the packages separately.
>>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Discuss-gnustep mailing list
>>> Discuss-gnustep@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>> 
>> _______________________________________________
>> Discuss-gnustep mailing list
>> Discuss-gnustep@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
> 




reply via email to

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