tags 640828 + patch thanks On Wed, Sep 07, 2011 at 08:46:40PM +0200, Julien Cristau wrote: > retitle 640828 cxxtools: FTBFS on ia64, s390, sparc > kthxbye > > On Wed, Sep 7, 2011 at 20:39:46 +0200, Julien Cristau wrote: > > > Package: cxxtools > > Version: 2.0-1 > > Severity: serious > > > > cxxtools FTBFS on ia64 in the configure step: > > > configure: error: check for atomictype failed > > > make: *** [debian/stamp-autotools] Error 1 > > > > See > > https://buildd.debian.org/status/fetch.php?pkg=cxxtools&arch=ia64&ver=2.0-1&stamp=1313148320 > > > And same error on other archs. >
cxxtools includes atomic types support for various architectures, as well as a a pthread and generic version. The problem is that it doesn't fallback to them when not on an architecture supported through assembly code. The patch below forces the atomic type to pthread if not building on an architecture known to have assembly support. diff -Nru cxxtools-2.0/debian/rules cxxtools-2.0/debian/rules --- cxxtools-2.0/debian/rules 2011-08-08 13:33:35.000000000 +0200 +++ cxxtools-2.0/debian/rules 2011-11-27 19:29:45.000000000 +0100 @@ -13,6 +13,12 @@ DEB_CONFIGURE_NORMAL_ARGS += --enable-shared --enable-static +# Automatic detection doesn't fallback to working atomic type. +# Force it to pthread for architectures not having specific code. +ifeq (,$(filter $(DEB_HOST_ARCH_CPU), amd64 i386 mips mipsel powerpc)) +DEB_CONFIGURE_NORMAL_ARGS += --with-atomictype=pthread +endif + # Actually, rebuilding the whole build chain is a bit overkill # currently. It used to be necessary since we did changes to # configure.in and Makefile.am files. -- Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

