Summary: | dev-cpp/eigen-2.0.3 build and test failure | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Harald van Dijk (RETIRED) <truedfx> |
Component: | [OLD] Unspecified | Assignee: | Marcus D. Hanwell (RETIRED) <cryos> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | flameeyes, kde, sci |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Harald van Dijk (RETIRED)
2009-07-31 20:23:54 UTC
*** Bug 279877 has been marked as a duplicate of this bug. *** I'm really not sure that mine is a duplicate of this, since I can't find Intel in your build log… It's detecting Sun's Fortran compiler on my system, Intel's on yours, but the problem is the same: it should not be looking for a Fortran compiler at all. OK, I have disabled the fortran testing in both our live and eigen-2.0.4 ebuilds. Please let me know if that improves things. I will leave this open, and look into the fortran compiler issue further later when I have more time. It would be good to have all tests run if possible. It looks like it's working for the Fortran part; the build no longer stops there. As for the tests, 2.0.4 still doesn't work, but it gives a much stranger error now: [ 66%] Building CXX object test/CMakeFiles/test_qtvector.dir/qtvector.cpp.o cd /var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build/test && /usr/bin/i686-pc-linux-gnu-g++ -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -DNDEBUG -with-user-cflags -march=athlon64 -O2 -g -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wextra -fno-exceptions -fno-check-new -fno-common -fstrict-aliasing -pedantic -g2 -I/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build/test -I/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2/test -I/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2 -I/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -fexceptions -DEIGEN_TEST_FUNC=qtvector -o CMakeFiles/test_qtvector.dir/qtvector.cpp.o -c /var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2/test/qtvector.cpp Linking CXX executable test_qtvector cd /var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_qtvector.dir/link.txt --verbose=1 /usr/bin/i686-pc-linux-gnu-g++ -with-user-cflags -march=athlon64 -O2 -g -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wextra -fno-exceptions -fno-check-new -fno-common -fstrict-aliasing -pedantic -g2 -fPIC -with-user-ldflags -Xlinker -O1 -Xlinker --as-needed CMakeFiles/test_qtvector.dir/qtvector.cpp.o -o test_qtvector -rdynamic -loptimized;/usr/lib32/qt4/libQtCore.so;debug;/usr/lib32/qt4/libQtCore.so /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -loptimized;/usr/lib32/qt4/libQtCore.so;debug;/usr/lib32/qt4/libQtCore.so collect2: ld returned 1 exit status make[2]: *** [test/test_qtvector] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build' make[1]: *** [test/CMakeFiles/test_qtvector.dir/all] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-cpp/eigen-2.0.4/work/eigen2_build' make: *** [all] Error 2 * * ERROR: dev-cpp/eigen-2.0.4 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 3161: Called cmake-utils_src_compile * environment, line 806: Called cmake-utils_src_make * environment, line 883: Called die * The specific snippet of code: * emake VERBOSE=1 "$@" || die "Make failed!"; * The die message: * Make failed! Sorry, real life has been really crazy and this must have slipped under my radar. My patch improved the short term case, but broke at link time. I now have a real fix, waited until all the tests compiled fully and ran them. It looks good here, and the patch is half the size of the original ;-) Please test and confirm, I confirmed that all tests compile, link and pass here. Talking with upstream they are disabling Fortran tests by default too, and I will ensure this updated patch gets integrated. Quoting the link libraries broke the mechanism whereby CMake selects the correct library based upon the build type (on Linux they are the same, some platforms aren't so elegant). You need revision 2 of files/eigen-2.0.4-qt-test.patch. I will be bumping the latest Eigen shortly with a few patches that ensure it works correctly with GCC 4.1. |