delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/03/26/13:44:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=beta;
h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
bh=Rh60UXpi+hC2pf7uyR0SokUryeEIqa7/OyxPBC4puUs=;
b=as8/OcCAmy2v8cquJSw1Nwbss7PVPmSY0x//jyi5afCW0FK1inTTXFhb6oNhL37/2x3kZ/v1K5rnTG5c9CppD7i81t2VUg5zJdaSwkekTJxuKE456w2Zu+pNMNX3WUrK1OO/gES1rZpTSvr8Q+iaQSB1F+I67kAImAGv5xRi+0E=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=beta;
h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
b=XF1ZZHi60jv7JT14nnaXS6hQiZ6iCz43D7tnhl1XacNNlGYjV9YP18B2KRHBEu7ao6DNyARnlpi3C3zFL8VaGcs7iLyp79cR1jXjBTLay00CHegJ6hjy0EZPV1NAxg+tL0O7+2WdWkDFJd3q2/AAo2/UcuzaiF+u+tBm8jvHdqM=
Message-ID: <647fe9b10803261118p6b3b7a18g8a0e6f84cfc5457d@mail.gmail.com>
Date: Wed, 26 Mar 2008 20:18:56 +0200
From: "O.Sezer" <sezeroz AT gmail DOT com>
To: djgpp-workers AT delorie DOT com
Subject: build fixes for gcc < 4
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

I use gcc-3.3.6 and the cvs tree fail build with the
following errors:

/usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-gcc -pipe ... -c init1.S
cc1: -I- specified twice
make[1]: *** [init1.o] Error 1

The change to makefile.cfg fixes it.

/usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-gcc -pipe -MD -O2
-mcpu=i586 -march=i386 -Wall -Wbad-function-cast -Wcast-qual -Werror
-Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Wundef -Wcast-align
-Wsign-compare -nostdinc -I. -I- -I. -I- -isystem ../../../include
-DGAS_MAJOR=2 -DGAS_MINOR=15 -DGAS_MINORMINOR=0 -c mcount.c
cc1: -I- specified twice
make[3]: *** [mcount.o] Error 1

The change to makefile.inc fixes it (the CVS change 1.11
to 1.12 probably missed this??).

Here is the patch:

diff -urNp djgpp/src/makefile.cfg.orig djgpp/src/makefile.cfg
--- djgpp/src/makefile.cfg.orig	2007-12-13 04:03:11.000000000 +0200
+++ djgpp/src/makefile.cfg	2008-03-26 19:48:28.000000000 +0200
@@ -50,7 +50,7 @@ gcc-l.opt: makefile.cfg
 	@./misc.exe echo - "-march=i386" >>gcc-l.opt
 	@./misc.exe echo - "-Wall" >>gcc-l.opt
 	@./misc.exe echo - "-nostdinc" >>gcc-l.opt
-	@./misc.exe echo - "$(IQUOTE)" >>gcc.opt
+	@./misc.exe echo - "$(IQUOTE)" >>gcc-l.opt

 gpp.opt: gcc.opt
 	sed -f gpp.sed $< > $@
diff -urNp djgpp/src/makefile.inc.orig djgpp/src/makefile.inc
--- djgpp/src/makefile.inc.orig	2007-12-12 04:03:17.000000000 +0200
+++ djgpp/src/makefile.inc	2008-03-26 19:48:28.000000000 +0200
@@ -76,8 +76,8 @@ endif
 # in a profiling version of libc (the profiling support code calling
 # profiling support code).
 #
-XNOPGGCC = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed
$(TOP)/../gcc.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS)
-XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed
$(TOP)/../gpp.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS)
+XNOPGGCC = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed
$(TOP)/../gcc.opt) -isystem $(TOP)/../../include $(CFLAGS)
+XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed
$(TOP)/../gpp.opt) -isystem $(TOP)/../../include $(CFLAGS)

 MISC = $(TOP)/../misc.exe



Regards,
Ozkan

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019