2021年8月17日火曜日 17:35:47 UTC+9 isu...@gmail.com:
> Ah, you are using the system python that was built with gcc, but you want > to build sage with clang/clang++. > > In python, setting CC will override the compiler used for building > extension modules, but > it will not override the linker used for building an extension module. > > What happens here is a file is compiled with `-fopenmp` with clang > (meaning it needs to be linked with libomp from LLVM), > but linked with `-fopenmp` with gcc (meaning it links to libgomp from GNU). > > To fix this, you'll have to set env variable LDSHARED="clang -pthread > -shared" > Thanks. I'll give it a try. The reason I build recent sage with clang[,++] (in addition to a separate build with gcc) is because the build with gcc failed in building older gcc (10.x?) on recent fedora (with gcc 11). To add one thing, the dochtml build error occurs only on recent sage (& fedora) versions... Kazuyoshi -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/933f84d1-55e7-4eba-95d5-e0515e747ee1n%40googlegroups.com.