<div dir="ltr"><div dir="ltr">On Tue, Jun 13, 2023 at 9:09 AM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com">jacob.fai@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What is your full linker command? Make sure it also contains -fsanitize=address<br></blockquote><div><br></div><div>Thanks! I did not know you needed that. It would be nice if the linker would error on that.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best regards,<br>
<br>
Jacob Faibussowitsch<br>
(Jacob Fai - booss - oh - vitch)<br>
<br>
> On Jun 13, 2023, at 11:05, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br>
> <br>
> For some reason, libCEED seems broken with Address Sanitizer<br>
> <br>
> *********************************************************************************************<br>
>            UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
> ---------------------------------------------------------------------------------------------<br>
>   Error running make on libceed: Could not execute "[['/PETSc3/petsc/apple/bin/make',<br>
>   '-j13', '-l24.0', 'prefix=/PETSc3/petsc/petsc-pylith/arch-pylith-debug', 'V=1',<br>
>   'CC=/PETSc3/petsc/apple/bin/mpicc', 'CFLAGS= -fPIC -Wall -Wwrite-strings<br>
>   -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments<br>
>   -fvisibility=hidden -fsanitize=address ', 'CXX=/PETSc3/petsc/apple/bin/mpicxx',<br>
>   'CXXFLAGS= -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas<br>
>   -fstack-protector -fno-stack-check -fvisibility=hidden -fsanitize=address  -std=gnu++17<br>
>   -fPIC ', '-B']]":<br>
> <br>
>   make: 'lib' with optional backends: /cpu/self/memcheck/serial /cpu/self/memcheck/blocked<br>
>   /PETSc3/petsc/apple/bin/mpicc -I./include -fPIC -Wall -Wwrite-strings<br>
>   -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments<br>
>   -fvisibility=hidden -f<br>
>   .... more output .....<br>
>   mcheck/ceed-memcheck-qfunction.o build/backends/memcheck/ceed-memcheck-qfunctioncontext.o<br>
>   build/backends/memcheck/ceed-memcheck-serial.o<br>
>   build/backends/memcheck/ceed-memcheck-vector.o build/backends/ceed-backend-weak.o<br>
>   build/gallery/ceed-gallery-weak.o<br>
>   -lm/PETSc3/petsc/petsc-pylith/arch-pylith-debug/externalpackages/git.libceed/interface/ceed-preconditioning.c:44:9:<br>
>   warning: initializing 'char *' with an expression of type 'const char [1]' discards<br>
>   qualifiers [-Wincompatible-pointer-types-discards-qualifier<br>
>   .... more error .....<br>
>   ceed-operator.o<br>
>   _asan.module_ctor in ceed-preconditioning.o<br>
>   ...<br>
>   ld: symbol(s) not found for architecture x86_64<br>
>   clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
>   make: *** [Makefile:517: lib/libceed.dylib] Error 1<br>
> <br>
> Does anyone else see this?<br>
> <br>
>   Thanks,<br>
> <br>
>      Matt<br>
> <br>
> -- <br>
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> -- Norbert Wiener<br>
> <br>
> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>