<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 29.11.2020 um 20:12 schrieb Felix Paul Kühne <<a href="mailto:fkuehne@videolan.org" class="">fkuehne@videolan.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">From: Felix Paul Kühne <<a href="mailto:felix@feepk.net" class="">felix@feepk.net</a>><br class=""><br class="">---<br class=""> extras/package/macosx/build.sh | 43 +++++++++++++++++++++++++---------<br class=""> 1 file changed, 32 insertions(+), 11 deletions(-)<br class=""><br class="">diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh<br class="">index 87a3129bb5..44b16ce59b 100755<br class="">--- a/extras/package/macosx/build.sh<br class="">+++ b/extras/package/macosx/build.sh<br class="">@@ -11,6 +11,7 @@ info()<br class=""> ARCH="x86_64"<br class=""> MINIMAL_OSX_VERSION="10.7"<br class=""> OSX_KERNELVERSION=`uname -r | cut -d. -f1`<br class="">+BUILD_ARCH=`uname -m | cut -d. -f1`<br class=""> SDKROOT=$(xcrun --show-sdk-path)<br class=""> VLCBUILDDIR=""<br class=""><br class="">@@ -54,6 +55,14 @@ spopd()<br class="">     popd > /dev/null<br class=""> }<br class=""><br class="">+get_actual_arch() {<br class="">+    if [ "$1" = "aarch64" ]; then<br class="">+        echo "arm64"<br class="">+    else<br class="">+        echo "$1"<br class="">+    fi<br class="">+}<br class="">+<br class=""> while getopts "hvrcpi:k:a:j:C:b:" OPTION<br class=""> do<br class="">      case $OPTION in<br class="">@@ -124,16 +133,25 @@ builddir=`pwd`<br class=""><br class=""> info "Building in \"$builddir\""<br class=""><br class="">-TRIPLET=$ARCH-apple-darwin$OSX_KERNELVERSION<br class="">+BUILD_TRIPLET=$BUILD_ARCH-apple-darwin$OSX_KERNELVERSION<br class="">+HOST_TRIPLET=$ARCH-apple-darwin$OSX_KERNELVERSION<br class="">+ACTUAL_ARCH=`get_actual_arch $ARCH`<br class=""><br class=""> python3Path=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')<br class=""> if [ ! -d "$python3Path" ]; then<br class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>python3Path=""<br class=""> fi<br class=""><br class="">+export AR="`xcrun --find ar`"<br class="">+export AS="`xcrun --find as`"<br class=""> export CC="`xcrun --find clang`"<br class=""> export CXX="`xcrun --find clang++`"<br class="">+export LD="`xcrun --find ld`"<br class="">+export NM="`xcrun --find nm`"<br class=""> export OBJC="`xcrun --find clang`"<br class="">+export RANLIB="`xcrun --find ranlib`"<br class="">+export STRINGS="`xcrun --find strings`"<br class="">+export STRIP="`xcrun --find strip`"<br class=""></div></div></blockquote><div><br class=""></div></div>Hi Felix,<div class=""><br class=""></div><div class="">I tried the entirety of your patches to build natively and for arm64.</div><div class=""><br class=""></div><div class="">For x86, I faced a couple of new build issues:</div><div class="">- all Xcode-build contribs seem to fail to build due to the now explicit LD environment variable. (Error: unrecognized option „-target“). Changing ld back to clang seems to fix the issue.</div><div class="">- x264: Testing ASM failed:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as conftest.asm  -I. -I$(SRCPATH) -DARCH_X86_64=1 -I$(SRCPATH)/common/x86/ -f macho64 -DPIC -DPREFIX  -o conftest.o</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">clang: error: unknown argument: '-f'</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">clang: error: no such file or directory: 'macho64'</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Compiling for aarch64, it failed for me for x264 as well:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">common/aarch64/bitstream-a.S:28:33: </b></span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">error: </b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">unexpected token in argument list</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">function nal_escape_neon, export=1</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">But maybe I did something wrong in my build environment…</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Would be cool if you can build again for both archs as well and report back if you see similar issues.</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">BR. David</span></div></span></div></body></html>