discuss-gnustep
[Top][All Lists]
Advanced

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

CPPFLAGS ignored compiling gui


From: Mick Bert
Subject: CPPFLAGS ignored compiling gui
Date: Thu, 09 Sep 2021 22:16:33 +0000

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]