<div dir="ltr"><div dir="ltr"><div dir="auto"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">V čet., 17. okt. 2019 22:58 je oseba Gill Bates <<a href="mailto:smogus@shaw.ca" target="_blank">smogus@shaw.ca</a>> napisala:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>I recently updated to catalina (10.15) and Xcode (11.1), installed MacPorts from source (2.6.1) and had it build mpv and its dependencies. However, mpv (and ffmpeg for example) do not run apparently related to some new default compiler option enforcing 16 byte stack alignment? See:</div><div><a href="https://trac.ffmpeg.org/ticket/8073" rel="noreferrer" target="_blank">https://trac.ffmpeg.org/ticket/8073</a><br></div><div><a href="https://github.com/mpv-player/mpv/issues/7053" rel="noreferrer" target="_blank">https://github.com/mpv-player/mpv/issues/7053</a><br></div><div><a href="https://forums.developer.apple.com/thread/121887" rel="noreferrer" target="_blank">https://forums.developer.apple.com/thread/121887</a></div></div></div></blockquote><div><br></div><div>I first saw <a href="https://github.com/LuaJIT/LuaJIT/issues/518" target="_blank">https://github.com/LuaJIT/LuaJIT/issues/518</a>, but that one eventually leads to the same thread linked above. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)"><div><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"> </span><span style="font-size:10pt">The advice seems to be to revert Xcode but will rebuilding everything with Xcode 10.3 on macos 10.15 really be a workaround? Or is a better choice to modify portfiles to include the CFLAG option to disable stack checks as mentioned in the linked posts and use Xcode 11.1?</span></div></div></div></blockquote><div><br></div><div>Workaround is to either blacklist the compiler which has this option turned on by default (which is what Chris replied) or in fact use a flag to disable this. But disabling this flag is not needed for non-broken compilers, so it's probably better to just blacklist the compiler, and the latest compiler with be automatically used again when the bug gets fixed.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(0,0,0)"><div>"Part B" is a question for my understanding, is this a really an Xcode/compiler issue or a problem with the source software packages?</div></div></blockquote><div><br></div><div>I would say that this is in fact an issue with the compiler. As they said, the bug has been present before, it's just that nobody noticed it until it was switched on by default. I've seen an email saying that this is likely to be fixed in one of the next Xcode updates, so it's just a matter of time.</div><div><br></div><div>I believe this affects only source code which uses some heavy optimisations, which is why you would not see it in most of the software where high performance is not crucially important for the functionality.</div><div><br></div><div>Mojca</div></div></div>
</div></div>