# FreeFEM compilation: issues on HPC

**URL:** <https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788>\
**Category:** FreeFEM installation\
**Created:** [February 28, 2025, 10:25pm UTC](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788 "2025-02-28T22:25:16Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)\
**Post date:** [March 25, 2025, 4:45pm UTC](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788/41 "2025-03-25T16:45:25Z")

</div>

Thanks, that indeed helped. Now I am getting different errors during the make command. Could you take a look at it please? First first guess is that maybe the newer `icpx` does not work with FreeFEM, and I should go back to `icpc`.  
[make\_out.log](https://community.freefem.org/uploads/short-url/gBLF3DO4FCLDyGI3BskhFNNfTmi.log) (41.2 KB)  
[make\_err.log](https://community.freefem.org/uploads/short-url/rzdrv3jsMArL45wKcujkCdPewVz.log) (31.1 KB)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [March 25, 2025, 5:15pm UTC](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788/42 "2025-03-25T17:15:28Z")

</div>

It works, I’m using `icpx` for about two years. Again, this is specific to your installation/machine.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [March 25, 2025, 5:19pm UTC](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788/43 "2025-03-25T17:19:25Z")

</div>

Here is a successful compilation of `FreeFem++` with `icpx`.

```auto
$ icpx -I/ccc/products/gcc-14.2.0/system/default/include/c++/14.2.0/x86_64-pc-linux-gnu -Ofast -mavx2 -DNDEBUG -std=gnu++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -rdynamic -o FreeFem++ ../Graphics/sansrgraph.o ../mpi/parallelempi-empty.o ../fflib/ffapi.o ../fflib/compositeFESpace.o ../lglib/liblg.a ../fflib/libff.a -Wl,-rpath,/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -L/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -lspqr -lumfpack -lklu -lcholmod -lamd -Wl,-rpath,/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -L/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -lmetis -Wl,-rpath,/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -L/ccc/work/cont003/gen7519/gen7519/petsc/arch-linux-c-opt-real/lib -larpack -Wl,-rpath,/ccc/products/mkl-25.0.0/system/default/25.0.0/lib/intel64/intel64 -L/ccc/products/mkl-25.0.0/system/default/25.0.0/lib/intel64/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread -ldl -lm -lrt -L/ccc/products/gcc-14.2.0/system/default/lib64 -L/ccc/products2/ifx-25.0.0/Rhel_8 __x86_64/system/default/compiler/2025.0/lib -L/ccc/products2/ifx-25.0.0/Rhel_8__ x86_64/system/default/compiler/2025.0/lib/clang/19/lib/x86_64-unknown-linux-gnu -L/ccc/products2/gcc-14.2.0/Rhel_8 __x86_64/system/default/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.0/ -L/ccc/products2/gcc-14.2.0/Rhel_8__ x86_64/system/default/bin/../lib/gcc/ -L/ccc/products/gcc-14.2.0/system/default/lib64/../lib64 -L/ccc/products/gcc-14.2.0/system/default/lib64/../lib64/ -L/ccc/products2/gcc-14.2.0/Rhel_8 __x86_64/system/default/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../lib64 -L/ccc/products2/gcc-14.2.0/Rhel_8__ x86_64/system/default/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../../lib64/ -L/lib/../lib64 -L/lib/../lib64/ -L/usr/lib/../lib64 -L/usr/lib/../lib64/ -L/ccc/products/gcc-14.2.0/system/default/lib64/ -L/ccc/products2/gcc-14.2.0/Rhel_8__x86_64/system/default/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.0/../../../ -L/lib64 -L/lib/ -L/usr/lib64 -L/usr/lib -lifport -lifcoremt -limf -lsvml -lm -lipgo -lirc -lpthread -lirc_s -ldl -lz 
$ icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2025.0.0 (2025.0.0.20241008)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /ccc/products2/icx-25.0.0/Rhel_8__x86_64/system/default/compiler/2025.0/bin/compiler
Configuration file: /ccc/products2/icx-25.0.0/Rhel_8__x86_64/system/default/compiler/2025.0/bin/compiler/../icpx.cfg

```

---

<div class="post-metadata">

**Author:** ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)\
**Post date:** [March 25, 2025, 5:46pm UTC](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788/44 "2025-03-25T17:46:38Z")

</div>

Thanks for looking into it! I will look into it whether I did not mix modules up, and talk to the sysadmin for machine specific help.

[Previous page](https://community.freefem.org/t/freefem-compilation-issues-on-hpc/3788.md?page=2)
