Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2020 18:41:39 -0700
From:      Charlie Kester <corky1951@comcast.net>
To:        Justin Hibbits <chmeeedalf@gmail.com>
Cc:        freebsd-ppc@freebsd.org
Subject:   RESOLVED: Build failure of gmp-6.2.0 on Mac Mini G4
Message-ID:  <1afbd7a9-0383-f31b-0c76-36be152a1851@comcast.net>
In-Reply-To: <b5c89910-a1af-7cfb-b23c-67a3e9c976e7@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


>   -- charlie






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1afbd7a9-0383-f31b-0c76-36be152a1851>