I was eventually able to build what I needed, though I never could get glibtool working to build from the git repo. Thankfully I didn’t need to bootstrap configure from the tarball.
In case anyone cares, this is essentially what I’m doing to build a Mac universal binary version: configure --prefix …/arm64 --target arm64-apple-darwin CFLAGS=“-target arm64-apple-darwin”; make install configure --prefix …/x86_64 --target x86_64-apple-darwin CFLAGS=“-target x86_64-apple-darwin”; make install lipo -create -output libhwloc.a …/arm64/lib/libhwloc.a …/x86_64/lib/libhwloc.a I had to supply the target via CFLAGS to get it to build and link correctly with the correct platform when cross compiling. -robin > On Mar 23, 2021, at 10:19 AM, Erik Schnetter <schnet...@gmail.com> wrote: > > The default MacOS libtool is very different from GNU libtool. Some > software knows about this, and you then need to make sure none of the > Homebrew/MacPorts libtool is in your path. (Other software, of course, > expects a GNU libtool, and then you need to proceed as described > earlier.) > > -erik > > On Tue, Mar 23, 2021 at 12:47 PM Robin Scher <ro...@uberware.net> wrote: >> >> Yes I think that’s the issue and I can’t resolve it with any usual trick to >> switch to the glibtool version. Been having issues with this new Mac, so >> I’ll keep working that angle for now. I got a little further using the >> download tarball, but I can’t seem to reliably build anything by command >> line yet so it’s probably a system issue with my machine. >> >> Thanks, >> >> Robin Scher >> ro...@uberware.net >> +1 (213) 448-0443 >> >>> On Mar 23, 2021, at 5:31 AM, Brice Goglin <brice.gog...@inria.fr> wrote: >>> >>> >>>> Le 23/03/2021 à 08:08, Brice Goglin a écrit : >>>>> Le 23/03/2021 à 02:28, ro...@uberware.net a écrit : >>>>> Hi. I'm trying to build hwloc on OS-X Big Sur on an M1. Ultimate plan is >>>>> to build it as a universal binary. Right now, I cannot even get the git >>>>> master to autogen. This is what I get: >>>>> >>>>> robin@Robins-Mac-mini hwloc % ./autogen.sh >>>>> autoreconf: Entering directory `.' >>>>> autoreconf: configure.ac: not using Gettext >>>>> autoreconf: running: aclocal --force -I ./config >>>>> autoreconf: configure.ac: tracing >>>>> configure.ac:77: error: libtool version 2.2.6 or higher is required >>>> >>>> Hello >>>> >>>> There's something strange in your environment if libtool 2.2.6+ couldn't >>>> be found. It likely explains the rest of the messages. >>> >>> >>> I read somewhere else that brew provides glibtool and glibtoolize while >>> libtool/libtoolize still points to the old Apple libtool. If so, >>> aliasing libtool/libtoolize to glibtool/glibtoolize may help. >>> >>> Brice >>> >>> >>> _______________________________________________ >>> hwloc-users mailing list >>> hwloc-users@lists.open-mpi.org >>> https://lists.open-mpi.org/mailman/listinfo/hwloc-users >>> >> >> _______________________________________________ >> hwloc-users mailing list >> hwloc-users@lists.open-mpi.org >> https://lists.open-mpi.org/mailman/listinfo/hwloc-users > > > > -- > Erik Schnetter <schnet...@gmail.com> > http://www.perimeterinstitute.ca/personal/eschnetter/ > _______________________________________________ > hwloc-users mailing list > hwloc-users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/hwloc-users > _______________________________________________ hwloc-users mailing list hwloc-users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/hwloc-users