discuss-gnustep
[Top][All Lists]
Advanced

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

Re: CPPFLAGS ignored compiling gui


From: Fred Kiefer
Subject: Re: CPPFLAGS ignored compiling gui
Date: Fri, 10 Sep 2021 09:06:40 +0200

Hi Mick,

this sounds a bit strange. You are building GNUstep with clang but point it to 
use the gcc libobjc? This might work but surely it isn’t a recommended setup. 
Why would you want to do that? When using clang you should be using the GNUstep 
libobjc2.

Confused,
Fred

> Am 10.09.2021 um 00:16 schrieb Mick Bert <MickBert@posteo.net>:
> 
> Hello
> 
> I am trying to compile gnustep (latest release, downloaded a couple of days 
> ago) on a Debian 5.10.46-powerpc, with clang.
> 
> Configured gnustep-gui with 
> CPPFLAGS=-I/usr/lib/gcc/powerpc-linux-gnu/9/include and 
> CFLAGS=-I/usr/lib/gcc/powerpc-linux-gnu/9/include (which is the directory 
> containing objc/objc.h), when I run make,it fails on source 
> Model/IMCustomObject.m with error:
> 
> In file included from IMCustomObject.m:28:
> In file included from 
> /opt/Local/Library/Headers/Foundation/NSObjCRuntime.h:222:
> /opt/Local/Library/Headers/GNUstepBase/GSObjCRuntime.h:58:11: fatal error: 
> 'objc/objc.h' file not found
>  #include <objc/objc.h>
> 
> If I run make -n, I get:
> 
> clang-9 IMCustomObject.m -c -MMD -MP -DGNU_RUNTIME=1 -DGNU_GUI_LIBRARY=1 
> -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 
> -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -pthread -fPIC -Wall -DGSWARN 
> -DGSDIAGNOSE -Wno-import -g -O2 -fobjc-runtime=gcc -Wall 
> -fconstant-string-class=NSConstantString -I../Headers/Additions -I../Headers 
> -I. -I/home/mick/GNUstep/Library/Headers -I/opt/Local/Library/Headers 
> -I/opt/System/Library/Headers  -o obj/libgmodel.obj/IMCustomObject.m.o
> 
> which is clearly missing the directory containing objc.h
> 
> Where should I have to specify that directory, in order it to be added to 
> that compiling command?
> 
> --
> 
> Mick
> 




reply via email to

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