We just updated to clang-16 and are encountering an issue compiling nettle with -fsanitize=address.
Configured with CC=clang CXX=clang++ CFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --disable-documentation --enable-x86-aesni We get the following errors. This doesn't appear to be an issue with clang-14 (I didn't try 15). I did just test with upstream nettle and the issue appears to be present there. Any pointers? Thanks! Noah ``` clang -fsanitize=address -ggdb3 -Wall -W -Wno-sign-compare -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -fsanitize=address nettle-pbkdf2.o misc.o ../getopt.o ../getopt1.o -lnettle -o nettle-pbkdf2 clang -fsanitize=address -ggdb3 -Wall -W -Wno-sign-compare -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -fsanitize=address nettle-hash.o misc.o ../getopt.o ../getopt1.o -lnettle -o nettle-hash clang -fsanitize=address -ggdb3 -Wall -W -Wno-sign-compare -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -fsanitize=address sexp-conv.o input.o output.o parse.o misc.o ../getopt.o ../getopt1.o -lnettle -lgmp -o sexp-conv clang -fsanitize=address -ggdb3 -Wall -W -Wno-sign-compare -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -fsanitize=address pkcs1-conv.o misc.o ../getopt.o ../getopt1.o -lhogweed -lnettle -lgmp -o pkcs1-conv /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_aes192_encrypt_aesni' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_set_key' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_salsa20_2core' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_blocks' /usr/bin/ld: ../libnettle.so: undefined reference to `nettle_serpent_decrypt' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_memxor_sse2' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_umac_nh_n' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_camellia_crypt' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_aes128_encrypt_aesni' /usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_ghash_update_pclmul' ``` _______________________________________________ nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se