Bug#666140: mpich2: FTBFS: dh_install: libmpich2-3 missing files (usr/lib/libmpich.so.3*), aborting

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Mar 29 03:05:02 UTC 2012


Source: mpich2
Version: 1.4.1-4
Severity: important
Justification: fails to build from source
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at lists.debian.org, debian-sparc at lists.debian.org

Hi,

mpich2 FTBFS on sparc and sh4.

  https://buildd.debian.org/status/fetch.php?pkg=mpich2&arch=sparc&ver=1.4.1-4&stamp=1328215853
  http://buildd.debian-ports.org/status/fetch.php?pkg=mpich2&arch=sh4&ver=1.4.1-4&stamp=1332905598

-----
dh_installcatalogs -plibmpich2-3
	grep -s -v '^misc:Depends=' debian/libmpich2-3.substvars >
debian/libmpich2-3.substvars.new || true
	mv debian/libmpich2-3.substvars.new debian/libmpich2-3.substvars
dh_installpam -plibmpich2-3
dh_installlogrotate -plibmpich2-3
dh_installlogcheck -plibmpich2-3
dh_installchangelogs -plibmpich2-3  ./CHANGES
	install -o 0 -g 0 -p -m644 debian/changelog
debian/libmpich2-3/usr/share/doc/libmpich2-3/changelog.Debian
	install -o 0 -g 0 -p -m644 ./CHANGES
debian/libmpich2-3/usr/share/doc/libmpich2-3/changelog
dh_installudev -plibmpich2-3
dh_lintian -plibmpich2-3
dh_bugfiles -plibmpich2-3
dh_install -plibmpich2-3
dh_install: libmpich2-3 missing files (usr/lib/libmpich.so.3*), aborting
make: *** [binary-install/libmpich2-3] Error 255
-----

These architechture does not support native OPA, but these work with
emulation OPA.
This problem is caused by the fact that libopa is not linked when
libmpich is created.
We can confirm this from build log.

-----
make[2]: Entering directory
`/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1'
(cd lib && /build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/util/createshlib
--mode=link  -version-info "3:2" -o libmpich.la  -rpath /usr/lib -L.
-ldflags " -Wl,-z,defs" -lrt -lpthread   -lmpl)
.tmp/ch3_isend.o: In function `OPA_load_ptr':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:75:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:75:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:75:
undefined reference to `OPA_emulation_lock'
.tmp/ch3_isend.o: In function `OPA_store_ptr':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:83:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:83:
undefined reference to `OPA_emulation_lock'
.tmp/ch3_isend.o:/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:83:
more undefined references to `OPA_emulation_lock' follow
.tmp/mpid_nem_alloc.o: In function `MPIDI_CH3I_Seg_commit':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_alloc.c:306:
undefined reference to `OPA_Interprocess_lock_init'
.tmp/mpid_nem_alloc.o: In function `check_alloc':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_alloc.c:496:
undefined reference to `OPA_emulation_lock'
.tmp/mpid_nem_alloc.o: In function `OPA_store_int':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
.tmp/mpid_nem_alloc.o: In function `OPA_load_int':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:59:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:59:
undefined reference to `OPA_emulation_lock'
.tmp/mpid_nem_alloc.o:/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:59:
more undefined references to `OPA_emulation_lock' follow
.tmp/mpid_nem_alloc.o: In function `MPIDI_CH3I_Seg_commit':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_alloc.c:374:
undefined reference to `OPA_Interprocess_lock_init'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/mpid/ch3/channels/nemesis/nemesis/src/mpid_nem_alloc.c:345:
undefined reference to `OPA_Interprocess_lock_init'
.tmp/mpid_nem_alloc.o: In function `OPA_store_int':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
.tmp/mpid_nem_barrier.o: In function `OPA_store_int':
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
undefined reference to `OPA_emulation_lock'
.tmp/mpid_nem_barrier.o:/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1/src/openpa/src/primitives/opa_by_lock.h:67:
more undefined references to `OPA_emulation_lock' follow
collect2: ld returned 1 exit status
if [ -n "" -a \
		"mpich" != "pmpich" ] ; then \
	(cd lib && /build/buildd-mpich2_1.4debian-sparc at lists.debian.org>
.1-4-sparc-yHCiJa/mpich2-1.4.1/src/util/createshlib --mode=link
-version-info "3:2" -o libpmpich.la  -rpath /usr/lib -ldflags
"-Wl,-z,defs");\
	fi
make[2]: Leaving directory
`/build/buildd-mpich2_1.4.1-4-sparc-yHCiJa/mpich2-1.4.1'
make lib/libfmpich.s
-----

When we added libopa (-lopa) to linker, The creating of the library succeeds.

-----
cd lib/
../src/util/createshlib --mode=link  -version-info "3:2" -o
libmpich.la  -rpath /usr/lib -L.   -ldflags " -Wl,-z,defs" -lrt
-lpthread  -lopa -lmp
-----

Please check your package.

Best regards,
 Nobuhiro

--
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6





More information about the debian-science-maintainers mailing list