# Issue Compiling Specfem on a Cray Machine

**URL:** https://community.geodynamics.org/t/issue-compiling-specfem-on-a-cray-machine/1947
**Category:** SPECFEM
**Tags:** installation
**Created:** [August 9, 2021, 5:36pm UTC](https://community.geodynamics.org/t/issue-compiling-specfem-on-a-cray-machine/1947 "2021-08-09T17:36:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![istoneuw](https://avatars.discourse-cdn.com/v4/letter/i/8e7dd6/32.png) [@istoneuw](https://community.geodynamics.org/u/istoneuw)
#### Post date: [August 9, 2021, 5:36pm UTC](https://community.geodynamics.org/t/issue-compiling-specfem-on-a-cray-machine/1947/1 "2021-08-09T17:36:18Z")

</div>

Hello,

I am attempting to compile Specfem3D Cartesian on a Cray system and am running into an issue when I go to compile specfem3D.

I am able to successfully compile xdecompose\_mesh and xgenerate\_databases. When I attempt to compile xspecfem3D, it proceeds past the point of “building xspecfem3D”, but exits shortly after with the following Error:

/opt/cray/pe/cce/9.1.1/binutils/x86\_64/x86\_64-pc-linux-gnu/bin/ld: ./obj/compute\_forces\_acoustic.spec.o: in function `compute_forces_acoustic_pml_': /home/istone/specfem3d/src/specfem3D/compute_forces_acoustic.F90:555: undefined reference to `mxm5\_3comp\_singlea\_’  
/opt/cray/pe/cce/9.1.1/binutils/x86\_64/x86\_64-pc-linux-gnu/bin/ld: /home/istone/specfem3d/src/specfem3D/compute\_forces\_acoustic.F90:556: undefined reference to `mxm5_3comp_3dmat_single_' /opt/cray/pe/cce/9.1.1/binutils/x86_64/x86_64-pc-linux-gnu/bin/ld: /home/istone/specfem3d/src/specfem3D/compute_forces_acoustic.F90:557: undefined reference to `mxm5\_3comp\_singleb\_’  
make: \*\*\* [src/specfem3D/rules.mk:292: bin/xspecfem3D] Error 1

For background, I configured the code using the examples in the utils/Cray\_compiler\_information/ directory, though without the CUDA options; my fortran and mpi options are set to work with ftn and cc. I am attempting to install the most recent version of Specfem from Github.

Has anyone run into any similar issues when compiling on a Cray system (or any other system, for that matter)?

Thank you,

Ian
