[Pkg-lustre-maintainers] Bug#615749: lustre: ftbfs with gold or ld --no-add-needed

Matthias Klose doko at debian.org
Mon Feb 28 00:53:07 UTC 2011


Package: lustre
Version: 1.8.3-4
Severity: important
Tags: sid
User: peter.fritzsche at gmx.de
Usertags: no-add-needed

The package fails to build in a test rebuild on at least amd64 with
ld --no-add-needed.  For details, please see:
http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html
http://wiki.debian.org/ToolChain/DSOLinking

Ubuntu might have a patch for this issue, but unfortunately it was
not forwarded to Debian.  Please have a look at
http://packages.qa.debian.org/lustre to see if an Ubuntu version for
this package exists, and if a fix is included in the Ubuntu diff.

[...]
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/checkstat.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/checkstat.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o checkstat  checkstat.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/statone.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/statone.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o statone  statone.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/runas.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/runas.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o runas  runas.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/openfile.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/openfile.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o openfile  openfile.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/rmdirmany.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/rmdirmany.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o rmdirmany  rmdirmany.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/small_write.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/small_write.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o small_write  small_write.o  
gcc -DHAVE_CONFIG_H -I. -I../../../../lustre/tests -I../..  -D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/config.h -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/lustre/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lnet/include -I/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/include  -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2 -c `test -f '../../../../lustre/tests/multiop.c' || echo '../../../../lustre/tests/'`../../../../lustre/tests/multiop.c
gcc -g -Wall -fPIC -D_GNU_SOURCE -Wall -g -O2   -o multiop  multiop.o ../../lustre/utils/liblustreapi.a -lrt 
/usr/bin/ld: multiop.o: undefined reference to symbol 'sem_post@@GLIBC_2.2.5'
/usr/bin/ld: note: 'sem_post@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [multiop] Error 1
make[5]: Leaving directory `/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/tests'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre/tests'
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make[3]: Leaving directory `/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build/lustre'
make[2]: Leaving directory `/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build'
make[1]: Leaving directory `/build/user-lustre_1.8.3-4-amd64-V6kmFC/lustre-1.8.3/debian/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-lustre-maintainers mailing list