Not sure where to start.../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/sys/cdefs.h:215:48: note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 error generated.
CompileC /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf/dwarf2reader.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'dump_syms' from project 'dump_syms')
cd /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.7 -fmessage-length\=128 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -stdlib\=libc++ -Wno-trigraphs -fpascal-strings -Os -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DHAVE_MACH_O_NLIST_H -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility\=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -iquote /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-generated-files.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-own-target-headers.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-all-target-headers.hmap -iquote /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/dump_syms-project-headers.hmap -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/Release/include -I../../.. -I../../../common/mac/include -I../../../third_party/musl/include -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources-normal/x86_64 -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources/x86_64 -I/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/DerivedSources -Werror\=partial-availability -F/Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/Release -fno-stack-check -MMD -MT dependencies -MF /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.d --serialize-diagnostics /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.dia -c /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf/dwarf2reader.cc -o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf2reader.o
** BUILD FAILED **
The following build commands failed:
CompileC /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/tools/mac/dump_syms/build/dump_syms.build/Release/dump_syms.build/Objects-normal/x86_64/dwarf_cfi_to_module.o /Users/tsaban/Downloads/vlc/contrib/contrib-x86_64-apple-darwin21/breakpad/src/common/dwarf_cfi_to_module.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'dump_syms' from project 'dump_syms')
(1 failure)
make: *** [.breakpad] Error 65
Code: Select all
sh -exo pipefail build.sh /path/to/vlc /path/to/vlc-builds
Code: Select all
SCRIPT_FOLDER_PATH=`cd $(dirname $0) && pwd`
VLC_ROOT_PATH="$1"
BUILDS_PATH="$2"
GIT_REV=`cd ${VLC_ROOT_PATH} && git rev-parse --short HEAD`
MINIMAL_OSX_VERSION="11.0"
export SDKROOT=$(xcrun --show-sdk-path)
REBUILD_ALL="yes"
REBUILD_TOOLS="${REBUILD_ALL}"
REBUILD_CONTRIBS="${REBUILD_ALL}"
FORCE_VLC_BOOTSTRAP="${REBUILD_ALL}"
FORCE_VLC_RECONFIGURE="${REBUILD_ALL}"
REBUILD_LIBVLC="${REBUILD_ALL}"
CORE_COUNT=$(sysctl -n hw.ncpu 2>/dev/null)
export AR="$(xcrun --find ar)"
export CC="$(xcrun --find clang)"
export CXX="$(xcrun --find clang++)"
export NM="$(xcrun --find nm)"
export OBJC="$(xcrun --find clang)"
export OBJCXX="$(xcrun --find clang++)"
export RANLIB="$(xcrun --find ranlib)"
export STRIP="$(xcrun --find strip)"
HOST_ARCH="x86_64"
COMPILER_HOST_ARCH=$HOST_ARCH
if [ "$COMPILER_HOST_ARCH" = "aarch64" ]; then
COMPILER_HOST_ARCH="arm64"
fi
BUILD_ARCH=`uname -m | cut -d. -f1`
if [ "$BUILD_ARCH" = "arm64" ]; then
BUILD_ARCH="aarch64"
fi
OSX_KERNELVERSION=$(uname -r | cut -d. -f1)
BUILD_TRIPLET="$BUILD_ARCH-apple-darwin$OSX_KERNELVERSION"
HOST_TRIPLET="$HOST_ARCH-apple-darwin$OSX_KERNELVERSION"
BUILD_PATH="$BUILDS_PATH/macos-${HOST_TRIPLET}-${GIT_REV}"
PYTHON_PATH=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
if [ ! -d "$PYTHON_PATH" ]; then
PYTHON_PATH=""
fi
export PATH="${VLC_ROOT_PATH}/extras/tools/build/bin:${VLC_ROOT_PATH}/contrib/${BUILD_TRIPLET}/bin:$PYTHON_PATH:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
#
# vlc/extras/tools
#
pushd "$VLC_ROOT_PATH/extras/tools"
./bootstrap
if [ "$REBUILD_TOOLS" = "yes" ]; then
make clean
./bootstrap
fi
make -j1
popd
#
# vlc/contribs
#
export CFLAGS="-Werror=partial-availability"
export CXXFLAGS="-Werror=partial-availability"
export OBJCFLAGS="-Werror=partial-availability"
export EXTRA_CFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH"
export EXTRA_LDFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH"
export XCODE_FLAGS="MACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -sdk $SDKROOT WARNING_CFLAGS=-Werror=partial-availability"
pushd "$VLC_ROOT_PATH/contrib"
if [ "$REBUILD_CONTRIBS" = "yes" ]; then
rm -rf "contrib-$HOST_TRIPLET"
rm -rf "$HOST_TRIPLET"
fi
mkdir -p "contrib-$HOST_TRIPLET" && cd "contrib-$HOST_TRIPLET"
../bootstrap \
--build=$BUILD_TRIPLET \
--host=$HOST_TRIPLET \
--disable-optim \
--disable-all \
--enable-a52 \
--enable-ffmpeg \
--enable-dvbpsi \
--enable-matroska \
--enable-dvdnav \
--enable-dvdcss \
--enable-dvdread \
--enable-ogg \
--enable-opus
make list
make fetch
make -j ${CORE_COUNT} .gettext
make -j ${CORE_COUNT} -k || make -j1
popd
unset CFLAGS
unset CXXFLAGS
unset OBJCFLAGS
unset EXTRA_CFLAGS
unset EXTRA_LDFLAGS
unset XCODE_FLAGS
#
# vlc/bootstrap
#
export CFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export CXXFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export OBJCFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export LDFLAGS="-arch $COMPILER_HOST_ARCH"
pushd "${VLC_ROOT_PATH}"
if [ "$FORCE_VLC_BOOTSTRAP" = "yes" ]; then
rm -f "${VLC_ROOT_PATH}/configure"
fi
if ! [ -e "${VLC_ROOT_PATH}/configure" ]; then
${VLC_ROOT_PATH}/bootstrap
fi
popd
#
# vlc/configure
#
mkdir -p "$BUILD_PATH"
pushd "$BUILD_PATH"
if [ "$FORCE_VLC_RECONFIGURE" = "yes" ]; then
rm -f Makefile
fi
if [ "${VLC_ROOT_PATH}/configure" -nt Makefile ]; then
sh ${VLC_ROOT_PATH}/configure \
--build=$BUILD_TRIPLET \
--host=$HOST_TRIPLET \
--with-macosx-version-min=$MINIMAL_OSX_VERSION \
--with-macosx-sdk=$SDKROOT \
--disable-sparkle \
--disable-optimizations \
--enable-lua=no \
--enable-merge-ffmpeg \
--enable-macosx-avfoundation \
--enable-macosx \
--prefix="$BUILD_PATH/install"
fi
#
# make libvlc
#
if [ "$REBUILD_LIBVLC" = "yes" ]; then
make clean
fi
make -j ${CORE_COUNT}
make VLC.app
unset CFLAGS
unset CXXFLAGS
unset OBJCFLAGS
unset LDFLAGS
popd
Code: Select all
SCRIPT_FOLDER_PATH=`cd $(dirname $0) && pwd`
VLC_ROOT_PATH="$1"
BUILDS_PATH="$2"
MINIMAL_OSX_VERSION="11.0"
export SDKROOT=$(xcrun --show-sdk-path)
REBUILD_ALL="yes"
REBUILD_TOOLS="${REBUILD_ALL}"
REBUILD_CONTRIBS="${REBUILD_ALL}"
FORCE_VLC_BOOTSTRAP="${REBUILD_ALL}"
FORCE_VLC_RECONFIGURE="${REBUILD_ALL}"
REBUILD_LIBVLC="${REBUILD_ALL}"
CORE_COUNT=$(sysctl -n hw.ncpu 2>/dev/null)
export AR="$(xcrun --find ar)"
export CC="$(xcrun --find clang)"
export CXX="$(xcrun --find clang++)"
export NM="$(xcrun --find nm)"
export OBJC="$(xcrun --find clang)"
export OBJCXX="$(xcrun --find clang++)"
export RANLIB="$(xcrun --find ranlib)"
export STRIP="$(xcrun --find strip)"
HOST_ARCH="x86_64"
COMPILER_HOST_ARCH=$HOST_ARCH
if [ "$COMPILER_HOST_ARCH" = "aarch64" ]; then
COMPILER_HOST_ARCH="arm64"
fi
BUILD_ARCH=`uname -m | cut -d. -f1`
if [ "$BUILD_ARCH" = "arm64" ]; then
BUILD_ARCH="aarch64"
fi
OSX_KERNELVERSION=$(uname -r | cut -d. -f1)
BUILD_TRIPLET="$BUILD_ARCH-apple-darwin$OSX_KERNELVERSION"
HOST_TRIPLET="$HOST_ARCH-apple-darwin$OSX_KERNELVERSION"
BUILD_PATH="$BUILDS_PATH/macos-${HOST_TRIPLET}"
PYTHON_PATH=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
if [ ! -d "$PYTHON_PATH" ]; then
PYTHON_PATH=""
fi
export PATH="${VLC_ROOT_PATH}/extras/tools/build/bin:${VLC_ROOT_PATH}/contrib/${HOST_TRIPLET}/bin:$PYTHON_PATH:${VLC_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
#
# vlc/extras/tools
#
pushd "$VLC_ROOT_PATH/extras/tools"
./bootstrap
if [ "$REBUILD_TOOLS" = "yes" ]; then
make clean
./bootstrap
fi
make -j1
popd
#
# vlc/contribs
#
export CFLAGS="-Werror=partial-availability"
export CXXFLAGS="-Werror=partial-availability"
export OBJCFLAGS="-Werror=partial-availability"
export EXTRA_CFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH"
export EXTRA_LDFLAGS="-isysroot $SDKROOT -mmacosx-version-min=$MINIMAL_OSX_VERSION -DMACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -arch $COMPILER_HOST_ARCH"
export XCODE_FLAGS="MACOSX_DEPLOYMENT_TARGET=$MINIMAL_OSX_VERSION -sdk $SDKROOT WARNING_CFLAGS=-Werror=partial-availability"
pushd "$VLC_ROOT_PATH/contrib"
if [ "$REBUILD_CONTRIBS" = "yes" ]; then
rm -rf "contrib-$HOST_TRIPLET"
rm -rf "$HOST_TRIPLET"
fi
mkdir -p "contrib-$HOST_TRIPLET" && cd "contrib-$HOST_TRIPLET"
../bootstrap \
--build=$BUILD_TRIPLET \
--host=$HOST_TRIPLET \
--disable-optim \
--disable-all \
--enable-a52 \
--enable-ffmpeg \
--enable-dvbpsi \
--enable-matroska \
--enable-dvdnav \
--enable-dvdcss \
--enable-dvdread \
--enable-ogg \
--enable-opus
make list
make fetch
make -j ${CORE_COUNT} .gettext
make -j ${CORE_COUNT} -k || make -j1
popd
unset CFLAGS
unset CXXFLAGS
unset OBJCFLAGS
unset EXTRA_CFLAGS
unset EXTRA_LDFLAGS
unset XCODE_FLAGS
#
# vlc/bootstrap
#
export CFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export CXXFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export OBJCFLAGS="-g -O0 -arch $COMPILER_HOST_ARCH"
export LDFLAGS="-arch $COMPILER_HOST_ARCH"
pushd "${VLC_ROOT_PATH}"
if [ "$FORCE_VLC_BOOTSTRAP" = "yes" ]; then
rm -f "${VLC_ROOT_PATH}/configure"
fi
if ! [ -e "${VLC_ROOT_PATH}/configure" ]; then
${VLC_ROOT_PATH}/bootstrap
fi
popd
#
# vlc/configure
#
mkdir -p "$BUILD_PATH"
pushd "$BUILD_PATH"
if [ "$FORCE_VLC_RECONFIGURE" = "yes" ]; then
rm -f Makefile
fi
if [ "${VLC_ROOT_PATH}/configure" -nt Makefile ]; then
sh ${VLC_ROOT_PATH}/configure \
--build=$BUILD_TRIPLET \
--host=$HOST_TRIPLET \
--with-macosx-version-min=$MINIMAL_OSX_VERSION \
--with-macosx-sdk=$SDKROOT \
--disable-sparkle \
--disable-optimizations \
--enable-lua=no \
--enable-merge-ffmpeg \
--enable-macosx-avfoundation \
--enable-macosx \
--prefix="$BUILD_PATH/install"
fi
#
# make libvlc
#
if [ "$REBUILD_LIBVLC" = "yes" ]; then
make clean
fi
make -j ${CORE_COUNT}
make VLC.app
unset CFLAGS
unset CXXFLAGS
unset OBJCFLAGS
unset LDFLAGS
popd
Code: Select all
(path)/vlc> mkdir vlc-builds && sh -exo pipefail build.sh ./ ./vlc-builds
Last output of my terminalMakefile.am:101: warning: variable 'xmllint_DEPENDENCIES' is defined but no program or
Makefile.am:101: library has 'xmllint' as canonical name (possible typo)
autoreconf: Leaving directory `.'
cd libxml2 && CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" LD="ld" AR="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" CCAS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c" RANLIB="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" PATH="/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:.//extras/tools/build/bin:.//contrib/x86_64-apple-darwin21/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin::/bin:/sbin:/usr/bin:/usr/sbin" PKG_CONFIG="pkg-config" CPPFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [.libxml2] Error 2
Please try with absolute paths insteadbuild.sh contains your second (fixed) script.Code: Select all
(path)/vlc> mkdir vlc-builds && sh -exo pipefail build.sh ./ ./vlc-builds
Now used on top of today's git clone -> branch 3.0.x
Have I used your script properly?
Code: Select all
(path)/vlc (3.0.x)> sh -exo pipefail build.sh /Users/tsaban/Downloads/vlc /Users/tsaban/Downloads/vlc/vlc-builds/
Makefile.am:101: library has 'xmllint' as canonical name (possible typo)
autoreconf: Leaving directory `.'
cd libxml2 && CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" LD="ld" AR="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" CCAS="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c" RANLIB="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" STRIP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" PATH="/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:/Users/tsaban/Downloads/vlc/extras/tools/build/bin:/Users/tsaban/Downloads/vlc/contrib/x86_64-apple-darwin21/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin::/bin:/sbin:/usr/bin:/usr/sbin" PKG_CONFIG="pkg-config" CPPFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [.libxml2] Error 2
Return to “VLC media player for macOS Troubleshooting”
Users browsing this forum: No registered users and 35 guests