bugGNUstep - Bugs: bug #6802, -fgnu-runtime should not be passed...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #6802: -fgnu-runtime should not be passed to files listed in C_FILES

Submitted by:  None
Submitted on:  Wed 26 Nov 2003 10:26:40 PM UTC  
 
Category: MakefilesSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: Nicola Pero <nico>
Open/Closed: Closed

Sun 21 Mar 2004 04:39:10 PM UTC, comment #2:

From other emails I now know that this problem happens when trying to build Marcel's MPWFoundation on GNUstep.

I downloaded MPWFoundation and tried to build, and the problem I can see is that it is overriding some gnustep-make/gnustep-base flags with its own hardcoded ones (it does when it includes the local base.make). One of those flags is -fgnu-runtime which gets then always used (even if you're compiling for apple-apple-apple btw :-) ). Those flags are probably what Marcel used to build on Windows, but you shouldn't be using it on Linux.

Removing the line

GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=base.make

from the GNUmakefile should fix it.

It is not a problem in gnustep-make.

Nicola Pero <nico>
Project MemberIn charge of this item.
Thu 27 Nov 2003 12:14:25 AM UTC, comment #1:

I can not reproduce this. Here is how to tried to -

include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME = Prova
Prova_C_FILES = main.c

include $(GNUSTEP_MAKEFILES)/tool.make

where main.c is -

int main (void)
{
return 0;
}

and compilation is fine without -fgnu-runtime and without
-fconstant-string-class=:

nicola@didone:~/ObjCFlags$ make messages=yes
Making all for tool Prova...
cd .; \
/opt/gnustep/System/Library/Makefiles/mkinstalldirs ./shared_obj/ix86/linux-gnu/gnu-gnu-gnu; \
rm -f obj; \
ln -s ./shared_obj/ix86/linux-gnu/gnu-gnu-gnu obj
gcc main.c -c \
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -O2 -I. -I/home/nicola/GNUstep/Library/Headers/gnu-gnu-gnu/gnustep -I/opt/gnustep/Local/Library/Headers/gnu-gnu-gnu/gnustep -I/opt/gnustep/Network/Library/Headers/gnu-gnu-gnu/gnustep -I/opt/gnustep/System/Library/Headers/gnu-gnu-gnu/gnustep -I/home/nicola/GNUstep/Library/Headers/gnu-gnu-gnu/ix86/linux-gnu -I/home/nicola/GNUstep/Library/Headers/gnu-gnu-gnu -I/opt/gnustep/Local/Library/Headers/gnu-gnu-gnu/ix86/linux-gnu -I/opt/gnustep/Local/Library/Headers/gnu-gnu-gnu -I/opt/gnustep/Network/Library/Headers/gnu-gnu-gnu/ix86/linux-gnu -I/opt/gnustep/Network/Library/Headers/gnu-gnu-gnu -I/opt/gnustep/System/Library/Headers/gnu-gnu-gnu/ix86/linux-gnu -I/opt/gnustep/System/Library/Headers/gnu-gnu-gnu \
-o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/main.o
gcc -rdynamic -o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/Prova \
./shared_obj/ix86/linux-gnu/gnu-gnu-gnu/main.o \
-L/home/nicola/GNUstep/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu -L/home/nicola/GNUstep/Library/Libraries/ix86/linux-gnu -L/opt/gnustep/Local/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu -L/opt/gnustep/Local/Library/Libraries/ix86/linux-gnu -L/opt/gnustep/Network/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu -L/opt/gnustep/Network/Library/Libraries/ix86/linux-gnu -L/opt/gnustep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu -L/opt/gnustep/System/Library/Libraries/ix86/linux-gnu -lgnustep-base -lpthread -lobjc -lm

If you can provide more information on how to reproduce
the bug, I would be grateful. Are you using an old version
of gnustep-make ?

Nicola Pero <nico>
Project MemberIn charge of this item.
Wed 26 Nov 2003 10:26:40 PM UTC, original submission:

Files listed in ProjectName_C_FILES in GNUmakefiles are currently issuing this:
cc1: warning: "-fgnu-runtime" is valid for ObjC but not for C/C++
cc1: warning: "-fconstant-string-class=" is valid for ObjC but not for C/C++

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 21 Mar 2004 04:39:10 PM UTCnicoStatusNone=>Invalid
  Open/ClosedOpen=>Closed
  Carbon-Copy-=>Added marcel --AT-- metaobject --DOT-- com
Thu 27 Nov 2003 12:14:25 AM UTCnicoAssigned toNone=>nico

Back to the top


Powered by Savane 3.1-cleanup1