gnustep-dev
[Top][All Lists]
Advanced

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

Re: libs-base fails to compile on OpenBSD


From: Riccardo Mottola
Subject: Re: libs-base fails to compile on OpenBSD
Date: Tue, 18 Dec 2018 22:01:50 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 SeaMonkey/2.49.4

Hi Fred,

Fred Kiefer wrote:
Riccardo,

you seem to be missing out on the underlying problem that Wolfgang tried to 
explain. For the GNUstep base library there are two cases which are supported. 
Either a new Obj-C runtime is installed on your machine then this gets used and 
the GNUstep additions won’t be needed. Or you only have an old Obj-C runtime, 
then the additions get compiled so that base is able to use the new functions 
although the runtime does not provide them. In your case a new runtime and an 
old one are present. Somehow both are detected and the additions get compiled 
against the new runtime. This has never been supported and is totally useless. 
Your unusual setup seem to trigger a bug in the configurations scripts where 
the wrong runtime gets used to decide whether or not to compile the additions.
The best you could do now is just to remove the old runtime and everything 
should be detected correctly.

I may be stubborn, but I do not understand where I have the "new" runtime. I have on my system two runtimes
1) old GCC 4.2 runtime installed in "system" /usr/include
2) newer GCC 4.9 runtime installed in /usr/local

I do not have a the libobjc-2 runtime installed at all.

removing the system one is not trivial, but for the sake of testing, I renamed /usr/include/objc so that it doesn't get found.

I rerun configure, this is the output:

checking the Objective-C runtime... GNU
checking for custom shared objc library... NONE
checking objc/runtime.h usability... yes
checking objc/runtime.h presence... yes
checking for objc/runtime.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes

this sounds plausible.

Compilation fails:


Making all for subproject ObjectiveC2...
 Compiling file runtime.c ...
runtime.c:35:27: fatal error: objc/objc-api.h: No such file or directory
 #include <objc/objc-api.h>
                           ^
compilation terminated.


which is expected, the gcc 4.9 runtime does not have that file... nor does it have gcc 6.5 or 8.2

Riccardo



reply via email to

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