x265 fails to build with nasm 2.15.01

Issue #555 resolved
Nomis101 created an issue

x265 does not build with latest nasm version 2.15.01. I’ve tried to build on macOS and it fails after a few seconds. The Buildlog is:

- cmake version 3.17.3

CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):

The OLD behavior for policy CMP0025 will be removed from a future version

of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all

policies are deprecated and that a policy should be set to OLD only under

specific short-term circumstances.  Projects should be ported to the NEW

behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):

The OLD behavior for policy CMP0054 will be removed from a future version

of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all

policies are deprecated and that a policy should be set to OLD only under

specific short-term circumstances.  Projects should be ported to the NEW

behavior and not rely on setting a policy to OLD.

- The C compiler identification is AppleClang 12.0.0.12000022

- The CXX compiler identification is AppleClang 12.0.0.12000022

- Check for working C compiler: /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

- Check for working C compiler: /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - works

- Detecting C compiler ABI info

- Detecting C compiler ABI info - done

- Detecting C compile features

- Detecting C compile features - done

- Check for working CXX compiler: /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

- Check for working CXX compiler: /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - works

- Detecting CXX compiler ABI info

- Detecting CXX compiler ABI info - done

- Detecting CXX compile features

- Detecting CXX compile features - done

- Detected x86_64 target processor

CMake Warning (dev) at /usr/local/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):

The package name passed to `find_package_handle_standard_args` (NUMA) does

not match the name of the calling package (Numa).  This can lead to

problems in calling code that expects `find_package` result variables

(e.g., `_FOUND`) to follow a certain pattern.

Call Stack (most recent call first):

cmake/FindNuma.cmake:43 (find_package_handle_standard_args)

CMakeLists.txt:100 (find_package)

This warning is for project developers.  Use -Wno-dev to suppress it.

- Could NOT find NUMA (missing: NUMA_ROOT_DIR NUMA_INCLUDE_DIR NUMA_LIBRARY) 

- Looking for include file inttypes.h

- Looking for include file inttypes.h - found

- Performing Test CC_HAS_NO_STRICT_OVERFLOW

- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Success

- Performing Test CC_HAS_NO_NARROWING

- Performing Test CC_HAS_NO_NARROWING - Success

- Performing Test CC_HAS_NO_ARRAY_BOUNDS

- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success

- Performing Test CC_HAS_FAST_MATH

- Performing Test CC_HAS_FAST_MATH - Success

- Performing Test CC_HAS_STACK_REALIGN

- Performing Test CC_HAS_STACK_REALIGN - Success

- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG

- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success

CMake Warning (dev) at /usr/local/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):

The package name passed to `find_package_handle_standard_args` (nasm) does

not match the name of the calling package (Nasm).  This can lead to

problems in calling code that expects `find_package` result variables

(e.g., `_FOUND`) to follow a certain pattern.

Call Stack (most recent call first):

cmake/FindNasm.cmake:23 (find_package_handle_standard_args)

CMakeLists.txt:352 (find_package)

This warning is for project developers.  Use -Wno-dev to suppress it.

- Found nasm: /usr/local/bin/nasm (found version "2.15.01") 

- Found Nasm 2.15.01 to build assembly primitives

- x265 version 3.4+9-g98e164d03

- The ASM_NASM compiler identification is NASM

- Found assembler: /usr/local/bin/nasm

- Looking for strtok_r

- Looking for strtok_r - found

- Looking for include file getopt.h

- Looking for include file getopt.h - found

- Configuring done

- Generating done

- Build files have been written to: /Volumes/Developer/x265/build/linux

% make VERBOSE=1

/usr/local/bin/cmake -S/Volumes/Developer/x265/source -B/Volumes/Developer/x265/build/linux --check-build-system CMakeFiles/Makefile.cmake 0

/usr/local/bin/cmake -E cmake_progress_start /Volumes/Developer/x265/build/linux/CMakeFiles /Volumes/Developer/x265/build/linux/CMakeFiles/progress.marks

/Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all

/Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/usr/bin/make  -f encoder/CMakeFiles/encoder.dir/build.make encoder/CMakeFiles/encoder.dir/depend

