openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

BUILDTYPE=Release not working

Open posidron opened this issue 12 years ago • 4 comments

BUILDTYPE=Release

/Users/cdiehl/dev/repos/llvm/build/bin/clang++ -O3 -fsanitize=address -m32 -Wno-deprecated-declarations -Werror -fPIC  -DX86_ASM -DNO_DYNAMIC_VP  -Icodec/api/svc -Icodec/common -Igtest/include  -Icodec/decoder/core/inc -c -o codec/common/./cpu.o codec/common/./cpu.cpp
/Users/cdiehl/dev/repos/llvm/build/bin/clang++ -O3 -fsanitize=address -m32 -Wno-deprecated-declarations -Werror -fPIC  -DX86_ASM -DNO_DYNAMIC_VP  -Icodec/api/svc -Icodec/common -Igtest/include  -Icodec/decoder/core/inc -c -o codec/common/./deblocking_common.o codec/common/./deblocking_common.cpp
/Users/cdiehl/dev/repos/llvm/build/bin/clang++ -O3 -fsanitize=address -m32 -Wno-deprecated-declarations -Werror -fPIC  -DX86_ASM -DNO_DYNAMIC_VP  -Icodec/api/svc -Icodec/common -Igtest/include  -Icodec/decoder/core/inc -c -o codec/common/./logging.o codec/common/./logging.cpp
nasm --prefix _ -DNOPREFIX -f macho -DX86_32 -DNO_DYNAMIC_VP -Icodec/common/   -o codec/common/./asm_inc.o codec/common/./asm_inc.asm
codec/common/./asm_inc.asm:63: error: parser: instruction expected
make: *** [codec/common/./asm_inc.o] Error 1

posidron avatar Jan 14 '14 02:01 posidron

the line 63 in asm_inc.asm is below: DEFAULT REL

It is nasm syntax to decide the link mode: RIP-relative or not. please see nasm manual section 6.2: http://www.nasm.us/xdoc/2.11/html/nasmdoc6.html#section-6.2.1, it should be supported after nasm 2.0( I am not sure), could you use command nasm -v to check the nasm version?

volvet avatar Jan 14 '14 02:01 volvet

Hi, Posldron, I build the latest code on my Mac with command line "make BUILDTYPE=Release", it is ok. The possible cause of failure is that your nasm is too old.

licaiguo avatar Jan 14 '14 02:01 licaiguo

On OSX I had to ln -s my /usr/bin/nasm to the one I got fro macports in /opt/local/bin/nasm. The one that apple ships is too old. My macports version is 2.11 which works for me.

ethanhugg avatar Jan 14 '14 03:01 ethanhugg

Thanks guys. nasm was indeed too old.

posidron avatar Jan 14 '14 06:01 posidron