Date: Tue, 26 May 2020 20:55:19 -0700 From: Charlie Kester <corky1951@comcast.net> To: Justin Hibbits <chmeeedalf@gmail.com> Cc: freebsd-ppc@freebsd.org, ale@freebsd.org Subject: Re: RESOLVED: Build failure of gmp-6.2.0 on Mac Mini G4 Message-ID: <2f903710-7d3f-6c4a-5f3f-7b62e0059118@comcast.net> In-Reply-To: <20200526204435.101e82f5@titan.knownspace> 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> <20200526204435.101e82f5@titan.knownspace>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/26/20 6:44 PM, Justin Hibbits wrote: > 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: >>>> On 5/26/20 5:45 PM, Justin Hibbits wrote: >>>>> On Tue, 26 May 2020 15:27:46 -0700 >>>>> Charlie Kester <corky1951@comcast.net> 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 Just to be clear, the --build switch needs to be added to the CONFIGURE_ARGS in the port Makefile, not set on the commandline the way I show it above. There's also a typo above: the arg I actually used was "powerpc" with only two p's. I haven't tried it with ${ARCH} but that should work too. I found I also needed to add the --enable-shared switch in order for the pkg-static steps of the install to succeed. For some reason the shared libs weren't being built without that switch and I got error messages about them not being found. I'll submit a PR once I've got everything up and running on the mini and can include a diff and the usual machine info. Thanks for your help! -- charlie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f903710-7d3f-6c4a-5f3f-7b62e0059118>