Re: Undefined reference with clang16 and address sanitizer

2023-05-15 Thread Niels Möller
Noah Watkins writes: > Making it through > further in the compilation process, though, we start to hit more > undefined references with the sanitizers turned on with clang16: > > ``` > clang -fsanitize=address -fsanitize=leak -g -O2 -ggdb3 -Wall -W > -Wno-sign-compare -Wmissing-prototypes -Wmis

Re: Undefined reference with clang16 and address sanitizer

2023-05-15 Thread Noah Watkins
Niels, That seems to have fixed the memory leak, thanks. Making it through further in the compilation process, though, we start to hit more undefined references with the sanitizers turned on with clang16: ``` clang -fsanitize=address -fsanitize=leak -g -O2 -ggdb3 -Wall -W -Wno-sign-compare -Wmi

Re: Undefined reference with clang16 and address sanitizer

2023-05-15 Thread Niels Möller
Noah Watkins writes: > Any thoughts on this? Since this runs as part of the build process, it > is blocking one of our pipelines. Looks like a missing mpz_clear. I think it should be fixed with https://git.lysator.liu.se/nettle/nettle/-/commit/966da449232766ad41b9be4f263fcccd4500bd22 Thanks for

Re: Undefined reference with clang16 and address sanitizer

2023-05-15 Thread Noah Watkins
Niels, Any thoughts on this? Since this runs as part of the build process, it is blocking one of our pipelines. On Thu, May 11, 2023 at 9:36 PM Noah Watkins wrote: > > Here is the leak report > > ``` > make[2]: Leaving directory > '/home/nwatkins/src/redpanda-llvm16/vbuild/debug/clang/v_deps_bui

Re: Undefined reference with clang16 and address sanitizer

2023-05-11 Thread Noah Watkins
Here is the leak report ``` make[2]: Leaving directory '/home/nwatkins/src/redpanda-llvm16/vbuild/debug/clang/v_deps_build/nettle-prefix/src/nettle-build' echo stamp > eccdata.stamp ./eccdata curve25519 11 6 64 > ecc-curve25519.hT && mv ecc-curve25519.hT ecc-curve25519.h Table size: 256 entries =

Re: Undefined reference with clang16 and address sanitizer

2023-05-07 Thread Niels Möller
Noah Watkins writes: > (fwiw sanitizer does report a memory leak when eccdata is > running at the end of make). If it looks like the sanitizer could be right, can you share the error report? Regards, /Niels -- Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677. Internet email is

Re: Undefined reference with clang16 and address sanitizer

2023-04-25 Thread Noah Watkins
Niels, Thank you very much for the quick response. > Also, Nettle's configure modifies CFLAGS (which is somewhat debatable), > so it may be more reliable with > > CC="clang -fsanitize=address" This indeed did the trick. It's still a bit mysterious why older versions of clang didn't have this pr

Re: Undefined reference with clang16 and address sanitizer

2023-04-25 Thread Niels Möller
Noah Watkins writes: > Hi nettle-bugs, > > 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-x