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

Group
 
 

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

Submitter:  None
Submitted:  Wed 26 Nov 2003 10:26:40 PM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  nico
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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>
Group Member
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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-03-21 nico StatusNone Invalid
    Open/ClosedOpen Closed
    Carbon-Copy- Added marcel --AT-- metaobject --DOT-- com
2003-11-27 nico Assigned toNone nico

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code