From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,fd84f79825ccc147 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-04 07:31:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Raptorfan" Newsgroups: comp.unix.tru64 Subject: Re: Building GCC 3.0 on Tru64 5.0 Date: Sat, 4 Aug 2001 10:31:08 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <9jorg9$9v9$1@sun.rhrk.uni-kl.de> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.unix.tru64:4077 After fighting with GCC compilation on a few boxes at work (2100 & my desktop 500/333) for a few months, I FINALLY got GCC3.0 to build. The two things I did (keeping in mind I've admin-ed Tru64 for only ~7 months now): - build gcc outside it's source tree. I could never get far building it within it's source tree (tar xvf gcc*; mkdir foo; cd foo; ../gcc-3.0/configure ) - in many places I've seen mention the 5.x assembler does things differently than the 4.x one.. so you force the assembler to old behavior using the -oldas option. Best way I saw this implemented was a shell script that was basically (sorry, at home so I don't have the exact script): #!/bin/ksh # i think as is in /usr/bin but as I'm not on the box now I'm not saying for sure # the @* may also be $*; I'm having a brain fart right now /as -oldas @* .. then setting --with-as= with configure. - Binutils v2.11.2 is out there: build and install this first. I dunno why, I dunno what it does, but after building and making this availabe to gcc's configure my gcc FINALLY bootstrapped. - it will take a while (it took around an hour on our quad-processor 300mhz 2100 with gmake -j 4). patience, grasshopper. I'm now fighting with dejagnu building so I can run the gcc testsuite and see what actually works vs. what may still be hosed, but I appear to have a 'mostly-functional' gcc-3.0. I say 'mostly functional' because the app I really want to build (ddd) still bombs with the c++ compiler, but I haven't made it that far yet. Oh, if it matters.. I'm doing this all on 5.1 and with the cc (installed the DEC-built gcc but it didn't work either), but what I've gathered all the 5.x variants have similar types of issues. Of course, gcc built fine the first time on my IRIX box. :/ -r