[CPMD-list] Help, compiling problem!

Huiqun Zhou hqzhou at nju.edu.cn
Thu Jun 30 16:24:59 CEST 2005


It seems the compiler failed to find where your mpi lib is.

Zhou Huiqun 
  ----- Original Message ----- 
  From: ÂíÉÐÒå 
  To: cpmd-list at cpmd.org 
  Sent: Thursday, June 30, 2005 8:00 PM
  Subject: [CPMD-list] Help, compiling problem! 


  Dear Axel and other cpmd user:
       I met a problem when I compiled parallel 3.9.2cpmd application executable. I
   have had compiled parallel cpmd.x successfully one month ago, but I failed this 
  time as the same step on a another computer and I don't know the reaseon!
      I use ther Redhat9.0 and get the cpu information with the command cat /proc/c
  puinfo;
  processor       : 1
  vendor_id       : GenuineIntel
  cpu family      : 15
  model           : 4
  model name      : Intel(R) Pentium(R) 4 CPU 3.40GHz
  stepping        : 1
  cpu MHz         : 3391.646
  cache size      : 1024 KB
  physical id     : 0
  siblings        : 2
  fdiv_bug        : no
  hlt_bug         : no
  f00f_bug        : no
  coma_bug        : no
  fpu             : yes
  fpu_exception   : yes
  cpuid level     : 5
  wp              : yes
  flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
  pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
  bogomips        : 6763.31
     
     It shows the computer has one cpu, but I think it has two cpus: firstly, I can
   choose linux-2.4.20-smp with the grub process; and secondly when I use the top c
  ommand, I can get two cpu state:
  CPU0 states:  99.4% user   0.1% system    0.0% nice   0.0% iowait   0.0% idle
  CPU1 states:   1.3% user   1.1% system    0.0% nice   0.0% iowait  97.1% idle
     Those're the informatin about my computer!
     The steps I compiled the parallel cpmd.x as follow:
     Firstly, I installed the pgf90 compiler with pgi5.2 and export its path succes
  sfully!
     Secondly, I installed the lam-7.1.1 and specified the compiler like this:
     $FC=pgf90
     $CC=pgcc
     $CXX=pgCC
     $export FC CC CXX
     $./configure --prefix=(install path)
     $make
     $make install
  and export the installation path, it seemed the installation was successful. But 
  some problems displayed at the end of parallel cpmd.x compiling and it showed:
  my_para.o(.text+0x20): In function `my_start_':
  : undefined reference to `mpi_init_'
  my_para.o(.text+0x134f): In function `my_end_':
  : undefined reference to `mpi_finalize_'
  my_para.o(.text+0x1382): In function `my_group_':
  : undefined reference to `mpi_comm_group_'
  my_para.o(.text+0x13ba): In function `my_group_':
  : undefined reference to `mpi_group_incl_'
  my_para.o(.text+0x13e8): In function `my_group_':
  : undefined reference to `mpi_comm_create_'
  my_para.o(.text+0x1450): In function `my_stopall_':
  : undefined reference to `mpi_abort_'
  my_para.o(.text+0x1489): In function `my_sync_':
  : undefined reference to `mpi_barrier_'
  my_para.o(.text+0x1520): In function `my_environ_':
  : undefined reference to `mpi_comm_rank_'
  my_para.o(.text+0x1544): In function `my_environ_':
  : undefined reference to `mpi_comm_size_'
  my_para.o(.text+0x1616): In function `my_bcast_':
  : undefined reference to `mpi_bcast_'
  my_para.o(.text+0x192e): In function `my_bsend_':
  : undefined reference to `mpi_send_'
  my_para.o(.text+0x1a26): In function `my_brecv_':
  : undefined reference to `mpi_recv_'
  my_para.o(.text+0x1ae4): In function `my_concat_':
  : undefined reference to `mpi_allgather_'
  my_para.o(.text+0x1bec): In function `my_trans_':
  : undefined reference to `mpi_alltoall_'
  my_para.o(.text+0x1d59): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1db7): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1e2c): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1ea0): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1efe): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x2079): In function `my_combine_source_':
  : undefined reference to `mpi_reduce_'
  my_para.o(.text+0x2149): In function `my_shift_':
  : undefined reference to `mpi_comm_rank_'
  my_para.o(.text+0x219e): In function `my_shift_':
  : undefined reference to `mpi_comm_size_'
  my_para.o(.text+0x228b): In function `my_shift_':
  : undefined reference to `mpi_isend_'
  my_para.o(.text+0x2306): In function `my_shift_':
  : undefined reference to `mpi_recv_'
  my_para.o(.text+0x24e6): In function `my_sendrecv_':
  : undefined reference to `mpi_sendrecv_'my_para.o(.text+0x20): In function `my_st
  art_':
  : undefined reference to `mpi_init_'
  my_para.o(.text+0x134f): In function `my_end_':
  : undefined reference to `mpi_finalize_'
  my_para.o(.text+0x1382): In function `my_group_':
  : undefined reference to `mpi_comm_group_'
  my_para.o(.text+0x13ba): In function `my_group_':
  : undefined reference to `mpi_group_incl_'
  my_para.o(.text+0x13e8): In function `my_group_':
  : undefined reference to `mpi_comm_create_'
  my_para.o(.text+0x1450): In function `my_stopall_':
  : undefined reference to `mpi_abort_'
  my_para.o(.text+0x1489): In function `my_sync_':
  : undefined reference to `mpi_barrier_'
  my_para.o(.text+0x1520): In function `my_environ_':
  : undefined reference to `mpi_comm_rank_'
  my_para.o(.text+0x1544): In function `my_environ_':
  : undefined reference to `mpi_comm_size_'
  my_para.o(.text+0x1616): In function `my_bcast_':
  : undefined reference to `mpi_bcast_'
  my_para.o(.text+0x192e): In function `my_bsend_':
  : undefined reference to `mpi_send_'
  my_para.o(.text+0x1a26): In function `my_brecv_':
  : undefined reference to `mpi_recv_'
  my_para.o(.text+0x1ae4): In function `my_concat_':
  : undefined reference to `mpi_allgather_'
  my_para.o(.text+0x1bec): In function `my_trans_':
  : undefined reference to `mpi_alltoall_'
  my_para.o(.text+0x1d59): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1db7): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1e2c): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1ea0): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x1efe): In function `my_combine_':
  : undefined reference to `mpi_allreduce_'
  my_para.o(.text+0x2079): In function `my_combine_source_':
  : undefined reference to `mpi_reduce_'
  my_para.o(.text+0x2149): In function `my_shift_':
  : undefined reference to `mpi_comm_rank_'
  my_para.o(.text+0x219e): In function `my_shift_':
  : undefined reference to `mpi_comm_size_'
  my_para.o(.text+0x228b): In function `my_shift_':
  : undefined reference to `mpi_isend_'
  my_para.o(.text+0x2306): In function `my_shift_':
  : undefined reference to `mpi_recv_'
  my_para.o(.text+0x24e6): In function `my_sendrecv_':
  : undefined reference to `mpi_sendrecv_'
  mpif77: No such file or directory
  make: *** [cpmd.x] Error 2
  mpif77: No such file or directory
  make: *** [cpmd.x] Error 2

    So what's the problem about it? Is there something wrong with my pgf90 or lam i
  nstallation? How can I solve it?
    Of course I could get the serial cpmd.x but I found one cpu of the computer is 
  free when I run it! 
     Thanks in advance!
     Best wishes!
                                                                shyma



------------------------------------------------------------------------------


  _______________________________________________
  CPMD-list mailing list
  CPMD-list at cpmd.org
  http://cpmd.org/mailman/listinfo/cpmd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cpmd.org/pipermail/cpmd-list/attachments/20050630/e3e991b0/attachment.html 


More information about the CPMD-list mailing list