[petsc-users] Inquiry about issue when compiling with clang
Benjamin Chapman
benjamin.chapman at mail.utoronto.ca
Wed Nov 12 23:08:01 CST 2025
Hello,
We are using PETSc as part of a larger project and are switching from compiling with gcc to using AOCC (clang). However, I am getting an error from my include statements stating that the data type __complex128 is an "unknown type name". The full error log is attached.
I found this solution online (FreeFem - PETSc compilation error - libblas.a/liblapack.a cannot be used - FreeFEM installation - FreeFEM<https://urldefense.us/v3/__https://community.freefem.org/t/freefem-petsc-compilation-error-libblas-a-liblapack-a-cannot-be-used/2771/8__;!!G_uCfscf7eWS!fqL9KO-Su4o3uzl3iGDcskkh1utILAAeNaaZ25v6yAZ2CEn2axOiqwOCYwJHMlq_jQwt9Oc4FXRaM9tMvfMBVx5mCetoylgskpID89ee$ >), which says to comment out a line in the petscconf.h header file. Is this a safe fix or is there a more elegant way to go about this?
Best,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251113/700754a7/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: petsc_build_error_messages.txt
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251113/700754a7/attachment-0001.txt>
More information about the petsc-users
mailing list