Re: RESOLVED: Build failure of gmp-6.2.0 on Mac Mini G4

Justin Hibbits <[email protected]>
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]>
On Tue, 26 May 2020 18:41:39 -0700
Charlie Kester <[email protected]> wrote:

> On 5/26/20 6:18 PM, Charlie Kester wrote:
> > On 5/26/20 6:00 PM, Charlie Kester wrote:  
> >> On 5/26/20 5:45 PM, Justin Hibbits wrote:  
> >>> On Tue, 26 May 2020 15:27:46 -0700
> >>> Charlie Kester <[email protected]> wrote:
> >>>  
> >>>> (This is a copy of email sent to the port maintainer.
> >>>> Re-sending to this list in case someone familiar with powerpc
> >>>> has already encountered and resolved this issue.)
> >>>>
> >>>>
> >>>> I'm trying to get FreeBSD running on an old Mac Mini and have
> >>>> hit a snag with this port, which is a dependency of many others.
> >>>>
> >>>> The configure step fails with the following output (I don't have
> >>>> mail running on the mini yet and am typing this on another
> >>>> machine, so please disregard any typos.  blank lines = line
> >>>> breaks in output):
> >>>> --------------------------------------------------------------------- 
> >>>> ===> gmp-6.2.0 depends on file: /usr/local/bin/makeinfo - found  
> >>>>  
> >>>> ===> Configuring for gmp-6.2.0  
> >>>>
> >>>> checking build system type... invalid configuration
> >>>> 'powerpc7447-unknown-freebsd12.1': machine 'powerpc7447-unknown'
> >>>> not recognized
> >>>>
> >>>> configure: error: /bin/sh ./config.sub
> >>>> powerpc7447-unknown-freebsd12.1 failed
> >>>>
> >>>> etc.
> >>>> ----------------------------------------------------------------------
> >>>> I tried
> >>>> # make configure CONFIGURE_ARGS=--build=powerpc7447
> >>>> and
> >>>> # make configure CONFIGURE_TARGET=powerpc7447
> >>>>
> >>>> Neither worked.  Same failure.
> >>>>
> >>>> Any suggestions on how I can resolve this issue?  
> >>>
> >>> Where do you get powerpc7447?  The arch is 'powerpc', and you
> >>> shouldn't need to set anything for the port. If you want to
> >>> customize for your specific CPU, add the following to
> >>> /etc/make.conf:
> >>>
> >>> CPUTYPE=7450
> >>>  
> >>
> >> I got it from the error message above.  ;-)
> >>
> >> This is a vanilla install using the ISO CD image downloaded
> >> yesterday and installed, followed by a portsnap fetch and portsnap
> >> extract. I haven't made any edits to /etc/make.conf or changed any
> >> other settings.  Expected it to work "out of the box" but for some
> >> reason it doesn't.
> >>
> >> Am I correct in assuming that the 7447 came as a result of the
> >> kernel reading the PVR at some point?  Or is this due to the gmp
> >> port's own attempt to get the processor version in config.guess?
> >> How can I confirm which of 7447 or 7450 is correct?  
> > 
> > sysctl reports hw.model as "Motorola PowerPC 7447A"
> > 
> > So I tried adding CPUTYPE=7447 to /etc/make.conf
> > 
> > cd /usr/ports/math/gmp
> > make distclean
> > make install clean
> > 
> > Same failure as above ("invalid configuration")
> >  
> 
> I was finally able to get this port configured and built with:
> 
> make configure CONFIGURE_ARGS=--build=powerppc
> 
> Should have tried that sooner.  Sorry for the noise.

It's not noise.  If that's required, then the port does need fixed.
The port Makefile might need a "CONFIGURE_ARGS+=--build=${ARCH}", or
something similar.  You can file a PR against it (include the category
in the summary: math/gmp ..., so the automation does its job).

- Justin

> 
> 
> >   -- charlie  
> 
> 
> 

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.