Bug#669496: supertux: FTBFS: ld: cannot find -lpthreads

Lucas Nussbaum lucas at lucas-nussbaum.net
Thu Apr 19 19:19:39 UTC 2012


Source: supertux
Version: 0.1.3-2
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120419 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> g++: fatal error: no input files
> compilation terminated.
> configure:3030: $? = 4
> configure:3033: checking whether we are using the GNU C++ compiler
> configure:3057: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> configure:3063: $? = 0
> configure:3066: test -z 			 || test ! -s conftest.err
> configure:3069: $? = 0
> configure:3072: test -s conftest.o
> configure:3075: $? = 0
> configure:3088: result: yes
> configure:3094: checking whether g++ accepts -g
> configure:3115: g++ -c -g -D_FORTIFY_SOURCE=2 conftest.cc >&5
> configure:3121: $? = 0
> configure:3124: test -z 			 || test ! -s conftest.err
> configure:3127: $? = 0
> configure:3130: test -s conftest.o
> configure:3133: $? = 0
> configure:3144: result: yes
> configure:3186: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> configure:3192: $? = 0
> configure:3195: test -z 			 || test ! -s conftest.err
> configure:3198: $? = 0
> configure:3201: test -s conftest.o
> configure:3204: $? = 0
> configure:3230: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> conftest.cc: In function 'int main()':
> conftest.cc:15:9: error: 'exit' was not declared in this scope
> configure:3236: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | /* end confdefs.h.  */
> | 
> | int
> | main ()
> | {
> | exit (42);
> |   ;
> |   return 0;
> | }
> configure:3186: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> conftest.cc:11:40: error: 'void std::exit(int)' should have been declared inside 'std'
> configure:3192: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | /* end confdefs.h.  */
> | extern "C" void std::exit (int) throw (); using std::exit;
> | #include <stdlib.h>
> | int
> | main ()
> | {
> | exit (42);
> |   ;
> |   return 0;
> | }
> configure:3186: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> conftest.cc:11:31: error: 'void std::exit(int)' should have been declared inside 'std'
> In file included from conftest.cc:12:0:
> /usr/include/stdlib.h:544:70: error: declaration of 'void std::exit(int) throw ()' has a different exception specifier
> conftest.cc:11:17: error: from previous declaration 'void std::exit(int)'
> configure:3192: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | /* end confdefs.h.  */
> | extern "C" void std::exit (int); using std::exit;
> | #include <stdlib.h>
> | int
> | main ()
> | {
> | exit (42);
> |   ;
> |   return 0;
> | }
> configure:3186: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> configure:3192: $? = 0
> configure:3195: test -z 			 || test ! -s conftest.err
> configure:3198: $? = 0
> configure:3201: test -s conftest.o
> configure:3204: $? = 0
> configure:3230: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.cc >&5
> configure:3236: $? = 0
> configure:3239: test -z 			 || test ! -s conftest.err
> configure:3242: $? = 0
> configure:3245: test -s conftest.o
> configure:3248: $? = 0
> configure:3273: checking dependency style of g++
> configure:3356: result: none
> configure:3386: checking for a BSD-compatible install
> configure:3441: result: /usr/bin/install -c
> configure:3462: checking for dirent.h that defines DIR
> configure:3486: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:3492: $? = 0
> configure:3495: test -z 			 || test ! -s conftest.err
> dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --bindir=${prefix}/games --datadir=${prefix}/share/games returned exit code 1
> make[1]: *** [override_dh_auto_configure] Error 255
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> configure:3498: $? = 0
> configure:3501: test -s conftest.o
> configure:3504: $? = 0
> configure:3515: result: yes
> configure:3528: checking for library containing opendir
> configure:3558: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c  >&5
> configure:3564: $? = 0
> configure:3567: test -z 			 || test ! -s conftest.err
> configure:3570: $? = 0
> configure:3573: test -s conftest
> configure:3576: $? = 0
> configure:3645: result: none required
> configure:3784: checking how to run the C preprocessor
> configure:3819: gcc -E -D_FORTIFY_SOURCE=2 conftest.c
> configure:3825: $? = 0
> configure:3857: gcc -E -D_FORTIFY_SOURCE=2 conftest.c
> conftest.c:15:28: fatal error: ac_nonexistent.h: No such file or directory
> compilation terminated.
> configure:3863: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define HAVE_DIRENT_H 1
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:3902: result: gcc -E
> configure:3926: gcc -E -D_FORTIFY_SOURCE=2 conftest.c
> configure:3932: $? = 0
> configure:3964: gcc -E -D_FORTIFY_SOURCE=2 conftest.c
> conftest.c:15:28: fatal error: ac_nonexistent.h: No such file or directory
> compilation terminated.
> configure:3970: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define HAVE_DIRENT_H 1
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:4014: checking for egrep
> configure:4024: result: grep -E
> configure:4029: checking for ANSI C header files
> configure:4054: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4060: $? = 0
> configure:4063: test -z 			 || test ! -s conftest.err
> configure:4066: $? = 0
> configure:4069: test -s conftest.o
> configure:4072: $? = 0
> configure:4161: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c  >&5
> conftest.c: In function 'main':
> conftest.c:32:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
> configure:4164: $? = 0
> configure:4166: ./conftest
> configure:4169: $? = 0
> configure:4184: result: yes
> configure:4208: checking for sys/types.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for sys/stat.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for stdlib.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for string.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for memory.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for strings.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for inttypes.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for stdint.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4208: checking for unistd.h
> configure:4224: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4230: $? = 0
> configure:4233: test -z 			 || test ! -s conftest.err
> configure:4236: $? = 0
> configure:4239: test -s conftest.o
> configure:4242: $? = 0
> configure:4253: result: yes
> configure:4270: checking for unistd.h
> configure:4275: result: yes
> configure:4415: checking for an ANSI C-conforming const
> configure:4482: gcc -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:4488: $? = 0
> configure:4491: test -z 			 || test ! -s conftest.err
> configure:4494: $? = 0
> configure:4497: test -s conftest.o
> configure:4500: $? = 0
> configure:4511: result: yes
> configure:4523: checking for gprof mode
> configure:4537: result: disabled
> configure:4541: checking for debug mode
> configure:4555: result: disabled
> configure:4559: checking wether OpenGL should be used
> configure:4569: result: yes
> configure:4617: checking for sdl-config
> configure:4635: found /usr/bin/sdl-config
> configure:4648: result: /usr/bin/sdl-config
> configure:4656: checking for SDL - version >= 1.2.4
> configure:4746: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c  -L/usr/lib/x86_64-linux-gnu -lSDL >&5
> configure:4749: $? = 0
> configure:4751: ./conftest
> configure:4754: $? = 0
> configure:4772: result: yes
> configure:4873: checking for Mix_OpenAudio in -lSDL_mixer
> configure:4903: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c -lSDL_mixer   -L/usr/lib/x86_64-linux-gnu -lSDL >&5
> configure:4909: $? = 0
> configure:4912: test -z 			 || test ! -s conftest.err
> configure:4915: $? = 0
> configure:4918: test -s conftest
> configure:4921: $? = 0
> configure:4934: result: yes
> configure:4951: checking for IMG_Load in -lSDL_image
> configure:4981: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c -lSDL_image  -lSDL_mixer  -L/usr/lib/x86_64-linux-gnu -lSDL >&5
> configure:4987: $? = 0
> configure:4990: test -z 			 || test ! -s conftest.err
> configure:4993: $? = 0
> configure:4996: test -s conftest
> configure:4999: $? = 0
> configure:5012: result: yes
> configure:5029: checking for X
> configure:5135: gcc -E -D_FORTIFY_SOURCE=2 conftest.c
> conftest.c:28:27: fatal error: X11/Intrinsic.h: No such file or directory
> compilation terminated.
> configure:5141: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define HAVE_DIRENT_H 1
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_LIBSDL_MIXER 1
> | #define HAVE_LIBSDL_IMAGE 1
> | /* end confdefs.h.  */
> | #include <X11/Intrinsic.h>
> configure:5191: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c -lXt -lSDL_image -lSDL_mixer  -L/usr/lib/x86_64-linux-gnu -lSDL >&5
> conftest.c:28:27: fatal error: X11/Intrinsic.h: No such file or directory
> compilation terminated.
> configure:5197: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "SuperTux"
> | #define PACKAGE_TARNAME "supertux"
> | #define PACKAGE_VERSION "0.1.3"
> | #define PACKAGE_STRING "SuperTux 0.1.3"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "supertux"
> | #define VERSION "0.1.3"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define HAVE_DIRENT_H 1
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_LIBSDL_MIXER 1
> | #define HAVE_LIBSDL_IMAGE 1
> | /* end confdefs.h.  */
> | #include <X11/Intrinsic.h>
> | int
> | main ()
> | {
> | XtMalloc (0)
> |   ;
> |   return 0;
> | }
> configure:5249: result: no
> configure:5458: checking for the pthreads library -lpthreads
> configure:5496: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D_FORTIFY_SOURCE=2 -Wl,-z,relro conftest.c -lpthreads -lSDL_image -lSDL_mixer  -L/usr/lib/x86_64-linux-gnu -lSDL >&5
> conftest.c: In function 'main':
> conftest.c:33:22: warning: null argument where non-null required (argument 1) [-Wnonnull]
> conftest.c:34:22: warning: null argument where non-null required (argument 1) [-Wnonnull]
> conftest.c:34:22: warning: null argument where non-null required (argument 3) [-Wnonnull]
> /usr/bin/ld: cannot find -lpthreads
> collect2: ld returned 1 exit status

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/04/19/supertux_0.1.3-2_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.





More information about the Pkg-games-devel mailing list