cd /Volumes/Developer/x265/build/linux && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /Volumes/Developer/x265/source /Volumes/Developer/x265/source/encoder /Volumes/Developer/x265/build/linux /Volumes/Developer/x265/build/linux/encoder /Volumes/Developer/x265/build/linux/encoder/CMakeFiles/encoder.dir/DependInfo.cmake --color=

Dependee "/Volumes/Developer/x265/build/linux/encoder/CMakeFiles/encoder.dir/DependInfo.cmake" is newer than depender "/Volumes/Developer/x265/build/linux/encoder/CMakeFiles/encoder.dir/depend.internal".

Dependee "/Volumes/Developer/x265/build/linux/encoder/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Volumes/Developer/x265/build/linux/encoder/CMakeFiles/encoder.dir/depend.internal".

Scanning dependencies of target encoder

/Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/usr/bin/make  -f encoder/CMakeFiles/encoder.dir/build.make encoder/CMakeFiles/encoder.dir/build

[  1%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/analysis.cpp.o -c /Volumes/Developer/x265/source/encoder/analysis.cpp

In file included from /Volumes/Developer/x265/source/encoder/analysis.cpp:33:

In file included from /Volumes/Developer/x265/source/encoder/analysis.h:30:

In file included from /Volumes/Developer/x265/source/common/predict.h:30:

In file included from /Volumes/Developer/x265/source/common/quant.h:29:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[  2%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/search.cpp.o -c /Volumes/Developer/x265/source/encoder/search.cpp

In file included from /Volumes/Developer/x265/source/encoder/search.cpp:30:

In file included from /Volumes/Developer/x265/source/encoder/search.h:29:

In file included from /Volumes/Developer/x265/source/common/predict.h:30:

In file included from /Volumes/Developer/x265/source/common/quant.h:29:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[  3%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/bitcost.cpp.o -c /Volumes/Developer/x265/source/encoder/bitcost.cpp

[  4%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/motion.cpp.o -c /Volumes/Developer/x265/source/encoder/motion.cpp

[  5%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -Wno-strict-overflow -o CMakeFiles/encoder.dir/slicetype.cpp.o -c /Volumes/Developer/x265/source/encoder/slicetype.cpp

[  6%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/frameencoder.cpp.o -c /Volumes/Developer/x265/source/encoder/frameencoder.cpp

In file included from /Volumes/Developer/x265/source/encoder/frameencoder.cpp:32:

In file included from /Volumes/Developer/x265/source/encoder/encoder.h:30:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[  8%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/framefilter.cpp.o -c /Volumes/Developer/x265/source/encoder/framefilter.cpp

In file included from /Volumes/Developer/x265/source/encoder/framefilter.cpp:28:

In file included from /Volumes/Developer/x265/source/encoder/encoder.h:30:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[  9%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/level.cpp.o -c /Volumes/Developer/x265/source/encoder/level.cpp

[ 10%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/nal.cpp.o -c /Volumes/Developer/x265/source/encoder/nal.cpp

[ 11%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/sei.cpp.o -c /Volumes/Developer/x265/source/encoder/sei.cpp

[ 12%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/sao.cpp.o -c /Volumes/Developer/x265/source/encoder/sao.cpp

[ 13%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/entropy.cpp.o -c /Volumes/Developer/x265/source/encoder/entropy.cpp

In file included from /Volumes/Developer/x265/source/encoder/entropy.cpp:27:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[ 15%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/dpb.cpp.o -c /Volumes/Developer/x265/source/encoder/dpb.cpp

[ 16%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/ratecontrol.cpp.o -c /Volumes/Developer/x265/source/encoder/ratecontrol.cpp

In file included from /Volumes/Developer/x265/source/encoder/ratecontrol.cpp:36:

In file included from /Volumes/Developer/x265/source/encoder/encoder.h:30:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[ 17%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/reference.cpp.o -c /Volumes/Developer/x265/source/encoder/reference.cpp

[ 18%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/encoder.cpp.o -c /Volumes/Developer/x265/source/encoder/encoder.cpp

In file included from /Volumes/Developer/x265/source/encoder/encoder.cpp:36:

In file included from /Volumes/Developer/x265/source/encoder/encoder.h:30:

/Volumes/Developer/x265/source/common/scalinglist.h:36:12: warning: declaration

shadows a variable in namespace 'x265' [-Wshadow]

enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32

^

/Volumes/Developer/x265/source/common/cudata.h:51:5: note: previous declaration

is here

NUM_SIZES

^

1 warning generated.

[ 19%] Building CXX object encoder/CMakeFiles/encoder.dir/api.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/api.cpp.o -c /Volumes/Developer/x265/source/encoder/api.cpp

[ 20%] Building CXX object encoder/CMakeFiles/encoder.dir/weightPrediction.cpp.o

cd /Volumes/Developer/x265/build/linux/encoder && /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DEXPORT_C_API=1 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS=1 -DX265_ARCH_X86=1 -DX265_DEPTH=8 -DX265_NS=x265 -DX86_64=1 -D__STDC_LIMIT_MACROS=1 -I/Volumes/Developer/x265/source/. -I/Volumes/Developer/x265/source/common -I/Volumes/Developer/x265/source/encoder -I/Volumes/Developer/x265/build/linux  -O3 -DNDEBUG -isysroot /Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -mmacosx-version-min=10.15   -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -mstackrealign -fno-exceptions -Wno-uninitialized -o CMakeFiles/encoder.dir/weightPrediction.cpp.o -c /Volumes/Developer/x265/source/encoder/weightPrediction.cpp

[ 20%] Built target encoder

/Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/usr/bin/make  -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend

cd /Volumes/Developer/x265/build/linux && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /Volumes/Developer/x265/source /Volumes/Developer/x265/source/common /Volumes/Developer/x265/build/linux /Volumes/Developer/x265/build/linux/common /Volumes/Developer/x265/build/linux/common/CMakeFiles/common.dir/DependInfo.cmake --color=

Dependee "/Volumes/Developer/x265/build/linux/common/CMakeFiles/common.dir/DependInfo.cmake" is newer than depender "/Volumes/Developer/x265/build/linux/common/CMakeFiles/common.dir/depend.internal".

Dependee "/Volumes/Developer/x265/build/linux/common/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Volumes/Developer/x265/build/linux/common/CMakeFiles/common.dir/depend.internal".

Scanning dependencies of target common

/Volumes/Developer/Developer/Xcode-beta.app/Contents/Developer/usr/bin/make  -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build

[ 22%] Building ASM_NASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o

cd /Volumes/Developer/x265/build/linux/common && /usr/local/bin/nasm -f macho64 -DPREFIX -DARCH_X86_64=1 -I /Volumes/Developer/x265/source/common/../common/x86/ -DPIC -DHAVE_ALIGNED_STACK=1 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DX265_NS=x265   -o CMakeFiles/common.dir/x86/pixel-a.asm.o /Volumes/Developer/x265/source/common/x86/pixel-a.asm

nasm(33330,0x118f36dc0) malloc: Incorrect checksum for freed object 0x7f8e18c414c8: probably modified after being freed.

Corrupt value: 0x0

nasm(33330,0x118f36dc0) malloc: *** set a breakpoint in malloc_error_break to debug

/bin/sh: line 1: 33330 Abort trap: 6           /usr/local/bin/nasm -f macho64 -DPREFIX -DARCH_X86_64=1 -I /Volumes/Developer/x265/source/common/../common/x86/ -DPIC -DHAVE_ALIGNED_STACK=1 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DX265_NS=x265 -o CMakeFiles/common.dir/x86/pixel-a.asm.o /Volumes/Developer/x265/source/common/x86/pixel-a.asm

make[2]: *** [common/CMakeFiles/common.dir/x86/pixel-a.asm.o] Error 134

make[2]: *** Deleting file `common/CMakeFiles/common.dir/x86/pixel-a.asm.o'

make[1]: *** [common/CMakeFiles/common.dir/all] Error 2

make: *** [all] Error 2

Comments (3)

  1. Log in to comment