RESOLVED: Build failure of gmp-6.2.0 on Mac Mini G4
Charlie Kester
corky1951 at comcast.net
Wed May 27 03:55:24 UTC 2020
On 5/26/20 6:44 PM, Justin Hibbits wrote:
> On Tue, 26 May 2020 18:41:39 -0700
> Charlie Kester <corky1951 at 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 at 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
More information about the freebsd-ppc
mailing list