[Beowulf] MPICH compilation problems
Timo Mechler
mechti01 at luther.edu
Mon Nov 28 11:02:12 PST 2005
Hi Alan,
I think everything is working ok, until it gets to using ld. Here's the
output from the compile process:
mpif77 --verbose -o trap trap.f
Reading specs from /usr/lib/gcc-lib/i386-pc-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-pc-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/f771 trap.f -quiet -dumpbase trap.f
-version -I/opt/mpich/gnu/include -o /tmp/ccKRdknH.s
GNU F77 version 3.2.3 20030502 (Red Hat Linux 3.2.3-42) (i386-pc-linux)
compiled by GNU C version 3.2.3 20030502 (Red Hat Linux 3.2.3-42).
as -V -Qy -o trap.o /tmp/ccKRdknH.s
GNU assembler version 2.14.90.0.4 (i386-pc-linux) using BFD version
2.14.90.0.4 20030523
Driving: g77 -L/opt/mpich/gnu/lib trap.o -v -o trap -lmpich -lfrtbegin
-lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc-lib/i386-pc-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-pc-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/collect2 --eh-frame-hdr -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o trap
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/../../../crt1.o
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/../../../crti.o
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/crtbegin.o -L/opt/mpich/gnu/lib
-L/usr/lib/gcc-lib/i386-pc-linux/3.2.3
-L/usr/lib/gcc-lib/i386-pc-linux/3.2.3/../../.. trap.o -lmpich -lfrtbegin
-lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/crtend.o
/usr/lib/gcc-lib/i386-pc-linux/3.2.3/../../../crtn.o
trap.o(.data+0x14): undefined reference to `mpi_win_dup_fn__'
trap.o(.data+0x18): undefined reference to `mpi_type_dup_fn__'
trap.o(.data+0x1c): undefined reference to `mpi_comm_dup_fn__'
trap.o(.data+0x24): undefined reference to `mpi_win_null_delete_fn__'
trap.o(.data+0x28): undefined reference to `mpi_win_null_copy_fn__'
trap.o(.data+0x2c): undefined reference to `mpi_type_null_delete_fn__'
trap.o(.data+0x30): undefined reference to `mpi_type_null_copy_fn__'
trap.o(.data+0x34): undefined reference to `mpi_comm_null_delete_fn__'
trap.o(.data+0x38): undefined reference to `mpi_comm_null_copy_fn__'
collect2: ld returned 1 exit status
Any ideas what's going on how I might be able to fix it so normal users
can compile the code just fine? Thanks again for your help.
Best Regards,
-Timo Mechler
> Did you use -L<directory of MPI library> -l<name of MPI library> ?
> --
>
> Centro di Ricerca, Sviluppo e Studi Superiori in Sardegna
> Center for Advanced Studies, Research, and Development in Sardinia
>
> Postal Address: | Physical Address for FedEx, UPS, DHL:
> --------------- | -------------------------------------
> Alan Scheinine | Alan Scheinine
> c/o CRS4 | c/o CRS4
> C.P. n. 25 | Loc. Pixina Manna Edificio 1
> 09010 Pula (Cagliari), Italy | 09010 Pula (Cagliari), Italy
>
> Email: scheinin at crs4.it
>
> Phone: 070 9250 238 [+39 070 9250 238]
> Fax: 070 9250 216 or 220 [+39 070 9250 216 or +39 070 9250 220]
> Operator at reception: 070 9250 1 [+39 070 9250 1]
> Mobile phone: 347 7990472 [+39 347 7990472]
>
>
--
Timo R. Mechler
mechti01 at luther.edu
More information about the Beowulf
mailing list