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 02:17:00 +0100

Ok, so after my previous email, i thought: One last attempt for tonight. So I 
cd’d into the objc folder within gnu-startup/sources and followed the INSTALL 
instructions. But compared to these, I used Ninja, because I prefer it far over 
make :)
But, it looks like some of the code has errors, or my compiler is dumb. But 
since I am not an assembly (i belive that was .S) dude, I can not even fix it. 
o-o So, here is the output:

drag0n|Ingwie@Ingwies-Air 
~/Downloads/gnustep-startup-0.30.0/sources/libobjc2-1.7/build $ ninja
[11/102] Building C object CMakeFiles/objc.dir/block_to_imp.c.o
../block_to_imp.c:47: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.
[28/102] Building ASM object CMakeFiles/objc.dir/block_trampolines.S.o
FAILED: /Applications/drag0n/drag0n.app/Contents/System/usr/bin/cc  -DGC_DEBUG 
-DGNUSTEP -DNO_LEGACY -DTYPE_DEPENDENT_DISPATCH -D_BSD_SOURCE=1 
-D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 -D__OBJC_RUNTIME_INTERNAL__=1 
-Dobjc_EXPORTS -fPIC -MMD -MT CMakeFiles/objc.dir/block_trampolines.S.o -MF 
"CMakeFiles/objc.dir/block_trampolines.S.o.d" -o 
CMakeFiles/objc.dir/block_trampolines.S.o -c ../block_trampolines.S
../block_trampolines.S:26:2: error: unknown directive
 .type __objc_block_trampoline_sret, @function
 ^
../block_trampolines.S:29:2: error: unknown directive
 .type __objc_block_trampoline, @function
 ^
../block_trampolines.S:110:19: error: unexpected token in '.section' directive
.section .note.GNU-stack,"",%progbits
                  ^
[28/102] Building ASM object CMakeFiles/objc.dir/objc_msgSend.S.o
FAILED: /Applications/drag0n/drag0n.app/Contents/System/usr/bin/cc  -DGC_DEBUG 
-DGNUSTEP -DNO_LEGACY -DTYPE_DEPENDENT_DISPATCH -D_BSD_SOURCE=1 
-D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 -D__OBJC_RUNTIME_INTERNAL__=1 
-Dobjc_EXPORTS -fPIC -MMD -MT CMakeFiles/objc.dir/objc_msgSend.S.o -MF 
"CMakeFiles/objc.dir/objc_msgSend.S.o.d" -o 
CMakeFiles/objc.dir/objc_msgSend.S.o -c ../objc_msgSend.S
../objc_msgSend.x86-64.S:142:2: error: unknown directive
 .type objc_msgSend, @function
 ^
../objc_msgSend.x86-64.S:144:2: error: unknown directive
 .type objc_msgSend_fpret, @function
 ^
../objc_msgSend.x86-64.S:149:2: error: unknown directive
 .type objc_msgSend_stret, @function
 ^
../objc_msgSend.S:12:19: error: unexpected token in '.section' directive
.section .note.GNU-stack,"",%progbits
                  ^
[28/102] Building C object CMakeFiles/objc.dir/arc.m.o
ninja: build stopped: subcommand failed.


Same output also came across with Make.

Good night, kind regards, Ingwie.

PS….i’m starting to see the word „gcc“ where it doesnt even belong to. o-o;
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




reply via email to

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