VLCKit 3.0 : dav1d contrib fails to build for target x86_64 with Xcode 15.0.1 toolchain
Given we do.
sh buildMobileVLCKit.sh -vfd
We get this error :
cd dav1d && rm -rf ./build
cd dav1d && CC="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CXX="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" LD="" AR="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" CCAS="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c" RANLIB="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" STRIP="/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" PATH="/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/bin:/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin::/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin:/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib//bin::/usr/bin:/bin:/usr/sbin:/sbin" PKG_CONFIG="pkg-config" CPPFLAGS="-isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -fno-stack-check -I/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/include" CFLAGS="-isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -fno-stack-check -I/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/include" CXXFLAGS="-isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -fno-stack-check -I/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/include " LDFLAGS="-arch x86_64 -Wl,-platform_version,ios-simulator,9.0,17.0 -L/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/lib -arch x86_64 -Wl,-platform_version,ios-simulator,9.0,17.0" env -i PATH="/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/bin:/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin::/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin:/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib//bin::/usr/bin:/bin:/usr/sbin:/sbin" PKG_CONFIG_LIBDIR="/usr/x86_64-apple-darwin/lib/pkgconfig" PKG_CONFIG_PATH="/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/lib/pkgconfig:/usr/share/pkgconfig" meson --default-library static --prefix "/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64" --backend ninja -Dlibdir=lib --buildtype debugoptimized --cross-file /Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64/crossfile.meson -D enable_tests=false -D enable_tools=false build
DEPRECATION: c_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: c_link_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: cpp_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: cpp_link_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
Using 'PKG_CONFIG_PATH' from environment with value: '/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/lib/pkgconfig:/usr/share/pkgconfig'
The Meson build system
Version: 0.56.2
Source dir: /Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64/dav1d
Build dir: /Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64/dav1d/build
Build type: cross build
Project name: dav1d
Project version: 1.2.1
C compiler for the host machine: /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
C linker for the host machine: /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ld64 unknown version
C compiler for the build machine: cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
C linker for the build machine: cc ld64 unknown version
Build machine cpu family: aarch64
Build machine cpu: arm64
Host machine cpu family: aarch64
Host machine cpu: arm64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Fetching value of define "__ILP32__" :
Run-time dependency threads found: YES
Checking for function "clock_gettime" : NO
Library m found: NO
Check usable header "stdatomic.h" : YES
Check usable header "unistd.h" : YES
Check usable header "io.h" : NO
Check usable header "pthread_np.h" : NO
Checking for function "getopt_long" : NO
Checking for function "_aligned_malloc" : NO
Checking for function "posix_memalign" : NO
Checking for function "memalign" : NO
Checking for function "pthread_getaffinity_np" with dependency threads: NO
Checking for function "pthread_setaffinity_np" with dependency threads: NO
Checking if "_Generic" compiles: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -Wno-maybe-uninitialized: NO
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wshorten-64-to-32: YES
Compiler for C supports arguments -fomit-frame-pointer: YES
Compiler for C supports arguments -ffast-math: YES
Fetching value of define "__AVX__" :
Program nasm found: YES (/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin/nasm)
Configuring config.asm using configuration
Configuring config.h using configuration
Configuring version.h using configuration
Header <xxhash.h> has symbol "XXH3_createState" : NO
Build targets in project: 8
Option buildtype is: debugoptimized [default: release]
Found ninja-1.8.2 at /Users/umxprime/code/videolan/VLCKit/libvlc/vlc/extras/tools/build/bin/ninja
cd dav1d && cd build && ninja install
[1/98] Compiling C object src/libdav1d_bitdepth_8.a.p/cdef_apply_tmpl.c.o
FAILED: src/libdav1d_bitdepth_8.a.p/cdef_apply_tmpl.c.o
/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Isrc/libdav1d_bitdepth_8.a.p -Isrc -I../src -I. -I.. -Iinclude/dav1d -I../include/dav1d -Iinclude -I../include -I/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -Wextra -std=c99 -O2 -g -fvisibility=hidden -Wundef -Werror=vla -Wno-missing-field-initializers -Wno-unused-parameter -Wstrict-prototypes -Werror=missing-prototypes -Wshorten-64-to-32 -fomit-frame-pointer -ffast-math -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -fno-stack-check -DBITDEPTH=8 -MD -MQ src/libdav1d_bitdepth_8.a.p/cdef_apply_tmpl.c.o -MF src/libdav1d_bitdepth_8.a.p/cdef_apply_tmpl.c.o.d -o src/libdav1d_bitdepth_8.a.p/cdef_apply_tmpl.c.o -c ../src/cdef_apply_tmpl.c
In file included from ../src/cdef_apply_tmpl.c:34:
In file included from ../src/cdef_apply.h:33:
In file included from ../src/internal.h:43:
In file included from ../src/cdf.h:34:
In file included from ../src/ref.h:33:
../src/mem.h:73:2: error: Missing aligned alloc implementation
#error Missing aligned alloc implementation
^
1 error generated.
[2/98] Compiling C object src/libdav1d_bitdepth_8.a.p/lf_apply_tmpl.c.o
FAILED: src/libdav1d_bitdepth_8.a.p/lf_apply_tmpl.c.o
/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Isrc/libdav1d_bitdepth_8.a.p -Isrc -I../src -I. -I.. -Iinclude/dav1d -I../include/dav1d -Iinclude -I../include -I/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64-apple-darwin-x86_64/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -Wextra -std=c99 -O2 -g -fvisibility=hidden -Wundef -Werror=vla -Wno-missing-field-initializers -Wno-unused-parameter -Wstrict-prototypes -Werror=missing-prototypes -Wshorten-64-to-32 -fomit-frame-pointer -ffast-math -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -mios-simulator-version-min=9.0 -arch x86_64 -fno-stack-check -DBITDEPTH=8 -MD -MQ src/libdav1d_bitdepth_8.a.p/lf_apply_tmpl.c.o -MF src/libdav1d_bitdepth_8.a.p/lf_apply_tmpl.c.o.d -o src/libdav1d_bitdepth_8.a.p/lf_apply_tmpl.c.o -c ../src/lf_apply_tmpl.c
In file included from ../src/lf_apply_tmpl.c:34:
In file included from ../src/lf_apply.h:35:
In file included from ../src/internal.h:43:
In file included from ../src/cdf.h:34:
In file included from ../src/ref.h:33:
../src/mem.h:73:2: error: Missing aligned alloc implementation
#error Missing aligned alloc implementation
^
1 error generated.
[7/98] Generating vcs_version.h with a custom command
fatal: not a git repository: '/Users/umxprime/code/videolan/VLCKit/libvlc/vlc/contrib/iPhoneSimulator-x86_64/dav1d/.git'
[10/98] Compiling C object src/libdav1d_bitdepth_8.a.p/ipred_tmpl.c.o
ninja: build stopped: subcommand failed.
make: *** [.dav1d] Error 1
VLCKit : branch 3.0 e455cdb7
Xcode : 15.0.1