[Pw_forum] error

Heather Whitley whitley3 at llnl.gov
Wed Oct 10 18:17:40 CEST 2007


Dear Fariba,

I encountered this problem as well when trying to compile the CVS 
version of Espresso.  It occurs because the linker defaults to "ld" 
rather than the compiler.  You can likely fix it by setting the variable 
"LD" in your make.sys file to the name of whichever compiler you are 
using (like mpiifort, mpipgf90, etc.)

Regards,
Heather
> Message: 1
> Date: Tue, 9 Oct 2007 13:06:37 +0100 (BST)
> From: nazari at iasbs.ac.ir
> Subject: [Pw_forum] error
> To: pw_forum at pwscf.org
> Message-ID: <10894.213.176.122.3.1191931597.squirrel at mail.iasbs.ac.ir>
> Content-Type: text/plain;charset=utf-8
>
>
>
>  Dear Users,
>
>  I have tried to compile espresso on pc with linux operating system.
>  I have faced with the following error in make pw step. Would you
>
>  please let me know how I can solve this problem.
>
>  Regards
>  Fariba Nazari
>  IASBS
>   pwscf.o ../Modules/atom.o ../Modules/autopilot.o
> ../Modules/basic_algebra_routines.o ../Modules/berry_phase.o
> ../Modules/bfgs_module.o ../Modules/cell_base.o ../Modules/check_stop.o
> ../Modules/clocks.o ../Modules/constants.o
> ../Modules/constraints_module.o ../Modules/control_flags.o
> ../Modules/electrons_base.o ../Modules/fft_base.o
> ../Modules/fft_scalar.o ../Modules/fft_types.o ../Modules/functionals.o
> ../Modules/input_parameters.o ../Modules/io_files.o
> ../Modules/io_global.o ../Modules/ions_base.o ../Modules/ions_nose.o
> ../Modules/kind.o ../Modules/mp_global.o ../Modules/mp_wave.o
> ../Modules/mp.o ../Modules/metadyn_base.o ../Modules/metadyn_io.o
> ../Modules/metadyn_vars.o ../Modules/path_base.o
> ../Modules/path_formats.o ../Modules/path_variables.o
> ../Modules/path_opt_routines.o ../Modules/path_io_routines.o
> ../Modules/path_reparametrisation.o ../Modules/parallel_include.o
> ../Modules/parameters.o ../Modules/parser.o ../Modules/printout_base.o
> ../Modules/pseudo_types.o ../Modules/ptoolkit.o
> ../Modules/random_numbers.o ../Modules/read_cards.o
> ../Modules/read_namelists.o ../Modules/read_upf.o ../Modules/read_uspp.o
> ../Modules/recvec.o ../Modules/shmem_include.o ../Modules/splinelib.o
> ../Modules/stick_base.o ../Modules/task_groups.o ../Modules/timestep.o
> ../Modules/uspp.o ../Modules/version.o ../Modules/wavefunctions.o
> ../Modules/wave_base.o ../Modules/xml_io_base.o libpw.a ../flib/ptools.a
> ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a -lmkl_lapack
> -L/opt/intel/mkl/9.1.023/lib/32 -lmkl_ia32 -lguide -lpthread
> /usr/local/bin/fftw-wisdom
> /usr/local/bin/fftw-wisdom: In function `_start':
> (.text+0x0): multiple definition of `_start'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crt1.o:(.text+0x0): first
> defined here
> /usr/local/bin/fftw-wisdom:(.rodata+0x0): multiple definition of `_fp_hw'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crt1.o:(.rodata+0x0): first
> defined here
> /usr/local/bin/fftw-wisdom: In function `_fini':
> (.fini+0x0): multiple definition of `_fini'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crti.o:(.fini+0x0): first
> defined here
> /usr/local/bin/fftw-wisdom:(.rodata+0x4): multiple definition of
> `_IO_stdin_used'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crt1.o:(.rodata.cst4+0x0):
> first defined here
> /usr/local/bin/fftw-wisdom: In function `__data_start':
> (.data+0x0): multiple definition of `__data_start'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crt1.o:(.data+0x0): first
> defined here
> /usr/local/bin/fftw-wisdom:(.rodata+0x8): multiple definition of
> `__dso_handle'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/crtbegin.o:(.rodata+0x0): first
> defined here
> /usr/local/bin/fftw-wisdom: In function `_edata':
> (*ABS*+0x80d48a4): multiple definition of `__bss_start'
> /usr/local/bin/fftw-wisdom: In function `_end':
> (*ABS*+0x80d4af8): multiple definition of `_end'
> /usr/local/bin/fftw-wisdom: In function `_edata':
> (*ABS*+0x80d48a4): multiple definition of `_edata'
> /usr/local/bin/fftw-wisdom: In function `_init':
> (.init+0x0): multiple definition of `_init'
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../crti.o:(.init+0x0): first
> defined here
> ../Modules/berry_phase.o: In function `__berry_phase__ln_setup':
> berry_phase.f90:(.text+0x33): undefined reference to `ln_alloc_'
> berry_phase.f90:(.text+0x92): undefined reference to `ln_set_'
> berry_phase.f90:(.text+0xa5): undefined reference to `ln_activate_'
> ../Modules/berry_phase.o: In function `__berry_phase__indi_of_ig':
> berry_phase.f90:(.text+0x21e): undefined reference to `ln_ind_'
> berry_phase.f90:(.text+0x250): undefined reference to `ln_ind_'
> berry_phase.f90:(.text+0x286): undefined reference to `ln_ind_'
> berry_phase.f90:(.text+0x30c): undefined reference to `ln_ind_'
> berry_phase.f90:(.text+0x335): undefined reference to `ln_ind_'
> ../Modules/berry_phase.o:berry_phase.f90:(.text+0x379): more undefined
> references to `ln_ind_' follow
> ../Modules/berry_phase.o: In function `__berry_phase__ln_closeup':
> berry_phase.f90:(.text+0xe2): undefined reference to `ln_dealloc_'
> ../Modules/fft_scalar.o: In function `__fft_scalar__cft_1z':
> fft_scalar.f90:(.text+0xf2): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x118): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x1f0): undefined reference to `fft_z_stick_'
> fft_scalar.f90:(.text+0x258): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x26c): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x295): undefined reference to `fft_z_stick_'
> ../Modules/fft_scalar.o: In function `__fft_scalar__cft_2xy':
> fft_scalar.f90:(.text+0x49c): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x4c2): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x516): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x53c): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x633): undefined reference to `fft_x_stick_'
> fft_scalar.f90:(.text+0x6cb): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x6df): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x6f3): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x707): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x785): undefined reference to `fft_x_stick_'
> fft_scalar.f90:(.text+0x86e): undefined reference to `fft_y_stick_'
> fft_scalar.f90:(.text+0x8d3): undefined reference to `fft_y_stick_'
> ../Modules/fft_scalar.o: In function `__fft_scalar__cfft3d':
> fft_scalar.f90:(.text+0x9c2): undefined reference to `create_plan_3d_'
> fft_scalar.f90:(.text+0x9f0): undefined reference to `create_plan_3d_'
> fft_scalar.f90:(.text+0xa7a): undefined reference to 
> `fftw_inplace_drv_3d_'
> fft_scalar.f90:(.text+0xab0): undefined reference to `destroy_plan_3d_'
> fft_scalar.f90:(.text+0xacb): undefined reference to `destroy_plan_3d_'
> fft_scalar.f90:(.text+0xb7a): undefined reference to 
> `fftw_inplace_drv_3d_'
> ../Modules/fft_scalar.o: In function `__fft_scalar__cfft3ds':
> fft_scalar.f90:(.text+0xd1c): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0xd45): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0xd6e): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0xd97): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0xdc0): undefined reference to `create_plan_1d_'
> ../Modules/fft_scalar.o:fft_scalar.f90:(.text+0xde9): more undefined
> references to `create_plan_1d_' follow
> ../Modules/fft_scalar.o: In function `__fft_scalar__cfft3ds':
> fft_scalar.f90:(.text+0xee1): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0xfa9): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0xfe7): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0x1025): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x104c): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x1073): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x109a): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x10c1): undefined reference to `destroy_plan_1d_'
> ../Modules/fft_scalar.o:fft_scalar.f90:(.text+0x10e8): more undefined
> references to `destroy_plan_1d_' follow
> ../Modules/fft_scalar.o: In function `__fft_scalar__cfft3ds':
> fft_scalar.f90:(.text+0x11dd): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0x126a): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0x1317): undefined reference to 
> `fftw_inplace_drv_1d_'
> ../Modules/fft_scalar.o: In function `__fft_scalar__cft_b':
> fft_scalar.f90:(.text+0x148e): undefined reference to `create_plan_1d_'
> fft_scalar.f90:(.text+0x14cf): undefined reference to `create_plan_2d_'
> fft_scalar.f90:(.text+0x1574): undefined reference to 
> `fftw_inplace_drv_1d_'
> fft_scalar.f90:(.text+0x15b6): undefined reference to 
> `fftw_inplace_drv_2d_'
> fft_scalar.f90:(.text+0x15db): undefined reference to `destroy_plan_1d_'
> fft_scalar.f90:(.text+0x15ef): undefined reference to `destroy_plan_2d_'
> ../Modules/xml_io_base.o: In function `__xml_io_base__create_directory':
> xml_io_base.f90:(.text+0x20a): undefined reference to `c_mkdir_'
> libpw.a(input.o): In function `verify_tmpdir_':
> input.f90:(.text+0x60a): undefined reference to `c_mkdir_'
> libpw.a(bp_c_phase.o): In function `c_phase_':
> bp_c_phase.f90:(.text+0x103a): undefined reference to `ylm_q_'
> libpw.a(bp_radin.o): In function `radlg_':
> bp_radin.f:(.text+0x17a): undefined reference to `s_wsle'
> bp_radin.f:(.text+0x190): undefined reference to `do_lio'
> bp_radin.f:(.text+0x198): undefined reference to `e_wsle'
> bp_radin.f:(.text+0x1a5): undefined reference to `s_wsle'
> bp_radin.f:(.text+0x1bb): undefined reference to `do_lio'
> bp_radin.f:(.text+0x1d0): undefined reference to `do_lio'
> bp_radin.f:(.text+0x1d5): undefined reference to `e_wsle'
> bp_radin.f:(.text+0x1e3): undefined reference to `s_stop'
> libpw.a(bp_radin.o): In function `radlg1_':
> bp_radin.f:(.text+0x2b5): undefined reference to `s_wsle'
> bp_radin.f:(.text+0x2cb): undefined reference to `do_lio'
> bp_radin.f:(.text+0x2d3): undefined reference to `e_wsle'
> bp_radin.f:(.text+0x2e0): undefined reference to `s_wsle'
> bp_radin.f:(.text+0x2f6): undefined reference to `do_lio'
> bp_radin.f:(.text+0x30b): undefined reference to `do_lio'
> bp_radin.f:(.text+0x310): undefined reference to `e_wsle'
> bp_radin.f:(.text+0x31e): undefined reference to `s_stop'
> libpw.a(c_phase_field.o): In function `c_phase_field_':
> c_phase_field.f90:(.text+0x2008): undefined reference to `ylm_q_'
> libpw.a(h_epsi_her.o): In function `h_epsi_her_':
> h_epsi_her.f90:(.text+0xd9e): undefined reference to `ylm_q_'
> h_epsi_her.f90:(.text+0x1292): undefined reference to `ylm_q_'
> collect2: ld returned 1 exit status
> make[1]: *** [pw.x] Error 1
> make[1]: Leaving directory `/root/fariba/espresso-3.2.3/PW'
> make: *** [pw] Error 2
>
>   

-- 
***********************************************
Heather D. Whitley
Quantum Simulations Group 
Lawrence Livermore National Laboratory
Livermore, CA 94551  
whitley3 at llnl.gov 
http://www.llnl.gov/qsg 



More information about the users mailing list