discuss-gnustep
[Top][All Lists]
Advanced

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

Re: applications that fail to build with new gnustep from svn


From: Fred Kiefer
Subject: Re: applications that fail to build with new gnustep from svn
Date: Tue, 05 Apr 2011 22:49:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8

On 05.04.2011 15:48, Sebastian Reitenbach wrote:
ProjectCenter:
gmake[2]: Leaving directory
`/home/ports/pobj/projectcenter-0.7.0/ProjectCenter-0.7.0/Modules/Editors/ProjectCenter'
Making all in Parsers/ProjectCenter ...
gmake[2]: Entering directory
`/home/ports/pobj/projectcenter-0.7.0/ProjectCenter-0.7.0/Modules/Parsers/ProjectCenter'
Making all for bundle ProjectCenter...
clang PCParser.m -c \
               -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fPIC -DDEBUG -
fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g -
fgnu-runtime -fconstant-string-class=NSConstantString -I../../../ -
I../../../Headers -I. -I/usr/local/include -
I/projectcenter-0.7.0_writes_to_HOME/GNUstep/Library/Headers -
I/usr/local/include \
                -o obj/ProjectCenter.obj/PCParser.m.o
PCParser.m:127:24: error: initializer element is not a compile-time constant
static SEL selString = @selector(string:);
                        ^~~~~~~~~~~~~~~~~~
PCParser.m:128:24: error: initializer element is not a compile-time constant
static SEL selNumber = @selector(number:);
                        ^~~~~~~~~~~~~~~~~~
PCParser.m:129:33: error: initializer element is not a compile-time constant
static SEL selSpaceAndNewLine = @selector(spaceAndNewLine:);
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
PCParser.m:130:27: error: initializer element is not a compile-time constant
static SEL selInvisible = @selector(invisible:);
                           ^~~~~~~~~~~~~~~~~~~~~
PCParser.m:131:24: error: initializer element is not a compile-time constant
static SEL selSymbol = @selector(symbol:);
                        ^~~~~~~~~~~~~~~~~~
5 errors generated.
gmake[5]: *** [obj/ProjectCenter.obj/PCParser.m.o] Error 1
gmake[4]: *** [internal-bundle-run-compile-submake] Error 2
gmake[3]: *** [ProjectCenter.all.bundle.variables] Error 2
gmake[2]: *** [internal-all] Error 2
gmake[2]: Leaving directory
`/home/ports/pobj/projectcenter-0.7.0/ProjectCenter-0.7.0/Modules/Parsers/ProjectCenter'
gmake[1]: *** [internal-all] Error 2
gmake[1]: Leaving directory
`/home/ports/pobj/projectcenter-0.7.0/ProjectCenter-0.7.0/Modules'
gmake: *** [internal-all] Error 2
*** Error code 2

Looking at the code I would say that neither these variables nor the following IMPs should ever have been static variables. The belong into the one method that uses them. The current implementation is rather fragile. But I don't know whether llvm is correct in not allowing selectors as values for compile time constants.



reply via email to

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