[Top][All Lists]

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

Re: gnuconfig and runtime 1.9/ARC issue

From: David Chisnall
Subject: Re: gnuconfig and runtime 1.9/ARC issue
Date: Sat, 4 May 2019 18:05:34 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

When you configure GNUstep, Make, make sure that you use the 'ng' library combo. This will use the GNUstep runtime. I'd also recommend using clang 8 with the 2.0 runtime, rather than the 1.9 release, unless you have a compelling reason to use an old compiler.


On 04/05/2019 06:23, Johannes Brakensiek wrote:
Hello everyone,

currently I'm learning ObjC and Cocoa and I'm digging into GNUstep for
cross platform development.

I compiled GNUstep from scratch using a modified version of Patryk
Laurent's script, which is documented by this repo:

It's the 1.9 runtime compiled using clang 6.0 on Debian 9 stretch.

Apps work fine so far, but now I wanted to compile one with ARC enabled.
I added to the makefile:

OBJCFLAGS = -fobjc-arc

But upon make I get this error:

error: -fobjc-arc is not supported on platforms using the legacy runtime

To check the selected platform I checked the output of "gnustep-config
--objc-flags", which is this:

-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing
-fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC
-DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import
-g -fblocks -fobjc-runtime=gnustep-1.9 -fobjc-runtime=gcc
-fconstant-string-class=NSConstantString -I.
-I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers

I wonder where this "-fobjc-runtime=gcc" comes from, if it is the cause
of the issue and how to get rid of it?

Do you have any hints?

Thanks and regards,

Discuss-gnustep mailing list

reply via email to

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