delorie.com/archives/browse.cgi | search |
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=gamma; | |
h=domainkey-signature:received:received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type; | |
bh=m6dsMgQ90H1TgjB3tZbFMMfHYUFeIiB9YGxEgpHNKtw=; | |
b=tbsCCbEWm4k5LAd77Aur5QpYXnzi6I1hs+dpYNyOZcJhYSVFP8pkfFiuYQURrzQaWlw/7oyURwguEr5lUjdUlTY7pfRQCVidB+2kPVNgPdGHVwzsLHG2IIT3A5XjXga3w5YKyFRwJryL8xA7fswpg71J/Y1OxUZx7VPSSZ1cwgo= | |
DomainKey-Signature: | a=rsa-sha1; c=nofws; |
d=gmail.com; s=gamma; | |
h=message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type; | |
b=kp2AVqBqJKH5i+S2/XI6Q091++v1lOdvDfDXtKZkKmetI4EGqRP65HLfCT8i5JsP8uRem+HIu8MVvB3bhjnXdQdYyC/g9VdffHAA/R25gf2mIR1ui30TpM7y0GJpiNCrG25KgHx2ln3V+9V7E5OeX45LTd58XNnL/i5jH/B9cmE= | |
Message-ID: | <477B409E.6090703@gmail.com> |
Date: | Wed, 02 Jan 2008 09:43:26 +0200 |
From: | "O.Sezer" <sezeroz AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060508 Red Hat/1.7.13-0.90.1.legacy |
X-Accept-Language: | tr, en-us, en |
MIME-Version: | 1.0 |
To: | djgpp-workers AT delorie DOT com |
Subject: | compiling the cvs tree |
Reply-To: | djgpp-workers AT delorie DOT com |
This is a multi-part message in MIME format. --------------090708000801020209070503 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello: When compiling the cvs version (from 2007-12-28 if it matters), I hit this error: make -C dxe native /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-gcc -pipe ... -c init1.S cc1: -I- specified twice make[1]: *** [init1.o] Error 1 make: *** [subs] Error 2 I am compiling on linux (redhat 9), using gcc-3.3.6 as the system (native host) compiler and a pre-built gcc-3.3.6 / binutils-2.15 djgpp cross-toolchain as the djgpp compiler. At this point, the gcc.opt file contains -I. -I- two times as its last lines. After I edit the file and remove the duplicate line, I hit this: /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 make[2]: *** [all_subs] Error 2 make[1]: *** [all] Error 2 make: *** [subs] Error 2 I am not very much familiar with the djgpp build system, but I made this patch for myself in order to successfully compile: attached file: djcvs-build.patch The compiled library works just fine for me. For anyone interested, I also attached the warnings generated during the compilation here. attached file: warnings.log Regards, Ozkan --------------090708000801020209070503 Content-Type: text/plain; name="djcvs-build.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="djcvs-build.patch" diff -urN djgpp0/src/makefile.cfg djgpp/src/makefile.cfg --- djgpp0/src/makefile.cfg 2007-12-13 04:03:11.000000000 +0200 +++ djgpp/src/makefile.cfg 2007-12-28 14:00:14.000000000 +0200 @@ -50,7 +50,7 @@ @./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 -urN djgpp0/src/makefile.inc djgpp/src/makefile.inc --- djgpp0/src/makefile.inc 2007-12-12 04:03:17.000000000 +0200 +++ djgpp/src/makefile.inc 2007-12-28 14:00:18.000000000 +0200 @@ -76,8 +76,8 @@ # 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 --------------090708000801020209070503 Content-Type: text/plain; name="warnings.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="warnings.log" /tmp/cc5zG9Eh.o(.text+0x2d5): In function `pose_question': /home/ozzie/deneme3/djgpp/src/stub/stubedit.c:92: warning: the `gets' function is dangerous and should not be used. ioctl.c: In function `_unix_ioctl': ioctl.c:269: warning: passing arg 3 of pointer to function from incompatible pointer type ioctl.c: In function `ioctl': ioctl.c:325: warning: passing arg 3 of pointer to function from incompatible pointer type fcntl.c: In function `fcntl': fcntl.c:277: warning: passing arg 3 of pointer to function from incompatible pointer type /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ./../../lib/libc.a dbgcom.c:45: warning: `id' defined but not used /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ./../../lib/libdbg.a /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ./../../lib/libemu.a /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ./../../lib/libm.a zic.c: In function `usage': zic.c:457: warning: traditional C rejects ISO C style function definitions zic.c: In function `setboundaries': zic.c:678: warning: traditional C rejects ISO C style function definitions zic.c: In function `associate': zic.c:737: warning: traditional C rejects ISO C style function definitions zic.c: In function `adjleap': zic.c:1917: warning: traditional C rejects ISO C style function definitions localtime.c: In function `settzname': localtime.c:221: warning: traditional C rejects ISO C style function definitions localtime.c: In function `tzsetwall': localtime.c:928: warning: traditional C rejects ISO C style function definitions localtime.c: In function `tzset': localtime.c:949: warning: traditional C rejects ISO C style function definitions scheck.c: In function `scheck': scheck.c:56: warning: cast discards qualifiers from pointer target type zic.c: In function `usage': zic.c:457: warning: traditional C rejects ISO C style function definitions zic.c: In function `setboundaries': zic.c:678: warning: traditional C rejects ISO C style function definitions zic.c: In function `associate': zic.c:737: warning: traditional C rejects ISO C style function definitions zic.c: In function `adjleap': zic.c:1917: warning: traditional C rejects ISO C style function definitions localtime.c: In function `settzname': localtime.c:221: warning: traditional C rejects ISO C style function definitions localtime.c: In function `tzsetwall': localtime.c:928: warning: traditional C rejects ISO C style function definitions localtime.c: In function `tzset': localtime.c:949: warning: traditional C rejects ISO C style function definitions scheck.c: In function `scheck': scheck.c:56: warning: cast discards qualifiers from pointer target type date.c: In function `errensure': date.c:505: warning: traditional C rejects ISO C style function definitions date.c: In function `usage': date.c:521: warning: traditional C rejects ISO C style function definitions /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating logwtmpl.a /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ../../lib/libtz.a /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ../lib/libg.a /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-ar: creating ../lib/libpc.a --------------090708000801020209070503--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |