[Pw_forum] more patches

David Strubbe dstrubbe at berkeley.edu
Fri Apr 22 22:19:51 CEST 2016


Dear developers,

Here are some patches I found necessary to make when adding Quantum
ESPRESSO into the MacPorts package manager.

David Strubbe
MIT

The preceding executable's name mistakenly appears again here.

--- CPV/src/Makefile.orig       2015-12-16 14:19:27.000000000 -0500
+++ CPV/src/Makefile    2015-12-16 14:20:02.000000000 -0500
@@ -115,7 +115,7 @@
 manycp.x : manycp.o libcp.a $(QEMODS) $(QEFFT) $(LIBOBJS)
        $(LD) $(LDFLAGS) -o manycp.x manycp.o \
                libcp.a $(QEMODS) $(QEFFT) $(LIBOBJS) $(LIBS)
-       - ( cd ../../bin ; ln -fs ../CPV/src/cp.x . )
+       - ( cd ../../bin ; ln -fs ../CPV/src/manycp.x . )

 cp.x : cprstart.o libcp.a $(QEMODS) $(QEFFT) $(LIBOBJS)
        $(LD) $(LDFLAGS) -o cp.x cprstart.o \

Missing dependencies:

--- upftools/Makefile.orig      2015-12-12 01:09:26.000000000 -0500
+++ upftools/Makefile   2015-12-12 01:10:04.000000000 -0500
@@ -38,7 +38,7 @@
 read_upf.x : read_upf.o
        $(LD) $(LDFLAGS) -o $@ read_upf.o $(LIBS)

-read_upf_tofile.x : read_upf_tofile.o $(QEMODS)
+read_upf_tofile.x : read_upf_tofile.o $(OBJS) $(QEMODS) $(LIBOBJS)
        $(LD) $(LDFLAGS) -o $@ read_upf_tofile.o $(OBJS) $(QEMODS)
$(LIBOBJS) $(LIBS)

 rrkj2upf.x : rrkj2upf.o $(OBJS) $(QEMODS) $(LIBOBJS)


I recommend changing the name of your output from cpp runs to something
other than .F90, since on a case-insensitive filesystem (default for Mac
OSX) this is the same as the .f90 input file, which makes the compilation
fail. For example, in the Octopus project we use _oct.f90.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20160422/1d3b7ae2/attachment.html>


More information about the users mailing list