Subject: Re: trouble compiling gcc3 on IRIX64 6.5.20m
To: None <tech-pkg@netbsd.org>
From: Ryan Cresawn <cresawn@chass.utoronto.ca>
List: tech-pkg
Date: 11/24/2003 20:56:11
Jan,

I did not manually copy an example 'mk.conf' file into '/etc'.  I
believe the 'bootstrap' command did that for me.

  # find / /usr/pkg /usr/pkgsrc -xdev -name "*mk.conf*"
  /etc/mk.conf
  # 

I'm confused about '/etc/compiler.defaults'.  Is that file used if I
am using gcc-3.3 in '/usr/freeware/bin'?  I assumed, perhaps
erroneously, that '/etc/compiler.defaults' was used to configure 'cc'.

I added the two lines you suggested into '/etc/mk.conf', ran 'bmake
clean' and have just started 'bmake'.  I will write later to report my
results.

I really appreciate the input from everyone.  This is a great forum.

Ryan


On Mon, Nov 24, 2003 at 04:46:39PM -0500, Jan Schaumann wrote:
> Ryan Cresawn <cresawn@chass.utoronto.ca> wrote:
>  
> >   # gcc --version
> >   gcc (GCC) 3.3
> > 
> >   # bmake
> >   
> >   ... successful compilation output removed ...
> > 
> >   gmake[1]: *** [fibheap.o] Error 1
> >   gmake[1]: Leaving directory
> >   /usr/pkgsrc/lang/gcc3/work/gcc-3.3/mips-sgi-irix6.5/libiberty'
> >   gmake: *** [all-target-libiberty] Error 2
> >   *** Error code 2
> 
> Well, you also removed the actual error in the above.  Allwe know is
> that an error occurs, but not what the error is. ;-)
> 
> 
> > 
> >   Stop.
> >   bmake: stopped in /usr/pkgsrc/lang/gcc3
> >   *** Error code 1
> > 
> >   Stop.
> >   bmake: stopped in /usr/pkgsrc/lang/gcc3
> >   #
> > 
> >   # cat /etc/compiler.defaults
> >   -DEFAULT:abi=n32:isa=mips4:proc=r10k
> > 
> >   # cat /etc/mk.conf
> >   LOCALBASE=/usr/pkg
> >   FETCH_CMD=/usr/pkg/bin/ftp
> >   ACCEPTABLE_LICENSES+=fee-based-commercial-use
> 
> Your /etc/mk.conf should contain a few more things, among them
> 
> OPSYS=IRIX
> ABI=32
> 
> (Well, ABI would have been 64 after bootstrap, but judging from your
> /etc/compiler.defaults, you want to set it to 32.)  After running
> bootstrap, did you copy the example mk.conf file to /etc/mk.conf?
> 
> -Jan
> 
> -- 
> A common mistake that people make when trying to design something completely
> foolproof is to underestimate the ingenuity of complete fools.