Closed cmurf closed 4 years ago
$ make DONT_BUILD_TORNADO=1
...
/usr/bin/ld: glza/GLZAdecode.o:(.bss+0x1cf10c): multiple definition of `symbol_index'; glza/GLZAencode.o:(.bss+0x1c1d4): first defined here
/usr/bin/ld: _lzbench/compressors.o:(.rodata+0x70): multiple definition of `g_Alloc'; lzma/Alloc.o:(.rodata+0x30): first defined here
/usr/bin/ld: _lzbench/compressors.o: in function `lzbench_tornado_compress(char*, unsigned long, char*, unsigned long, unsigned long, unsigned long, char*)':
compressors.cpp:(.text+0x1c17): undefined reference to `tor_compress(unsigned char, unsigned char*, unsigned int, unsigned char*, unsigned int)'
/usr/bin/ld: _lzbench/compressors.o: in function `lzbench_tornado_decompress(char*, unsigned long, char*, unsigned long, unsigned long, unsigned long, char*)':
compressors.cpp:(.text+0x1c35): undefined reference to `tor_decompress(unsigned char*, unsigned int, unsigned char*, unsigned int)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:310: lzbench] Error 1
This succeeds.
$ make DONT_BUILD_CSC=1 DONT_BUILD_DENSITY=1 DONT_BUILD_GLZA=1 DONT_BUILD_LZHAM=1 DONT_BUILD_LZSSE=1 DONT_BUILD_BZIP2=1 DONT_BUILD_FASTLZMA2=1 DONT_BUILD_SNAPPY=1 DONT_BUILD_TORNADO=1 DONT_BUILD_XPACK=1 DONT_BUILD_YAPPY=1 DONT_BUILD_ZLING=1
I am encountering the same problem on Artix linux. The workaround noted by @cmurf works for me as well.
The issue should be fixed with https://github.com/inikep/lzbench/releases/tag/v1.8.1
gcc-10.0.1-0.11.fc32.x86_64