Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-13 Thread Mike Kilmer
Yup: $ rm linker_options $ make linker_options echo /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a -lmpfr -lgmp > linker_options Nice! Thanks, again. Very much.

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-13 Thread Henrik Grubbström
On Tue, 12 Mar 2024, Mike Kilmer wrote: Brilliant. Great. Removing the offending library path (LDFLAGS="$LDFLAGS -L/usr/local/opt/postgresql@15/lib") and reconfiguring worked beautifully. Incidentally there were a bunch of brewed paths I had removed in debugging (most of which contained

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-12 Thread Mike Kilmer
Brilliant. Removing the offending library path (LDFLAGS="$LDFLAGS -L/usr/local/opt/postgresql@15/lib") and reconfiguring worked beautifully. Incidentally there were a bunch of brewed paths I had removed in debugging (most of which contained the @). Postrges was actually the only remaining one,

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-12 Thread william
On 2024-03-12 10:13, Henrik Grubbström wrote: The above are probably just two different ways to report the same error. It looks like the above it output for the Makefile command: @linkopts="`pwd`/module.a `echo '$(MODULE_LDFLAGS)' | sed -e 's@$(BASE_LDFLAGS)@@'`"; \ ... I suspect that

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-12 Thread Henrik Grubbström
On Tue, 12 Mar 2024, Mike Kilmer wrote: With you and Chris' help, got Pike 9! Congrats. Needed to also manually add -lmpfr. I hadn't noticed that the missing set of symbols was different after adding -lgmp flag manually. [...] Additionally, tried installing gnu-sed and running with

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-12 Thread Mike Kilmer
With you and Chris' help, got Pike 9! Needed to also manually add -lmpfr. I hadn't noticed that the missing set of symbols was different after adding -lgmp flag manually. Maybe v8 wasn't depending on mpfr. Is there a command/process you'd recommend I run to troubleshoot the sed issue? On

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-11 Thread Mike Kilmer
Confirming that when I manually add -lgmp to the linker_options, v8 will build. Not v9. When v8 configures, I believe that modules/linker_options *does* include the -lgmp flag, which gmp/linker_options needs manual add. Checking again, but I think that with v9, the flag is missing in both

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-11 Thread Mike Kilmer
Okay. Seems like we're getting there: echo Lang: $LANG echo Locale: $LOCALE Lang: en_US.UTF-8 Locale: make linker_options sed: 1: "s@-L/usr/local/opt/ruby ...": bad flag in substitute command: '@' echo /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a > linker_options So

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-11 Thread william
Yes, that's sort of what I was getting at. The error seems like it's not trying to link the gmp library. Is the library present in your /usr/local/lib? You could try adding -lgmp to modules/linker_options and modules/Gmp/linker_options? If you can avoid triggering a rewrite of those files, it

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-11 Thread william
Can you please post the contents of build/.../modules/Gmp/config.log? I think, if build/.../modules/linker_options doesn't have -lgmp, then there's a problem in the configuration phase. Maybe the include files can be found but the lib can't? I can't imagine configure would have succeeded but

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-11 Thread Mike Kilmer
Poking around further, linker_options contains: /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a Chris says that his (Debian) install includes the -lgmp option at the end of that path. config.status contains: S["LIBS"]=" -lgmp" Makefile:

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-10 Thread Mike Kilmer
Happy to. Also adding pike@roxen.com back in as we'd gotten off of it. Gist of output is here. https://gist.github.com/MikeiLL/7b0e1ff30f909a6194908c025234e3a3 > On Mar 10, 2024, at 8:21 PM, William Welliver wrote: > > Hi Mike, > > I think there’s possibly been a bit

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-09 Thread Mike Kilmer
I appreciate your patience, Bill. Contents of the linker_options is: /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a -L/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/. -R/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/.

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-09 Thread william
Ah, sorry. Once you build pike (assuming that you've built it and then it won't install or start), build/darwin-ver-arch/pike is the uninstalled pike binary. You'd run otool -L on that file. bin/pike is a shell script that will let you start up pike without installing it by setting arguments

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-09 Thread Mike Kilmer
Thank you so much Bill. Feeling optimistic. And pretty ignorant. When you say, `path/to/pike` I'm not sure what you mean, in other words, which item in either Downloaded or Cloned: ANNOUNCE COPYING README build/ lib/ refdoc/ CHANGES COPYRIGHTREADME-GIT

Re: On Mac Ventura, Pike v9 missing GMP symbols

2024-03-09 Thread H. William Welliver
Just want to confirm that on a fresh install of Ventura on M2, pike head builds fine using home-brew provided nettle/gmp. I think there must be something strange going on in your build environment... You can confirm that the gmp library is linked by using otool -L /path/to/pike: otool -L

On Mac Ventura, Pike v9 missing GMP symbols

2024-03-08 Thread Mike Kilmer
Hi, all. Nice to meet you. Any Mac users around? Was able to easily install Pike v8 with homebrew, but am trying to compile from source on my Mac (Ventura) and struggling with it not finding the GMP libraries. Tried download as well as git clone git://pike-git.lysator.liu.se/pike.git and