Date: Tue, 26 May 2020 20:44:35 -0500 From: Justin Hibbits <chmeeedalf@gmail.com> To: Charlie Kester <corky1951@comcast.net> Cc: freebsd-ppc@freebsd.org Subject: Re: RESOLVED: Build failure of gmp-6.2.0 on Mac Mini G4 Message-ID: <20200526204435.101e82f5@titan.knownspace> In-Reply-To: <1afbd7a9-0383-f31b-0c76-36be152a1851@comcast.net> References: <18d93226-7cc6-4cef-1667-f05dea8770a3@comcast.net> <20200526194532.07d637bb@titan.knownspace> <83543ad1-48c9-cf6c-b24b-f47c249a1634@comcast.net> <b5c89910-a1af-7cfb-b23c-67a3e9c976e7@comcast.net> <1afbd7a9-0383-f31b-0c76-36be152a1851@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 May 2020 18:41:39 -0700 Charlie Kester <corky1951@comcast.net> wrote: > On 5/26/20 6:18 PM, Charlie Kester wrote: > > On 5/26/20 6:00 PM, Charlie Kester wrote: =20 > >> On 5/26/20 5:45 PM, Justin Hibbits wrote: =20 > >>> On Tue, 26 May 2020 15:27:46 -0700 > >>> Charlie Kester <corky1951@comcast.net> wrote: > >>> =20 > >>>> (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.=C2=A0 blank lines =3D line > >>>> breaks in output): > >>>> --------------------------------------------------------------------= -=20 > >>>> =3D=3D=3D> gmp-6.2.0 depends on file: /usr/local/bin/makeinfo - foun= d =20 > >>>> =20 > >>>> =3D=3D=3D> Configuring for gmp-6.2.0 =20 > >>>> > >>>> 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=3D--build=3Dpowerpc7447 > >>>> and > >>>> # make configure CONFIGURE_TARGET=3Dpowerpc7447 > >>>> > >>>> Neither worked.=C2=A0 Same failure. > >>>> > >>>> Any suggestions on how I can resolve this issue? =20 > >>> > >>> Where do you get powerpc7447?=C2=A0 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=3D7450 > >>> =20 > >> > >> I got it from the error message above.=C2=A0 ;-) > >> > >> 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.=C2=A0 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?=C2=A0 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? =20 > >=20 > > sysctl reports hw.model as "Motorola PowerPC 7447A" > >=20 > > So I tried adding CPUTYPE=3D7447 to /etc/make.conf > >=20 > > cd /usr/ports/math/gmp > > make distclean > > make install clean > >=20 > > Same failure as above ("invalid configuration") > > =20 >=20 > I was finally able to get this port configured and built with: >=20 > make configure CONFIGURE_ARGS=3D--build=3Dpowerppc >=20 > 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+=3D--build=3D${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 >=20 >=20 > > =C2=A0-- charlie =20 >=20 >=20 >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200526204435.101e82f5>