Package: libglm-dev Version: 0.9.5.4-1 Severity: important Tags: patch Hi,
my amd64 build worked fine but my i386 build of libreoffic 4.4.0 alpha 1 failed: [build CXX] vcl/workben/icontest.cxx S=/home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1 && I=$S/instdi r && W=$S/workdir && mkdir -p $W/CxxObject/vcl/workben/ $W/Dep/CxxObject/vcl/wo rkben/ && cd /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1 && i586-linux-gnu-g++ -DCPPU_ENV=gcc3 -DINTEL -DLIBO_INTERNAL_ONLY -DLINUX -DNDEB UG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSUPD=440 -DUNIX -DUNX -DX86 -D_FORTIFY_SOURC E=2 -D_PTHREADS -D_REENTRANT -DRTL_USING -D_FORTIFY_SOURCE=2 -DHAVE_GCC_VISIBI LITY_FEATURE -fvisibility=hidden -Wall -Wnon-virtual-dtor -Wendif-labels -Wext ra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe -fvisibility-in lines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=gnu++11 -ggdb2 -DEXCEPTI ONS_ON -fexceptions -g -O2 -fstack-protector-strong -Wformat -Werror=format-secu rity -c $S/vcl/workben/icontest.cxx -o $W/CxxObject/vcl/workben/icontest.o -I$ S/vcl/workben/ -I$S/include -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm /default-java/include/linux -I$S/config_host -I/usr/include -isystem /usr/inc lude/GL -isystem /usr/include/libdrm -I$W/UnoApiHeadersTarget/offapi/normal -I $W/UnoApiHeadersTarget/udkapi/normal [...] In file included from /usr/include/glm/gtx/bit.hpp:232:0, from /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/vcl/workben/icontest.cxx:24: /usr/include/glm/gtx/bit.inl: In instantiation of 'bool glm::isPowerOfTwo(const genType&) [with genType = int]': /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/vcl/workben/icontest.cxx:221:40: required from here /usr/include/glm/gtx/bit.inl:89:23: error: 'abs' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] Result = abs(Result); ^ In file included from /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/include/sal/config.h:27:0, from /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/lang/XComponent.hpp:4, from /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/vcl/workben/icontest.cxx:26: /usr/include/stdlib.h:775:12: note: 'int abs(int)' declared here, later in the translation unit extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ [...] /home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/solenv/gbuild/LinkTarget.mk:189: recipe for target '/home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/workdir/CxxObject/vcl/workben/icontest.o' failed make[2]: *** [/home/rene/Debian/Pakete/LibreOffice/libreoffice-4.4.0.0.alpha1/workdir/CxxObject/vcl/workben/icontest.o] Error 1 icontext.cxx does not use abs() directly but glm::isPowerOfTwo and that does (in /usr/include/glm/gtx/bit.inl): // For old complier? genType Result = Value; if(std::numeric_limits<genType>::is_signed) Result = abs(Result); icontext.cxx has even a #include <math.h> but... Changing abs(Result) to std::abs(Result) makes it work. Maybe you also want a #include of some math header (cmath?) too.... Regards, Rene -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org