<div dir="ltr"><div><font size="4" face="arial, sans-serif">Em sáb., 16 de abr. de 2022 às 21:07, Alexandre Torres Porres <<a href="mailto:porres@gmail.com">porres@gmail.com</a>> escreveu:<br></font></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p style="margin:0px;font-stretch:normal;line-height:normal"><font size="4" face="arial, sans-serif">Hi, I have fat binaries for a test release update of else, it should work on apple silicon macs running Pd compiled for arm that loads externals for arm. Can anyone test these? I don't have a silicon mac.</font></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;min-height:14.3px"><font size="4" face="arial, sans-serif"><br></font></p>
<p style="margin:0px;font-stretch:normal;line-height:normal"><font size="4" face="arial, sans-serif">Download from here since deken seems to be down. <a href="https://github.com/porres/pd-else/releases/tag/v1.0-rc1-test" target="_blank">https://github.com/porres/pd-else/releases/tag/v1.0-rc1-test</a></font></p></div></blockquote><div><font size="4" face="arial, sans-serif"><br></font></div><div><font size="4" face="arial, sans-serif">So, someone on facebook said he couldn't load the externals. The usual ~load _object: Symbol "else_setup" not found~ is given. He also said he had to run <b><u><i>sudo spctl --master-disable</i></u></b> to allow it to load, no idea what that means, but doesn't look good as well.</font></div><div><font size="4" face="arial, sans-serif"><br></font></div><div><font size="4" face="arial, sans-serif">The fat binaries run fine in my mac intel...</font></div><div><font size="4" face="arial, sans-serif"><br></font></div><div><font size="4" face="arial, sans-serif">Let me tell you my process.</font></div><div><font size="4" face="arial, sans-serif"><br></font></div><div><div dir="ltr"><font face="arial, sans-serif">Hi, I now have a machine with Monterey and XCode 13 installed and I want to build fat binaries for my externals. I still have a mac intell by <font size="4">the way. <br></font></font></div><div class="gmail_quote"><div><font size="4" face="arial, sans-serif"><br></font></div><div><div dir="ltr"><font size="4" face="arial, sans-serif">Em ter., 20 de out. de 2020 às 17:36, Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> escreveu:<br></font></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><font size="4" face="arial, sans-serif">I did <b>make install objectsdir=../ extension=d_fat </b>and pd-lib-builder generated binaries with that extension.</font></div></div></div></blockquote></div></div><div><font size="4" face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><font size="4">Before, I was using the above command to build fat binaries with pdlibbuilder for both 32/64 bits (taken from some other email to this list). </font><font size="4">Today I installed Monterey and XCode 13 on a mac intel and tried that command but </font><span style="font-size:large">got an error.</span><span style="font-size:large"> </span></font></div><div><font face="arial, sans-serif"><br></font></div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">porres@Alexandres-MacBook-Pro pd-else copy % make install objectsdir=../ extension=d_fat</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">++++ info: using Makefile.pdlibbuilder version 0.6.0</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">++++ info: making target install in lib else</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">++++ info: installpath is '..//else'</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">++++ info: linking objects in timed.gate~.d_fat for lib else</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">cc -undefined suppress -flat_namespace -bundle  -arch i386 -arch x86_64 -mmacosx-version-min=10.6  -o timed.gate~.d_fat Classes/Source/timed.gate~.o  -lc   </font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">ld: warning: ignoring file Classes/Source/timed.gate~.o, building for macOS-i386 but attempting to link with file built for unknown-x86_64</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd (3 slices)</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libc.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libc.tbd (3 slices)</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">ld: dynamic main executables must link with libSystem.dylib for architecture i386</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><font face="arial, sans-serif"><span style="font-variant-ligatures:no-common-ligatures">clang: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(202,51,35)"><b>error: </b></span><span style="font-variant-ligatures:no-common-ligatures"><b>linker command failed with exit code 1 (use -v to see invocation)</b></span></font></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif">make: *** [timed.gate~.d_fat] Error 1</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" style="">porres@Alexandres-MacBook-Pro pd-else copy % </font></span></p></div><div><font size="4" face="arial, sans-serif"><br></font></div><div><font size="4" face="arial, sans-serif">I understood it tried to compile for 32/64 bits  t even possible to create a single fat binary for all the 3 architectures? It <span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures">complained that </span><span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures"><i style=""><u>The i386 architecture is deprecated for macOS</u></i>, so I guess I can't build it anymore for it with XCode 13, right? I wondered if I could build a fat binary for 32/64 bits and arm, but I can forget about it, right?</span></font></div><div><font size="4" face="arial, sans-serif"><span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures"><br></span></font></div><div><font size="4" face="arial, sans-serif"><span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures">Well, I then tried compiling with pdlibbuilder like this:</span></font></div><div><span style="font-weight:700;color:rgb(0,0,0);font-family:Menlo;font-variant-ligatures:no-common-ligatures">"make install objectsdir=../ arch="arm64 x86_64 </span><span style="font-weight:700;font-family:Menlo;font-variant-ligatures:no-common-ligatures"><font color="#ff0000">i386</font></span><span style="font-weight:700;color:rgb(0,0,0);font-family:Menlo;font-variant-ligatures:no-common-ligatures">"</span><span style="font-weight:700;color:rgb(0,0,0);font-family:Menlo;font-variant-ligatures:no-common-ligatures">  </span><span style="font-weight:700;color:rgb(0,0,0);font-family:Menlo;font-variant-ligatures:no-common-ligatures">extension=d_fat" didn't work...</span><font face="arial, sans-serif"><span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures"><br></span></font></div><div><br></div><div><font size="4">It didn't work either... then I tried.</font></div><div><br></div><div><font color="#ff0000"><b><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures">make install objectsdir=../ arch="arm64 x86_64"</span><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures">  </span><span style="font-family:Menlo;font-variant-ligatures:no-common-ligatures">extension=d_fat</span><font face="arial, sans-serif"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></b></font></div><div><br></div><div><font size="4">and it worked, it did build, but I got stuff like </font></div><div><font size="4"><br></font></div><div>++++ info: linking objects in timed.gate~.d_fat for lib else<br>cc -undefined suppress -flat_namespace -bundle  -arch arm64 -arch x86_64 -mmacosx-version-min=10.6  -o timed.gate~.d_fat Classes/Source/timed.gate~.o  -lc   <br><b>ld: warning: ignoring file Classes/Source/timed.gate~.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64</b><br>++++ info: linking objects in trig.delay2~.d_fat for lib else</div><div><span style="font-size:large"><br></span></div><div><span style="font-size:large">I was worried from the warning </span><b>attempting to link with file built for unknown-x86_64</b><span style="font-size:large"> would mean it would work for apple silicon but probably not for mac intel, but it worked for mac intel, so I thought it'd work just fine for apple silicon as well, but it didn't!</span></div><div><span style="font-size:large"><br></span></div><div><span style="font-size:large">I couldn't upload to deken because the server is down, but I made deken package the external, it did create a deken file named </span><font size="4" style=""><b>else[v1.0-0rc1-test_with_live_electronics_tutorial]</b><font color="#ff0000" style="font-weight:bold"><u>(Darwin-amd64-32)(Darwin-arm64-0)</u></font><b>.dek</b>, so that seems ok. Nonetheless, I got some warnings in deken, probably for all objects, which said, for example:</font></div><div><font size="4" style=""><br></font></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">OUCH: couldn't detect float-size for 'else/asr~.d_fat'</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">      </span>and no default set, assuming None</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">      </span>use '--default-floatsize <N>' to override)</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal"> I didn't bother trying to explicitly define a float size because I wasn't uploading it to deken... and this wouldn't change my build anyway...</span><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal"><br></span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal">So, I'm really lost here and I don't know what I should do to build a proper fat binary...</span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal"><br></span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal">As for not being able to create a fat binary that also includes <b>i386</b>, I guess we can forget about it, for deken at least. I can still build for it and keep that on my release page on github if needed, but it doesn't seem like something I should bother that much these days (I'm not even mentioning ppc).</span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal"><br></span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:large;font-variant-ligatures:normal">Anyway, any hints on what I can do to build it properly? And also maybe avoid the needed </span></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:large"><b style="font-style:italic"><u>sudo spctl --master-disable</u> </b>command (whatever that is)?</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:large"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:large">Thanks</span></p></div><div><br></div><div><br></div></div></div><div><font size="4"><br></font></div><div><font size="4"><br></font></div></div></div>