bugGNU Common Lisp - Bugs: bug #16697, Makefile adds gcc specific...

 
 

bug #16697: Makefile adds gcc specific compiler options when not using gcc.

Submitted by:  Dr. David Kirkby <drkirkby>
Submitted on:  Mon 29 May 2006 09:25:45 PM UTC  
Votes:  100  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 15 Sep 2006 08:10:08 PM UTC, comment #3:

I've tested this on a solaris machine. Please let me know if any bad flags remain for you.

Camm Maguire <camm>
Project Administrator
Fri 15 Sep 2006 08:08:15 PM UTC, comment #2:

Greetings! Fixed in 2.6.8pre and cvs head.
Take care,

Camm Maguire <camm>
Project Administrator
Mon 29 May 2006 09:28:44 PM UTC, comment #1:

I should add -Wall is not the only gcc specific flag added. I don't think either -fomit-frame-pointer or -fsigned-char will not work on Sun's C compiler.

Please, respect compiler flags when the user has indicated what is needed, and don't blindly add gcc specific flags.

Dr. David Kirkby <drkirkby>
Mon 29 May 2006 09:25:45 PM UTC, original submission:

It seems to me that 40% of the open-source world thinks that gcc is the only compiler, and another 40% that Linux is the only UNIX-like operating system.

Well gcl-2.6.7 has this problem. I'm compiling with the tcsh, and have set the copiler and compiler flags set by the enviroment variables CC and CFLAGS.

sparrow /tmp/gcl-2.6.7 % printenv CC
/opt/SUNWspro/bin/cc
sparrow /tmp/gcl-2.6.7 % printenv CFLAGS
-fast -fsimple=1

So I'm not intending using gcc. The configure script seems to work this out too:

checking whether we are using GNU C... (cached) no
checking whether /opt/SUNWspro/bin/cc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) /opt/SUNWspro/bin/cc -E

But next one finds that the makefiles have the gcc specific compiler options -Wall

sparrow /tmp/gcl-2.6.7 % gmake
(cd o && gmake ../h/new_decl.h)
gmake[1]: Entering directory `/tmp/gcl-2.6.7/o'
/opt/SUNWspro/bin/cc -c -fast -fsimple=1 -Wall -DVOL=volatile -fsigned-char -O3 -fomit-frame-pointer -I/tmp/gcl-2.6.7/o -I../h -I../gcl-tk plttest.c
cc: illegal option -Wall
gmake[1]: *** [plttest.o] Error 1
gmake[1]: Leaving directory `/tmp/gcl-2.6.7/o'
gmake: *** [h/new_decl.h] Error 2

Dr. David Kirkby <drkirkby>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #10074:  con.out added by drkirkby (19KiB - application/octet-stream - The results from the configure script - stderr and stdout are redirceted to this. )

 

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 100 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
Fri 15 Sep 2006 08:10:08 PM UTCcammOpen/ClosedOpen=>Closed
Fri 15 Sep 2006 08:08:15 PM UTCcammStatusNone=>Fixed
Mon 29 May 2006 09:25:45 PM UTCdrkirkbyAttached File-=>Added con.out, #10074
  Carbon-Copy-=>Added drkirkby

Back to the top


Powered by Savane 3.1-cleanup1