Re: On Mac Ventura, Pike v9 missing GMP symbols

Mike Kilmer <[email protected]> Tue, 12 Mar 2024 08:14:17 -0500
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
--Apple-Mail=_090CC45C-39ED-4E5B-B6B0-FE15B743BC0D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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 our other colleague, John's (older) Mac, Pike 9 compiled fine, BTW.

Thanks much, Bill.

Mike

> On Mar 11, 2024, at 9:22 PM, Mike Kilmer <[email protected]> wrote:
>=20
> Confirming that when I manually add -lgmp to the linker_options, v8 =
will build. Not v9.
>=20
> When v8 configures, I believe that modules/linker_options *does* =
include the -lgmp flag, which gmp/linker_options needs manual add.
>=20
> Checking again, but I think that with v9, the flag is missing in both =
files.
>=20
> Again, though, even having manually inserted it in both places. In v9, =
missing symbols when trying to build.
>=20
> In addition to last update, here are some relevant looking files from =
the build modules:
>=20
> https://gist.github.com/MikeiLL/59203c766452c8c763d04ec35b638a34
>=20
> Additionally, tried installing gnu-sed and running with that instead =
of native osX version and get a different sed error when running `make =
linker_options`:
>=20
> sed: -e expression #1, char 332: unknown option to `s'
> echo =
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a  =
> linker_options
>=20
> As opposed to native which gets:
>=20
> 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


--Apple-Mail=_090CC45C-39ED-4E5B-B6B0-FE15B743BC0D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">With you and =
Chris' help, got Pike 9!<div><br></div><div>Needed to also manually =
add&nbsp;&nbsp;-lmpfr.</div><div><br></div><div>I hadn't noticed that =
the missing set of symbols was different after adding -lgmp flag =
manually.</div><div><br></div><div>Maybe v8 wasn't depending on =
mpfr.</div><div><br></div><div>Is there a command/process you'd =
recommend I run to troubleshoot the sed =
issue?</div><div><br></div><div>On our other colleague, John's (older) =
Mac, Pike 9 compiled fine, BTW.</div><div><br></div><div>Thanks much, =
Bill.</div><div><br></div><div>Mike<br><div><br><blockquote =
type=3D"cite"><div>On Mar 11, 2024, at 9:22 PM, Mike Kilmer =
&lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta http-equiv=3D"content-type"=
 content=3D"text/html; charset=3Dus-ascii"><div style=3D"overflow-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;">Confirming that when I manually add -lgmp to the =
linker_options, v8 will build. Not v9.<div><br></div><div>When v8 =
configures, I believe that modules/linker_options *does* include the =
-lgmp flag, which gmp/linker_options needs manual =
add.</div><div><br></div><div>Checking again, but I think that with v9, =
the flag is missing in both files.</div><div><br></div><div>Again, =
though, even having manually inserted it in both places. In v9, missing =
symbols when trying to build.</div><div><br></div><div>In addition to =
last update, here are some relevant looking files from the build =
modules:<br><div><br></div><div><div style=3D"display: block;"><div =
style=3D"-webkit-user-select: all; -webkit-user-drag: element; display: =
inline-block;" class=3D"apple-rich-link" draggable=3D"true" role=3D"link" =
data-url=3D"https://gist.github.com/MikeiLL/59203c766452c8c763d04ec35b638a=
34"><a style=3D"border-radius:10px;font-family:-apple-system, Helvetica, =
Arial, =
sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:=
none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;t=
ext-decoration:none;" class=3D"lp-rich-link" rel=3D"nofollow" =
href=3D"https://gist.github.com/MikeiLL/59203c766452c8c763d04ec35b638a34" =
dir=3D"ltr" role=3D"button" draggable=3D"false" width=3D"300"><table =
style=3D"table-layout:fixed;border-collapse:collapse;width:300px;backgroun=
d-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, =
sans-serif;" class=3D"lp-rich-link-emailBaseTable" cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" width=3D"300"><tbody><tr><td =
vertical-align=3D"center" align=3D"center"><span =
id=3D"cid:A2B285D8-53EA-4D0D-B68A-A5402348A187">&lt;gist-og-image-54fd7dc0=
713e.png&gt;</span></td></tr><tr><td vertical-align=3D"center"><table =
bgcolor=3D"#E5E6E9" cellpadding=3D"0" cellspacing=3D"0" width=3D"300" =
style=3D"font-family:-apple-system, Helvetica, Arial, =
sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" =
class=3D"lp-rich-link-captionBar"><tbody><tr><td style=3D"padding:8px =
0px 8px 0px;" class=3D"lp-rich-link-captionBar-textStackItem"><div =
style=3D"max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" =
class=3D"lp-rich-link-captionBar-textStack"><div =
style=3D"word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidd=
en;text-overflow:ellipsis;text-align:left;" =
class=3D"lp-rich-link-captionBar-textStack-topCaption-leading"><a =
rel=3D"nofollow" =
href=3D"https://gist.github.com/MikeiLL/59203c766452c8c763d04ec35b638a34" =
style=3D"text-decoration: none" draggable=3D"false"><font =
color=3D"#272727" style=3D"">More Pike Install Build Modules (manually =
added -lgmp in both linker_options)</font></a></div><div =
style=3D"word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidd=
en;text-overflow:ellipsis;text-align:left;" =
class=3D"lp-rich-link-captionBar-textStack-bottomCaption-leading"><a =
rel=3D"nofollow" =
href=3D"https://gist.github.com/MikeiLL/59203c766452c8c763d04ec35b638a34" =
style=3D"text-decoration: none" draggable=3D"false"><font =
color=3D"#808080" =
style=3D"">gist.github.com</font></a></div></div></td></tr></tbody></table=
></td></tr></tbody></table></a></div></div></div></div><div =
style=3D"display: block;"><br></div><div style=3D"display: =
block;">Additionally, tried installing gnu-sed and running with that =
instead of native osX version and get a different sed error when running =
`make linker_options`:</div><div style=3D"display: =
block;"><br></div><div style=3D"display: block;"><div =
style=3D"caret-color: rgb(0, 0, 0);"><div>sed: -e expression #1, char =
332: unknown option to `s'</div><div>echo =
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a =
&nbsp;&gt; linker_options</div><div><br></div><div>As opposed to native =
which gets:</div><div><br></div><div><div>sed: 1: =
"s@-L/usr/local/opt/ruby ...": bad flag in substitute command: =
'@'</div><div>echo =
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a =
&nbsp;&gt; =
linker_options</div></div></div></div></div></div></blockquote></div><br><=
/div></body></html>=

--Apple-Mail=_090CC45C-39ED-4E5B-B6B0-FE15B743BC0D--