Dear all,

I have read the following posts on Intel's compiler version 19.0.5 on macOS 
Catalina 10.15.1:
- 
https://groups.google.com/forum/#!searchin/dealii/intel$20compiler|sort:date/dealii/mmljxW1T4QQ/wOTR9SmiBgAJ
- https://github.com/dealii/dealii/issues/8791

Now I can complete the CMake phase, but compilation fails with a linker 
error with std::string:

[  1%] Linking CXX executable ../../bin/expand_instantiations
Undefined symbols for architecture x86_64:
  
"__ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEPKcm", 
referenced from:
      __Z15read_whole_fileRNSt3__113basic_istreamIcNS_11char_traitsIcEEEE 
in expand_instantiations.cc.o
      
__Z15remove_commentsNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE
 
in expand_instantiations.cc.o

In my installation, I have PETSc, SLEPc, Intel's TBB, disabled C++17, and I 
am compiling in release mode. The linker call is the following, be aware 
that DEAL_II_SETUP_DEFAULT_COMPILER is set to ON:

/opt/intel/bin/icpc   -Wl,-search_paths_first 
-Wl,-headerpad_max_install_names -shared-intel -qopenmp 
CMakeFiles/expand_instantiations_exe.dir/expand_instantiations.cc.o  -o 
../../bin/expand_instantiations 

PETSc and SLEPc use Intel's MKL, and of course, Intel's compilers. Has 
anyone encountered a similar problem?

One little doubt in addition to that: I'd like to set -Ofast, but setting 
that with DEAL_II_CXX_FLAGS_RELEASE (which I use to set some tuning like 
SIMD optimizations) goes in conflict with the default -O2 set by the script.

Is there a "correct" way of specifying the Release optimization level in 
the Deal.II CMake scripts?

Thanks for any suggestion!
    Franco

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/140d8286-c3e3-4e5e-9942-ac703e0b8203%40googlegroups.com.

Reply via email to