🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.slackware
Article #232

Re: Help with gcc

#232
From: HateLinux
Date: Sat, 25 Aug 2001 02:34
109 lines
6175 bytes
On 23 Aug 2001 00:04:12 +0100, Nix <$}xinix{$@esperi.demon.co.uk>
wrote:
>The rough procedure is (assuming that this isn't a cross-compiler):
>
>- optionally install DejaGnu-1.4 (if your distributor has packaged it)
>  or sources.redhat.com:/pub/gcc/infrastructure/dejagnu-20010126.tar.gz
>  otherwise; this is needed to run the test suite (which, for GCC-2.95.x,
>  is only available in the GCC CVS tree; I recommend getting and running
>  it anyway; it's a useful way of telling if your GCC is rather broken.
>  A few dozen tests are likely to fail, but if hundreds or thousands do
>  then you can start getting suspicious.)
>
>- Make a separate build directory, *not underneath the source tree*.
>  So if your source tree is /usr/local/src/gcc-2.95.3, make, say,
>  /usr/local/src/build-gcc, and cd into it.
	OK
mkdir /usr/src/build
cd /usr/src/build
>
>- Run configure from that directory. You probably want to provide
>  --enable-static --disable-shared; you may also want to specify
>  --enable-languages=c,c++,f77 to disable the rarely-used CHILL
>  compiler and the prototype (in GCC-2.95.x) Java compiler.
/usr/src/gcc-3.0/configure  --enable-static --disable-shared
--enable-languages=c,c++,f77
make bootstrap
	OK
>
>- Run `make bootstrap', and wait. The system will build a support
>  library, then texinfo (to make the info pages), then the compiler,
>  then it'll recompile itself with the latest-built compiler twice
>  and compare them; finally it'll build the runtime libraries and
>  C++ standard library. This could take from five minutes (on a
>  *really* high-end system) to fifty hours (on a 386 with 6--8Mb
>  of RAM).
	Took 10 seconds...

if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I/usr/src/gcc-3.0/libiberty/../include  -W
-Wall -Wtraditional -pedantic  /usr/src/gcc-3.0/libiberty/fnmatch.c -o
pic/fnmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I/usr/src/gcc-3.0/libiberty/../include  -W -Wall -Wtraditional
-pedantic /usr/src/gcc-3.0/libiberty/fnmatch.c
In file included from /usr/include/errno.h:36,
                 from /usr/src/gcc-3.0/libiberty/fnmatch.c:46:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make[1]: *** [fnmatch.o] Error 1
make[1]: Leaving directory `/usr/src/build/libiberty'
make: *** [all-libiberty] Error 2/usr/include/bits/confname.h:565:
warning: comma at end of enumerator list
In file included from /usr/src/gcc-3.0/gcc/toplev.c:35:
/usr/include/sys/resource.h:52: conflicting types for `getrlimit'
/usr/src/gcc-3.0/gcc/system.h:330: previous declaration of `getrlimit'
/usr/include/sys/resource.h:72: conflicting types for `setrlimit'
/usr/src/gcc-3.0/gcc/system.h:341: previous declaration of `setrlimit'
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x0809b9d0 PID 9850
make[2]: *** [toplev.o] Error 1
Removing child 0x0809b9d0 PID 9850  from chain.
make[2]: Leaving directory `/usr/src/build/gcc'
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x080cd8c0 PID 9462
make[1]: *** [stage1_build] Error 2
Removing child 0x080cd8c0 PID 9462  from chain.
make[1]: Leaving directory `/usr/src/build/gcc'
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x0809f1d0 PID 9412
make: *** [bootstrap] Error 2
Removing child 0x0809f1d0 PID 9412  from chain.
root@darkstar:/usr/src/build#



So I corrected a couple of links to the kernel source (asm and linux
links). I did not find any references to these links in the gcc docs ,
but lfs docs had them. Now it compiles for about four minutes and
crashes at this :
             Finished prerequisites of target file `cc1'.
            Must remake target `cc1'.
gcc  -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H  -o cc1 \
        c-parse.o c-lang.o c-errors.o c-lex.o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o
c-semantics.o c-dump.o libcpp.a  toplev.o libbackend.a obstack.o
./intl/libintl.a      ../libiberty/libiberty.a
Child access: user 0 (real 0), group 0 (real 0)
gcc: ../libiberty/libiberty.a: No such file or directory
Got a SIGCHLD; 2 unreaped children.
Putting child 0x08177488 (cc1) PID 3751 on the chain.
Live child 0x08177488 (cc1) PID 3751
Reaping losing child 0x08177488 PID 3751
make[1]: *** [cc1] Error 1
Removing child 0x08177488 PID 3751  from chain.
make[1]: Leaving directory `/usr/src/build'
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x080eaac0 PID 2876
make: *** [stage1_build] Error 2
Removing child 0x080eaac0 PID 2876  from chain.
root@darkstar:/usr/src/build#

Which is exactly the error I had under redhat and gcc-2.96.
I'm tired. Just spent 4 hours on this and no where closer to compiling
gcc than I was two weeks ago.. I also grepped through the 100
megabytes of letters in the lfs mailing lists , but there was no help
there. Night all..
Technical Details
Message-ID: <3b870ce7.70199@news.newsguy.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!sjc1.nntp.concentric.net!newsfeed.concentric.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1
References: <3b83b78c.96998@news.newsguy.com> <87y9ob4ryr.fsf@amaterasu.srvr.nix>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e6c1ce1266b4fc63
X-Google-Attributes: gid11318c,public
X-Google-Thread: f906c,e6c1ce1266b4fc63
X-Google-Attributes: gidf906c,public
X-Google-Thread: 10d8ad,e6c1ce1266b4fc63
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: f9b51,e6c1ce1266b4fc63
X-Google-Attributes: gidf9b51,public
X-Google-ArrivalTime: 2001-08-24 20:05:42 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!sjc1.nntp.concentric.net!newsfeed.concentric.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1
From: 2b@home (HateLinux)
Newsgroups: alt.os.linux.slackware,gnu.gcc.help,uk.comp.os.linux,comp.os.linux.setup
Subject: Re: Help with gcc
Date: Sat, 25 Aug 2001 02:34:38 GMT
Organization: http://extra.newsguy.com
Lines: 114
Message-ID: <3b870ce7.70199@news.newsguy.com>
References: <3b83b78c.96998@news.newsguy.com> <87y9ob4ryr.fsf@amaterasu.srvr.nix>
NNTP-Posting-Host: p-753.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.452