<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All,<div><br></div><div>I am trying to compile pw & cp on a BG/P, using a slightly modified version of the included makefile (just added the correct path to the ESSL library), and upon compiling things go fine until the linking phase, when I get the following errors:</div><div><br></div><div>../Modules/berry_phase.o: In function `__berry_phase_NMOD_indi_of_ig':</div><div>berry_phase.f90:(.text+0xc4): undefined reference to `ln_ind'</div><div>berry_phase.f90:(.text+0xec): undefined reference to `ln_ind'</div><div>berry_phase.f90:(.text+0x164): undefined reference to `ln_ind'</div><div>berry_phase.f90:(.text+0x180): undefined reference to `ln_ind'</div><div>berry_phase.f90:(.text+0x19c): undefined reference to `ln_ind'</div><div>../Modules/berry_phase.o:berry_phase.f90:(.text+0x1e8): more undefined references to `ln_ind' follow</div><div>../Modules/berry_phase.o: In function `__berry_phase_NMOD_ln_setup':</div><div>berry_phase.f90:(.text+0x1334): undefined reference to `ln_alloc'</div><div>berry_phase.f90:(.text+0x1380): undefined reference to `ln_set'</div><div>berry_phase.f90:(.text+0x139c): undefined reference to `ln_activate'</div><div>../Modules/berry_phase.o: In function `__berry_phase_NMOD_ln_closeup':</div><div>berry_phase.f90:(.text+0x1400): undefined reference to `ln_dealloc'</div><div>../Modules/check_stop.o: In function `__check_stop_NMOD_check_stop_now':</div><div>check_stop.f90:(.text+0x120): undefined reference to `cclock'</div><div>../Modules/check_stop.o: In function `__check_stop_NMOD_check_stop_init':</div><div>check_stop.f90:(.text+0x970): undefined reference to `cclock'</div><div>../Modules/clocks.o: In function `start_clock':</div><div>(.text+0x260): undefined reference to `scnds'</div><div>../Modules/clocks.o: In function `start_clock':</div><div>(.text+0x2f8): undefined reference to `cclock'</div><div>../Modules/clocks.o: In function `start_clock':</div><div>(.text+0x324): undefined reference to `scnds'</div><div>../Modules/clocks.o: In function `stop_clock':</div><div>(.text+0x52c): undefined reference to `scnds'</div><div>../Modules/clocks.o: In function `stop_clock':</div><div>(.text+0x590): undefined reference to `cclock'</div><div>../Modules/clocks.o: In function `print_this_clock':</div><div>(.text+0x87c): undefined reference to `scnds'</div><div>../Modules/clocks.o: In function `print_this_clock':</div><div>(.text+0x890): undefined reference to `cclock'</div><div>../Modules/clocks.o: In function `get_clock':</div><div>(.text+0x12b0): undefined reference to `scnds'</div><div>../Modules/clocks.o: In function `get_clock':</div><div>(.text+0x1328): undefined reference to `scnds'</div><div>../Modules/xml_io_base.o: In function `__xml_io_base_NMOD_create_directory':</div><div>xml_io_base.f90:(.text+0xdbec): undefined reference to `c_mkdir'</div><div>../Modules/zhpev_drv.o: In function `__zhpev_module_NMOD_pzsteqr':</div><div>zhpev_drv.f90:(.text+0x2cbc): undefined reference to `cclock'</div><div>libpw.a(electrons.o): In function `electrons':</div><div>electrons.f90:(.text+0x1f0): undefined reference to `memstat'</div><div>libpw.a(input.o): In function `verify_tmpdir':</div><div>(.text+0xa508): undefined reference to `c_mkdir'</div><div>libpw.a(orthoatwfc.o): In function `orthoatwfc':</div><div>orthoatwfc.f90:(.text+0x80): undefined reference to `scnds'</div><div>libpw.a(new_ns.o): In function `new_ns':</div><div>new_ns.f90:(.text+0x10c): undefined reference to `scnds'</div><div>make[1]: *** [pw.x] Error 1</div><div>make[1]: Leaving directory `/gpfs/home/defarr/Quantum_Espresso/espresso-4.0.4/PW'</div><div>make: *** [pw] Error 2</div><div><br></div><div><br></div><div>Based on an older post on the pw_forum list, I removed berry_phase.o and replaced it with an empty file, and that got rid of the first set of errors (the post said that module wasn't used... is that correct?)</div><div><br></div><div>However, the other errors remained. </div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks,</div><div><br></div><div>Dave </div><div><br></div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">David E. Farrell</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Post-Doctoral Fellow</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Department of Materials Science and Engineering</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">Northwestern University</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; font-size: 12px; ">email: <a href="mailto:d-farrell2@northwestern.edu">d-farrell2@northwestern.edu</a></font></div></div></div></span> </div><br></div></body></html>