KeyDB icon indicating copy to clipboard operation
KeyDB copied to clipboard

Build with clang failed adlist.o: file not recognized: file format not recognized

Open KnightBlood opened this issue 8 months ago • 4 comments

Clang 16 KeyDB lastest CC=clang CFLAGS="-static" make MALLOC=libc adlist.o: file not recognized: file format not recognized

KnightBlood avatar Oct 13 '23 09:10 KnightBlood

did you run make distclean first to ensure adlist.o was compiled with the same compiler?

msotheeswaran-sc avatar Oct 13 '23 19:10 msotheeswaran-sc

did you run make distclean first to ensure adlist.o was compiled with the same compiler?

yes before compiler run with make distclean

KnightBlood avatar Oct 14 '23 02:10 KnightBlood

did you run make distclean first to ensure adlist.o was compiled with the same compiler?

CC=clang CXX=clang++ CFLAGS="-static" LDFLAGS="-static" make can't work with keydb but redis well

KnightBlood avatar Oct 15 '23 02:10 KnightBlood

I believe you need to add CXXFLAGS="-static"

msotheeswaran-sc avatar Oct 16 '23 17:10 msotheeswaran-sc