Hallo Elias,
thanks for the answers.

Meanwhile I checked, the error does not appear with GNU make 4.0
seems we should update our Cluster a little bit, I have to check which of our 
Computers are affected.

Personally I like more to tell make which files I like to have compiled instead 
of using an automatic 
search and the makefile decides which ones I like to have compiled, 
but maybe I am just a little bit too old fashioned.


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 Inorganic and Analytical Chemistry
Johannes Gutenberg - University
55099 Mainz
Max Planck Institute for Chemical Physics of Solids
01187 Dresden
Von: Wien [wien-boun...@zeus.theochem.tuwien.ac.at] im Auftrag von Elias 
Assmann [elias.assm...@gmail.com]
Gesendet: Mittwoch, 21. Dezember 2016 19:21
An: A Mailing list for WIEN2k users
Betreff: Re: [Wien] w2w compilation problem during siteconfig

My memory may be feeble, but the Internet remembers All.

It turns out that I had this exact problem three years ago.  I even
asked a question about it on StackOverflow [1], where a helpful user
pointed out that this is a known bug in make 3.82 [2] and suggested the


%.o: $$(wildcard %.[fF])
    $(FC) $(FFLAGS) -c $< -o $@

(splitting the rule should still also work, of course).

Since this problem was fixed in later versions of make and is easy to
circumvent if you are affected, I will leave my Makefiles as they are.

It remains a puzzle though that I cannot now reproduce the problem with
make 3.82 (neither with a make 3.81 that I found elsewhere).  Maybe
RedHat backported the fix?  ‘make -v’ says

GNU Make 3.82
Built for x86_64-redhat-linux-gnu


[1] http://stackoverflow.com/questions/21193024/wildcard-in-a-pattern-rule
[2] https://savannah.gnu.org/bugs/?func=detailitem&item_id=31621

Elias Assmann
Institute of Theoretical and Computational Physics
TU Graz                   <https://itp.tugraz.at/>

Wien mailing list

Reply via email to