[Pw_forum] compile problem on BG/P
davidfarrell2008 at u.northwestern.edu
Mon Dec 22 03:30:33 CET 2008
After fiddling with c_defs.h, I was able to get it to compile without
For those interested, here it is:
/* include/c_defs.h. Generated by configure. */
Copyright (C) 2006 Quantum-ESPRESSO group
This file is distributed under the terms of the
GNU General Public License. See the file `License'
in the root directory of the present distribution,
or http://www.gnu.org/copyleft/gpl.txt .
/* File c_defs.h.in is used by configure to generate c_defs.h
Variables that configure defines should be #undef-ined in
include/c_defs.h.in !!! */
/* fortran-to-C naming convention, for functions with and without
underscores in the name (some compilers treat them differently) */
#define F77_FUNC(name,NAME) name
#define F77_FUNC_(name,NAME) name
/* do we have the mallinfo structure (see clib/memstat.c) ? */
#define HAVE_MALLINFO 1
On Dec 20, 2008, at 2:33 PM, Paolo Giannozzi wrote:
> On Saturday 20 December 2008 15:51, David Farrell wrote:
>> berry_phase.f90:(.text+0xc4): undefined reference to `ln_ind'
>> berry_phase.f90:(.text+0x1334): undefined reference to `ln_alloc'
>> berry_phase.f90:(.text+0x1380): undefined reference to `ln_set'
>> berry_phase.f90:(.text+0x139c): undefined reference to `ln_activate'
>> berry_phase.f90:(.text+0x1400): undefined reference to `ln_dealloc'
>> check_stop.f90:(.text+0x120): undefined reference to `cclock'
>> electrons.f90:(.text+0x1f0): undefined reference to `memstat'
>> (.text+0xa508): undefined reference to `c_mkdir'
>> orthoatwfc.f90:(.text+0x80): undefined reference to `scnds'
>> Any ideas?
> hint: what do they have in common? they are all C functions.
> Modify include/c_defs.h as needed: "configure" recognizes the
> correct one, unfortunately for the front-end, not necessarily for
> the BG itself
> Paolo Giannozzi, Democritos and Udine University
> Pw_forum mailing list
> Pw_forum at pwscf.org
David E. Farrell
Department of Materials Science and Engineering
email: d-farrell2 at northwestern.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users