I strongly recommend you to submit your GNUstep packages to their (Ubuntu's)
main repository - the packages there are way too old to use.
And my distro is actually aimed as a non-OS X environment that can compile
Objective-C just as easy as OS X. Take the following code as an example:
#import <Foundation/Foundation.h>
int main(void)
{
@autoreleasepool
{
NSLog("%@", @[@"foo", @"bar", @"bat", @"qux", @1, @2, @3, @4]);
}
}
The @autoreleasepool think will not compile with either GCC (even GCC 4.7) or
link properly clang with GCC runtime or the old GNUstep runtime came with
Ubuntu package (it works using Apple's clang under OS X). The @[...] array
works under Apple clang, but neither Ubuntu GCC nor stock Ubuntu clang will
compile it. The @1 NSNumber literals won't even compile with Apple compiler as
of now but a new svn build of clang will work.
And now about building. A simple "clang foo.m -o foo" will compile this thing
on OS X but on Ubuntu (I still use 32-bit) I need to do "clang foo.m -o foo
`gnustep-config --objc-flags` `gnustep-config --base-libs` -fobjc-abi-version=3
-fobjc-arc" (so complicated to the extent that a makefile would preferred in
case of any typing errors, and oh yes I defaults to ARC)
My distro is to simplify this entire procedure to the extent that I can build
ObjC apps written using Xcode on OS X can build in the OS X fashion. And I will
call it myLinux and a variant called myLinux-llvm which is compiled entirely
(including the kernel) using clang is planned.
Oh and just FYI, this first myLinux is called myLinux 10.8.2 Melodie Luna -
taking its version number from the most recent OS X version.
在 2012-10-25,上午6:19,Bluna Ratimonkey <[email protected]> 写道:
>
>
> On Thu, Oct 25, 2012 at 12:54 AM, Maxthon Chan <[email protected]> wrote:
> I am LFS'ing on an Ubuntu 12.20 VM using GCC as the CC, but Étoilé will only
> compile with clang. Considering clang can compile an working Linux kernel, I
> am wondering if it is possible to build an OS totally with clang (despite the
> LLVM itself have to be bootstrapped using GCC).
>
>
> I am not sure.. I am currently working happily.. kinda.. on Ubuntu GNU/Linux.
> But I think devs need helps more in other areas so may be spending time with
> other components rather building something from scratch could be more useful
> for me^Hass. Like EtoileUI, must name it, as I don't feel like I want to
> rewrite my toolkits over and over. Or you could join my 2/3D Etoile task
> force, it's much more fun here *cough* *cough*
>
> The current LFS effort will attempt an GCC-free final product (that is, the
> Linux kernel and some core parts of it, including the LLVM, will be built
> using GCC.) and I want a name of it. Any advices?
>
> Name of the distro? Maxthonux Chantoile. Awww, yes, I just LOVE naming things.
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
>
>
>
> --
> I used to be a GNUstep developer like them, then I took an arrow in the
> knee...
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss