Re: [hwloc-users] Build an OS-X Universal version

2021-03-24 Thread Robin Scher
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  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  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  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 
> 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

Re: [hwloc-users] Build an OS-X Universal version

2021-03-23 Thread Erik Schnetter
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  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  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 
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

Re: [hwloc-users] Build an OS-X Universal version

2021-03-23 Thread Robin Scher
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  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

Re: [hwloc-users] Build an OS-X Universal version

2021-03-23 Thread Brice Goglin

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

Re: [hwloc-users] Build an OS-X Universal version

2021-03-23 Thread Brice Goglin
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.

Brice



> configure.ac:77: the top level
> autom4te: /usr/bin/m4 failed with exit status: 63
> autoreconf: configure.ac: not using Libtool
> autoreconf: running: /opt/homebrew/Cellar/autoconf/2.69/bin/autoconf --force
> configure.ac:77: error: libtool version 2.2.6 or higher is required
> configure.ac:77: the top level
> autom4te: /usr/bin/m4 failed with exit status: 63
> autoreconf: /opt/homebrew/Cellar/autoconf/2.69/bin/autoconf failed with
> exit status: 63
> Checking whether configure needs patching for MacOS Big Sur libtool.m4
> bug... grep: configure: No such file or directory
> grep: configure: No such file or directory
> yes
> Trying to patch configure...
> can't find file to patch at input line 9
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --
> |Updated from libtool.m4 patch:
> |
> |[PATCH] Improve macOS version detection to support macOS 11 and simplify
> legacy logic
> |
> |Signed-off-by: Jeremy Huddleston Sequoia 
> |
> |--- hwloc/configure.old  2020-11-25 16:03:04.225097149 +0100
> |+++ hwloc/configure  2020-11-25 16:02:29.368995613 +0100
> --
> File to patch:
>
> It hangs there waiting for me to supply a file. I see the patch is trying
> to generate configure from configure.old, but there is no configure.old in
> the repo. I know next to nothing about autogen and auto configure and have
> always just followed basic instructions that have always worked before.
>
> I'm using homebrew to get the gnu tools, and have autoconf 2.69, automate
> 1.16.3, and lib tool 2.4.6. Thanks for any help to get this building.
> ___
> 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

[hwloc-users] Build an OS-X Universal version

2021-03-22 Thread Robin
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
configure.ac:77: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
autoreconf: configure.ac: not using Libtool
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.69/bin/autoconf --force
configure.ac:77: error: libtool version 2.2.6 or higher is required
configure.ac:77: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
autoreconf: /opt/homebrew/Cellar/autoconf/2.69/bin/autoconf failed with
exit status: 63
Checking whether configure needs patching for MacOS Big Sur libtool.m4
bug... grep: configure: No such file or directory
grep: configure: No such file or directory
yes
Trying to patch configure...
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|Updated from libtool.m4 patch:
|
|[PATCH] Improve macOS version detection to support macOS 11 and simplify
legacy logic
|
|Signed-off-by: Jeremy Huddleston Sequoia 
|
|--- hwloc/configure.old2020-11-25 16:03:04.225097149 +0100
|+++ hwloc/configure2020-11-25 16:02:29.368995613 +0100
--
File to patch:

It hangs there waiting for me to supply a file. I see the patch is trying
to generate configure from configure.old, but there is no configure.old in
the repo. I know next to nothing about autogen and auto configure and have
always just followed basic instructions that have always worked before.

I'm using homebrew to get the gnu tools, and have autoconf 2.69, automate
1.16.3, and lib tool 2.4.6. Thanks for any help to get this building.
___
hwloc-users mailing list
hwloc-users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-users