Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metamake finds wrong gcc/g++ WSU Grid (and possibly others) if icc/icpc isn't in the path #363

Open
GregorySchwing opened this issue Aug 21, 2021 · 0 comments

Comments

@GregorySchwing
Copy link
Collaborator

Describe the bug
In metamake.sh, the path to icc and icpc is queries through a "which icc" shell command. The output is captured and if empty, the gnu compiler is used. Since the output of the which command is non-empty but also not a path (/usr/bin/which: no icc in (...)), the script doesn't search the path for gcc and g++, (which gcc), which is version 7.3, and cmake then finds the wrong version of gcc/g++ version 4.8.

To Reproduce
login to the grid
srun -q debug -t 10:0 --pty bash
git clone https://github.com/GOMC-WSU/GOMC.git
cd GOMC
git checkout development
./metamake.sh

Expected behavior
Compile with gcc/g++ 7.3

Additional context
Other softwares require a ./config script to set the compiler variables and other environment variables. This would prevent inevitable errors in autodetection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant