← Back to team overview

dolfin team mailing list archive

Re: Finding Scotch

 

Here's the output. It looks something like the zlib test version not
adding the zlib flags. I can compile the tests by hand on the command line.

Garth


-- Checking for package 'SCOTCH-PT'
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:59
] location of ptscotch.h: /home/garth/local/include/ptscotch.h
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:61
] location of libptscotch: /home/garth/local/lib/libptscotch.so
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:63
] location of libptscotcherr: /home/garth/local/lib/libptscotcherr.so
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Failed
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:172
] SCOTCH_TEST_LIB_COMPILED = FALSE
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:174
] SCOTCH_TEST_LIB_COMPILE_OUTPUT = Change Dir:
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o
/usr/bin/c++    -I/home/garth/local/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/include/openmpi   -o
CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o -c
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/scotch_test_lib.cpp
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++
CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o  -o
cmTryCompileExec -rdynamic -L/home/garth/local/lib -lptscotch
-lptscotcherr /usr/lib/openmpi/lib/libmpi_cxx.so
/usr/lib/openmpi/lib/libmpi.so /usr/lib/openmpi/lib/libopen-rte.so
/usr/lib/openmpi/lib/libopen-pal.so -ldl -lnsl -lutil -lm -ldl -lnsl
-lutil -lm -Wl,-rpath,/home/garth/local/lib:/usr/lib/openmpi/lib
/home/garth/local/lib/libptscotch.so: undefined reference to `gzclose'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzwrite'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzdopen'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzsetparams'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzread'
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory
`/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:176
] SCOTCH_TEST_LIB_EXITCODE =
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:178
] SCOTCH_TEST_LIB_OUTPUT =
-- Found ZLIB: /usr/include
-- Performing test SCOTCH_ZLIB_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Failed
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:215
] SCOTCH_TEST_LIB_COMPILED = FALSE
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:217
] SCOTCH_TEST_LIB_COMPILE_OUTPUT = Change Dir:
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o
/usr/bin/c++    -I/home/garth/local/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/include/openmpi   -o
CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o -c
/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/scotch_test_lib.cpp
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++
CMakeFiles/cmTryCompileExec.dir/scotch_test_lib.cpp.o  -o
cmTryCompileExec -rdynamic -L/home/garth/local/lib -lptscotch
-lptscotcherr /usr/lib/openmpi/lib/libmpi_cxx.so
/usr/lib/openmpi/lib/libmpi.so /usr/lib/openmpi/lib/libopen-rte.so
/usr/lib/openmpi/lib/libopen-pal.so -ldl -lnsl -lutil -lm -ldl -lnsl
-lutil -lm -Wl,-rpath,/home/garth/local/lib:/usr/lib/openmpi/lib
/home/garth/local/lib/libptscotch.so: undefined reference to `gzclose'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzwrite'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzdopen'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzsetparams'
/home/garth/local/lib/libptscotch.so: undefined reference to `gzread'
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory
`/home/garth/code/fenics/dolfin.d/dolfin-all/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:219
] SCOTCH_TEST_LIB_EXITCODE =
-- [
/home/garth/code/fenics/dolfin.d/dolfin-all/cmake/modules/FindScotchPT.cmake:221
] SCOTCH_TEST_LIB_OUTPUT =
-- SCOTCH could not be found. Be sure to set SCOTCH_DIR.  (missing:
SCOTCH_TEST_RUNS)


On 26/01/11 16:07, Johannes Ring wrote:
> On Wed, Jan 26, 2011 at 4:56 PM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
>> I don't what has change with FindScotchPT, but it seem broken. Not sure
>> what's happen, but the test might not be linking with libz properly.
> 
> Try to configure with -DSCOTCH_DEBUG:BOOL=ON and see if you can spot
> the problem. You should remove the CMake cache first.
> 
> Johannes



Follow ups

References