-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I am trying to build version 0.3.7 with PGI 19.4 (I've also tried 18.10 and it has the same problem) and it fails immediately with an "Unknown switch" error.
+ make USE_OPENMP=1 CC=pgcc CXX=pgc++ FC=pgfortran F90=pgfortran F77=pgfortran
pgcc-Error-Unknown switch: -march=native
make: *** [getarch] Error 1
Makefile.system:216: Makefile.conf: No such file or directory
make: *** No rule to make target `Makefile.conf'. Stop.
+ exit 1
I tried to debug the issue by looking at the build system and it appears that the problem has something to do with creation of Makefile.conf and config.h. For some reason, Makefile.conf is not getting created and the value of $(C_COMPILER) is wrong when it gets to line 147 of Makefile.system. Even though I'm using the PGI compiler, it still tries to use the -march=native flag even though there is a check to prevent that.
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
ifeq ($(ARCH), x86_64)
ifneq ($(C_COMPILER), PGI)
GETARCH_FLAGS += -march=native
endif
endif
PGI builds appear to be broken.
Metadata
Metadata
Assignees
Labels
No labels