GNUradio on Mac mini Big Sur M1 Install errors

Frank Dean frank at fdsd.co.uk
Wed Sep 1 16:58:18 UTC 2021


Dan Hinckley <dbh at suiattle.org> writes:

> I’m not clever enough to understand these errors. If there is a remedy, can someone point me at solutions?
>
>> sudo port install gnuradio
>> Password:
>> --->  Computing dependencies for glib2
>> --->  Fetching archive for glib2
>> --->  Attempting to fetch glib2-2.62.6_0+universal+x11.darwin_20.arm64-x86_64.tbz2 from https://packages.macports.org/glib2
>> --->  Attempting to fetch glib2-2.62.6_0+universal+x11.darwin_20.arm64-x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/glib2
>> --->  Attempting to fetch glib2-2.62.6_0+universal+x11.darwin_20.arm64-x86_64.tbz2 from https://mse.uk.packages.macports.org/glib2
>> --->  Fetching distfiles for glib2
>> --->  Attempting to fetch glib-2.62.6.tar.xz from http://mirror.cc.columbia.edu/pub/software/gnome/sources/glib/2.62/
>> --->  Attempting to fetch glib-2.62.6.tar.xz from https://distfiles.macports.org/glib2
>> --->  Verifying checksums for glib2
>> --->  Extracting glib2
>> --->  Applying patches to glib2
>> --->  Configuring glib2
>> Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
>>   isnanf: found in build-x86_64/meson-logs/meson-log.txt
>> --->  Building glib2
>> --->  Staging glib2 into destroot
>> Error: Failed to destroot glib2: glib-2.0.pc differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/destroot-arm64//opt/local/lib/pkgconfig and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/destroot-ppc-intel//opt/local/lib/pkgconfig and cannot be merged
>> Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details.
>> Error: Unable to execute port: upgrade cairo failed

It looks like it's doing a 'universal' build of 'glib2' for both 'arm64' and
'ppc-intel/x86_64' architectures, which you probably don't need.

My understanding is that MacPorts no longer builds 'universal' by default [1].
Is '+universal' defined in your '/opt/local/etc/macports/variants.conf'?

[1]: https://trac.macports.org/wiki/FAQ#universal

The 'main.log' referred in the error messages may have more information.

You could try cleaning the 'glib2' build and specifically disabling the
'universal' variant [2] while installing glib2.

[2]: https://guide.macports.org/#using.variants

    $ sudo port clean glib2
    $ sudo port install glib2 -universal

I'd concentrate on installing 'glib2' before continuing to install
'gnuradio'.


More information about the macports-users mailing list