Abraham Zamudio
2010-08-16 21:53:31 UTC
Hi , i am compiling the new version of mpich2 (mpich2-1.3b1) , my
configure is :
./configure --prefix=/usr/local/mpich2_install --with-pm=mpd --enable-
fast=O3 --enable-debuginfo --enable-g=dbg,mem,log --with-java=/usr/
local/jdk1.6.0_21/
in the folder examples_logging , i run "make all" , giving me the
following result ..... finish with "collect2: ld returned 1 exit
status"
can not find the libraries MPE ..... as added to the system??
***@hep-desktop:/usr/local/mpich2_install/share/examples_logging$ sudo
make all
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpilog.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpilog cpilog.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpilog_pack.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpilog_pack
cpilog_pack.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c srtest.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o srtest srtest.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c comm1_isr.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o comm1_isr
comm1_isr.o -lm
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c fpilog.f
/usr/local/mpich2_install/bin/mpif77 -mpe=mpilog -o fpilog
fpilog.o -lm
rm -f mpe2tmp.f mpe2tmp.o
gcc -E fpilog_pack.F > mpe2tmp.f && \
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c mpe2tmp.f
gcc: fpilog_pack.F: Fortran compiler not installed on this system
make[1]: *** [fpilog_pack.o] Error 1
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c fcomm1_isr.f
/usr/local/mpich2_install/bin/mpif77 -mpe=mpilog -o fcomm1_isr
fcomm1_isr.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpi.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpitrace -o cpi_trace
cpi.o -lm
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpi_log cpi.o -
lm
/usr/local/mpich2_install/bin/mpicc -DNO_MPI_LOGGING -I/usr/local/
mpich2_install/include -c cpilog.c
mv -f cpilog.o cpilog.no
cp -f cpilog.no mpe2tmp.o
/usr/local/mpich2_install/bin/mpicc -mpe=log -o ncpilog mpe2tmp.o -
lm
/usr/local/mpich2_install/bin/mpicc -DNO_MPI_LOGGING -I/usr/local/
mpich2_install/include -c cpilog_pack.c
mv -f cpilog_pack.o cpilog_pack.no
cp -f cpilog_pack.no mpe2tmp.o
/usr/local/mpich2_install/bin/mpicc -mpe=log -o ncpilog_pack
mpe2tmp.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c iotest.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o iotest iotest.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c comm1_isr_loop.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o comm1_isr_loop
comm1_isr_loop.o -lm
gcc -I/usr/local/mpich2_install/include -g -O3 -DCLOG_NOMPI -c
log_cost.c
gcc -g -O3 -DCLOG_NOMPI -o log_cost log_cost.o -L/usr/local/
mpich2_install/lib -lmpe_nompi
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_info_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1105: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1105: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_bare_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1077: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1077: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Describe_comm_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:508: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:508: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Describe_comm_state':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:340: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:340: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Init_log':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:97: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:97: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_send':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:792: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:792: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_send':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:763: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:763: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_receive':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:867: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:867: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_receive':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:838: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:838: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1051: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1051: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1015: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1015: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log_thread.no): In
function `MPE_Log_thread_init':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log_thread.c:70:
undefined reference to `pthread_key_create'
collect2: ld returned 1 exit status
make: *** [log_cost] Error 1
configure is :
./configure --prefix=/usr/local/mpich2_install --with-pm=mpd --enable-
fast=O3 --enable-debuginfo --enable-g=dbg,mem,log --with-java=/usr/
local/jdk1.6.0_21/
in the folder examples_logging , i run "make all" , giving me the
following result ..... finish with "collect2: ld returned 1 exit
status"
can not find the libraries MPE ..... as added to the system??
***@hep-desktop:/usr/local/mpich2_install/share/examples_logging$ sudo
make all
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpilog.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpilog cpilog.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpilog_pack.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpilog_pack
cpilog_pack.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c srtest.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o srtest srtest.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c comm1_isr.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o comm1_isr
comm1_isr.o -lm
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c fpilog.f
/usr/local/mpich2_install/bin/mpif77 -mpe=mpilog -o fpilog
fpilog.o -lm
rm -f mpe2tmp.f mpe2tmp.o
gcc -E fpilog_pack.F > mpe2tmp.f && \
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c mpe2tmp.f
gcc: fpilog_pack.F: Fortran compiler not installed on this system
make[1]: *** [fpilog_pack.o] Error 1
/usr/local/mpich2_install/bin/mpif77 -I/usr/local/mpich2_install/
include -c fcomm1_isr.f
/usr/local/mpich2_install/bin/mpif77 -mpe=mpilog -o fcomm1_isr
fcomm1_isr.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c cpi.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpitrace -o cpi_trace
cpi.o -lm
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o cpi_log cpi.o -
lm
/usr/local/mpich2_install/bin/mpicc -DNO_MPI_LOGGING -I/usr/local/
mpich2_install/include -c cpilog.c
mv -f cpilog.o cpilog.no
cp -f cpilog.no mpe2tmp.o
/usr/local/mpich2_install/bin/mpicc -mpe=log -o ncpilog mpe2tmp.o -
lm
/usr/local/mpich2_install/bin/mpicc -DNO_MPI_LOGGING -I/usr/local/
mpich2_install/include -c cpilog_pack.c
mv -f cpilog_pack.o cpilog_pack.no
cp -f cpilog_pack.no mpe2tmp.o
/usr/local/mpich2_install/bin/mpicc -mpe=log -o ncpilog_pack
mpe2tmp.o -lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c iotest.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o iotest iotest.o
-lm
/usr/local/mpich2_install/bin/mpicc -I/usr/local/mpich2_install/
include -c comm1_isr_loop.c
/usr/local/mpich2_install/bin/mpicc -mpe=mpilog -o comm1_isr_loop
comm1_isr_loop.o -lm
gcc -I/usr/local/mpich2_install/include -g -O3 -DCLOG_NOMPI -c
log_cost.c
gcc -g -O3 -DCLOG_NOMPI -o log_cost log_cost.o -L/usr/local/
mpich2_install/lib -lmpe_nompi
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_info_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1105: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1105: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_bare_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1077: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1077: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Describe_comm_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:508: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:508: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Describe_comm_state':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:340: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:340: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Init_log':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:97: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:97: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_send':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:792: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:792: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_send':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:763: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:763: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_receive':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:867: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:867: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_receive':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:838: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:838: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1051: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1051: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log.no): In function
`MPE_Log_comm_event':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1015: undefined
reference to `pthread_getspecific'
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log.c:1015: undefined
reference to `pthread_setspecific'
/usr/local/mpich2_install/lib/libmpe_nompi.a(mpe_log_thread.no): In
function `MPE_Log_thread_init':
/root/mpich2-1.3b1/src/mpe2/src/logging/src/mpe_log_thread.c:70:
undefined reference to `pthread_key_create'
collect2: ld returned 1 exit status
make: *** [log_cost] Error 1