Package: cmake
Version: 2.8.4+dfsg.1-4
Severity: normal
User: [email protected]
Usertags: multiarch

I tried to do a multiarch upload of s3d and got build failures due to a 
problem in find_library on armel, kfreebsd-amd64 and kfreebsd-i386. Untested 
are hurd-i386, ia64, mipsel and sparc.

Just to give an example using kfreebsd-i386. The correct path to the multiarch 
libs in /usr is /usr/lib/i386-kfreebsd-gnu/. Now cmake only searches 
(according to CMAKE_C_LIBRARY_ARCHITECTURE which is "" in 
./CMakeFiles/CMakeCCompiler.cmake) in /usr/lib//. I haven't looked in the 
cmake internals to find the reason for that, but maybe the output of `gcc -v` 
helps (look at the i486 after "Target"):

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/i386-kfreebsd-gnu/gcc/i486-kfreebsd-
gnu/4.6.1/lto-wrapper
Target: i486-kfreebsd-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.0-12' --
with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-
languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --
enable-shared --enable-multiarch --with-multiarch-defaults=i386-kfreebsd-gnu 
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-
kfreebsd-gnu --without-included-gettext --enable-threads=posix --with-gxx-
include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/i386-kfreebsd-gnu --enable-
nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --
enable-checking=release --build=i486-kfreebsd-gnu --host=i486-kfreebsd-gnu --
target=i486-kfreebsd-gnu
Thread model: posix
gcc version 4.6.1 20110608 (prerelease) (Debian 4.6.0-12) 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to