Return to BSD News archive
Newsgroups: comp.os.386bsd.apps Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!uunet!newsflash.concordia.ca!sifon!storm From: storm@cs.mcgill.ca (Marc Wandschneider) Subject: Re: GCC 2.3.3 on 386bsd Message-ID: <1993Mar30.071217.14597@sifon.cc.mcgill.ca> Sender: news@sifon.cc.mcgill.ca Nntp-Posting-Host: binkley.cs.mcgill.ca Organization: School of Computer Science, McGill University References: <1993Mar29.222819.25110@njitgw.njit.edu> <CAZ.93Mar30123709@sqsosk.psq.mei.co.jp> Date: Tue, 30 Mar 1993 07:12:17 GMT Lines: 66 In article <CAZ.93Mar30123709@sqsosk.psq.mei.co.jp> caz@psq.mei.co.jp (Caz Yokoyama) writes: >In article <1993Mar29.222819.25110@njitgw.njit.edu> kxn3796@hertz.njit.edu (Ken Nakata CIS stnt) writes: > > I succeeded to make xgcc without severe problems but xgcc complained > when it was compiling enquire.c. It claimed that numerical constants > in enquire.c were out of range. But there are only ZEROs and ONEs. > I'm sorry not to have exact errorneous line number. >------------------------------------------- >The problem that yopu encount is following. > >$ configure i386-bsd >$ make > ............. > ............. > ............. > ............. >(cd tmpcopy; ar x ../libgcc2.a) >(cd tmpcopy; ar rc ../tmplibgcc.a *.o) >rm -rf tmpcopy >if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib tmplibgcc.a; else true; fi >mv tmplibgcc.a libgcc.a >./xgcc -B./ -DIN_GCC -g -DNO_MEM -DNO_STDDEF -DNO_LONG_DOUBLE_IO -O0 -I.-c ./enquire.c >./enquire.c: In function `fprop': >./enquire.c:2307: floating constant out of range >*** Error code 1 > >Stop. The best solution I have seen to this problem is to just IGNORE the error generated by enquire.c ie: gzcat gcc-2.3.3.tar.z | tar xf - cd gcc-2.3.3 ./configure --target=i386-unknown-bsd make LANGUAGES=c # IGNORE ALL enquire.c FLOATING POINT ERROR STUFF make stage1 make CC="stage1/xgcc -B./stage1/" CFLAGS="-g -O" # IGNORE ALL enquire.c FLOATING POINT ERROR STUFF # ** make stage2 make CC="stage2/xgcc -B./stage2/" CFLAGS="-g -O" make compare make install ** Note: I have some problems with unprotoize.c in stage1. I have to put #define GPLUSPLUS_INCLUE_DIR=$(libdir).... (something---It's in the Makefile) #define GCC_INCLUDE_DIR=.... (it's also in the Makefile) This works fine for me, and gives me a gcc that seems to work beautifully. I usually skip the stage2 part though, because I get bored of makes ;-) (the above might be a little off---it's off the top of my head, and said head is rather hosed right now...) Toodlepip! Marc 'em. -- storm@cs.mcgill.ca McGill P.O.W Camp "Oh crap---It's not Marc Wandschneider Montreal, CANADA random enough" Ever wonder what Wonder Woman wonders about?