Re: On Mac Ventura, Pike v9 missing GMP symbols
Mike Kilmer <[email protected]> Sun, 10 Mar 2024 21:43:20 -0500
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_46636B3E-35DD-4837-B973-7A4F4DA47016 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Happy to. Also adding [email protected] <mailto:[email protected]> 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 <[email protected]> = wrote: >=20 > Hi Mike, >=20 > I think there=E2=80=99s possibly been a bit of a miscommunication. = When you run =E2=80=9Cmake=E2=80=9D in the git cloned directory, does = that process complete successfully, or do you get an error? A git = checkout requires a working pike to compile and may need to build a = minimal pike in order to do that. That minimal pike is (if memory = serves) called tpike. I=E2=80=99m just trying to understand where = you=E2=80=99re having problems. Maybe you can upload the output of the = make process somewhere we can refer to? >=20 > For anyone following, tool -L is kind of like ldd on some other = systems. You will note that your homebrew copy of pike uses the gmp = dynamic library. >=20 > Sent from my iPhone >=20 >> On Mar 10, 2024, at 8:52=E2=80=AFPM, Mike Kilmer <[email protected]> = wrote: >>=20 >> =EF=BB=BF >>=20 >>>=20 >>> I don't think there's a problem with your libgmp (actually, it would = be the libgmp.dylib not libgmp.a unless you've specifically disabled the = generation of dynamic libraries when building the gmp library), I think = it's that -lgmp isn't being added when the pike binary is being = generated. If you can run otool -L on the pike binary in your build = directory and send that to me, I think we can rule the library in or = out. >>=20 >> Hi, William. >>=20 >> Ccing Chris, my Pike (but not Mac) guru. >>=20 >> I believe you had explaining that otool would be run on a binary = after successful build, and the only one of those I have is the brewed = one, so ran on that. Please pardon if I misunderstood. >>=20 >> otool -L ...Cellar.../bin/pike >>=20 >> /usr/local/opt/gmp/lib/libgmp.10.dylib (compatibility version = 15.0.0, current version 15.1.0) >> /usr/lib/libutil.dylib (compatibility version 1.0.0, current = version 1.0.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current = version 1319.100.3) >> = /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices = (compatibility version 1.0.0, current version 1228.0.0) >> = /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundat= ion (compatibility version 150.0.0, current version 1971.0.0) >>=20 --Apple-Mail=_46636B3E-35DD-4837-B973-7A4F4DA47016 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;">Happy to. Also = adding <a href=3D"mailto:[email protected]">[email protected]</a> back in = as we'd gotten off of it.<div><br></div><div>Gist of output is = here. https://gist.github.com/MikeiLL/7b0e1ff30f909a6194908c025234e3a= 3<br><div><br><blockquote type=3D"cite"><div>On Mar 10, 2024, at 8:21 = PM, William Welliver <[email protected]> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta http-equiv=3D"content-type"= content=3D"text/html; charset=3Dutf-8"><div dir=3D"auto">Hi = Mike,<div><br></div><div>I think there=E2=80=99s possibly been a bit of = a miscommunication. When you run =E2=80=9Cmake=E2=80=9D in the git = cloned directory, does that process complete successfully, or do you get = an error? A git checkout requires a working pike to compile and may need = to build a minimal pike in order to do that. That minimal pike is (if = memory serves) called tpike. I=E2=80=99m just trying to understand where = you=E2=80=99re having problems. Maybe you can upload the output of the = make process somewhere we can refer to?</div><div><br></div><div>For = anyone following, tool -L is kind of like ldd on some other systems. You = will note that your homebrew copy of pike uses the gmp dynamic = library.</div><div><br id=3D"lineBreakAtBeginningOfSignature"><div = dir=3D"ltr">Sent from my iPhone</div><div dir=3D"ltr"><br><blockquote = type=3D"cite">On Mar 10, 2024, at 8:52=E2=80=AFPM, Mike Kilmer = <[email protected]> wrote:<br><br></blockquote></div><blockquote = type=3D"cite"><div dir=3D"ltr">=EF=BB=BF<meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dus-ascii"><div><br><blockquote = type=3D"cite"><br class=3D"Apple-interchange-newline"><div><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">I don't think there's a problem with your = libgmp (actually, it would be the libgmp.dylib not libgmp.a unless = you've specifically disabled the generation of dynamic libraries when = building the gmp library), I think it's that -lgmp isn't being added = when the pike binary is being generated. If you can run otool -L on the = pike binary in your build directory and send that to me, I think we can = rule the library in or out.</span><br style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;"></div></blockquote><br></div><div>Hi, = William.</div><div><br></div><div>Ccing Chris, my Pike (but not Mac) = guru.</div><div><br></div><div>I believe you had explaining that otool = would be run on a binary after successful build, and the only one of = those I have is the brewed one, so ran on that. Please pardon if I = misunderstood.</div><div><br></div><div><div>otool -L = ...Cellar.../bin/pike</div><div><br></div><div><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> = </span>/usr/local/opt/gmp/lib/libgmp.10.dylib (compatibility version = 15.0.0, current version 15.1.0)</div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>/usr/lib/libutil.dylib = (compatibility version 1.0.0, current version 1.0.0)</div><div><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> = </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current = version 1319.100.3)</div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> = </span>/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreSe= rvices (compatibility version 1.0.0, current version = 1228.0.0)</div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> = </span>/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Core= Foundation (compatibility version 150.0.0, current version = 1971.0.0)</div></div><br></div></blockquote></div></div></div></blockquote= ></div><br></div></body></html>= --Apple-Mail=_46636B3E-35DD-4837-B973-7A4F4DA47016--