yambo-code / yambo

This is the official GPL repository of the yambo code
http://www.yambo-code.eu/
GNU General Public License v2.0
98 stars 38 forks source link

Problems linking (with some machines) #12

Open robwarm opened 5 years ago

robwarm commented 5 years ago

With some machines (openSUSE Leap 15 and Tumbleweed) I get the following error while linking (using yambo 4.2.4):

/bin/sh: echo$: command not found make[1]: [Makefile:85: yambo] Error 127 make[1]: Leaving directory '/home/rbw/programs/installs/yambo-4.2.4/driver' make: [Makefile:192: yambo] Error 2

Older openSUSE links just fine. I don't know what difference in software make the difference (like gcc 4.85 to 7/8), but after much trying removing the \$ after the variable names in sbin/make_makefiles.sh did the trick for me:

\$(target): \$(dep_file) \$(objs) \$(driver) \$(link) \$(modmove) \$(dircheck) @mv \$@ \$(exec_prefix) before: \$(target): \$(dep_file) \$(objs) \$(driver)\$ \$(link)\$ \$(modmove)\$ \$(dircheck)\$ @mv \$@ \$(exec_prefix)

I don't know much about makefiles, so I don't know, whether that's a good solution.