[Wien] Problem with make files in SRC_trig and SRC_w2w

Fecher, Gerhard fecher at uni-mainz.de
Sat Apr 25 09:15:01 CEST 2026


To whom it concerns,
I did not find out fast whether someone else recognized that already and fixed it.
I also did not check if other makefiles are also effected.
It concerns the latest Wien2k version, but maybe also older ones.

When ifx is used, the makefile in SRC_trig (and similar SRC_w2w/makefile.sys) results during compilation in the error message.
        Makefile:33: *** unknown compiler ‘ifx’, please specify variables manually.  Stop.
Reason is, that the makefiles do not know about ifx but only what ifort or gfortran are 
(lines 28 to 34 of the SRC_trig/makefile):

ifneq "$(findstring gfortran,$(FC))" ""
MODOPT ?= -J
else ifneq "$(findstring ifort,$(FC))" ""
MODOPT ?= -module
else ifndef MODOPT
$(error unknown compiler ‘$(FC)’, please specify variables manually)
endif

There are indeed various options to heal that. 
If ifort will not longer be used because it is not longer available for free and replaced by ifx,
then one can simply replace ifort by ifx in line 30, 
otherwise one can add two lines for ifx.
(or fix MODOPT to the intel case before the queries)
However to fix these queries to particular compilers will prevent that other
compilers are used, e.g. the amd compiler set, or any other.
Finally, if one doesn't need anything from these directories, one can leave it like it is.

Ciao
Gerhard

DEEP THOUGHT in D. Adams; Hitchhikers Guide to the Galaxy:
"I think the problem, to be quite honest with you,
is that you have never actually known what the question is."

====================================
Dr. Gerhard H. Fecher
Institut of Physics
Johannes Gutenberg - University
55099 Mainz
________________________________________


More information about the Wien mailing list