[femhub] hermes2d-1.0

13 views
Skip to first unread message

Luke Satin

unread,
Nov 7, 2011, 2:14:50 PM11/7/11
to femhub
Hi,

I can compile Hermes from git, but it fails under FEMhub because of
debug package. Do you need it or can I disable debug version and
compile just the release version?

Here's some (shortened) output from build under FEMhub:
-- Found PTHREAD: /usr/lib64/libpthread.so
-- Found XSD: /usr/include
-- Found XERCES: /usr/lib/libxerces-c.so
-- Found UMFPACK: /usr/lib/libumfpack.so;/usr/lib/libamd.so
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- A library with LAPACK API found.
Hermes2D: Generating classes for XML mesh parsing according to your
version of XSD.
-- Found GLUT: /usr/lib/libglut.so
-- Found GLEW: /usr/lib/libGLEW.so
Configuration results
---------------------
Build with UMFPACK: YES
Build with PETSC: NO
Build with MUMPS: NO
Build with SUPERLU: NO
Build with TRILINOS: NO
Build with MPI: NO
Build with OPENMP: NO
Build with EXODUSII: NO
Print Teuchos stacktrace on segfault: NO
Report with logo: no
Report warnings: YES
Report integration warnings: NO
Report results/info: YES
Report results/info details: NO
Report program execution: NO
Report internal time measurements: NO
---------------------
Hermes common library:
Build Debug version: YES
Build Release version: YES
Build with tests: YES
Build Hermes2D: YES
Build Hermes2D Debug version: YES
Build Hermes2D Release version: YES
---------------------
Build Hermes2D with tests: YES
Build Hermes2D with test examples: YES
---------------------
Build Hermes2D with GLUT: YES
Build Hermes2D with VIEWER_GUI: NO


-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp7lpL2J



NOW IT STARTS BUILDING AND FAILS AT THIS POINT:

[ 50%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
spline.cpp.o
[ 51%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
projections/ogprojection.cpp.o
[ 51%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
projections/ogprojection_nox.cpp.o
[ 52%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
projections/localprojection.cpp.o
[ 52%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
weakform_library/weakforms_elasticity.cpp.o
[ 52%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
weakform_library/weakforms_h1.cpp.o
[ 53%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
weakform_library/weakforms_hcurl.cpp.o
[ 53%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
weakform_library/weakforms_maxwell.cpp.o
[ 54%] Building CXX object hermes2d/CMakeFiles/hermes2d-debug.dir/src/
weakform_library/weakforms_neutronics.cpp.o
Linking CXX shared library libhermes2d-debug.so
[ 54%] Built target hermes2d-debug
make: *** [all] Error 2
Package hermes2d-1.0 failed to install

Luke Satin

unread,
Nov 7, 2011, 2:16:44 PM11/7/11
to femhub
Installation script looks like this:

#! /bin/sh

set -e

if [ "$FEMHUB_LOCAL" = "" ]; then
echo "FEMHUB_LOCAL undefined ... exiting";
exit 1
fi

#cd hermes2d # (does not work with this)

# Set the hermes2d build options:
python -c 'print "set(H2D_COMPLEX no)\nset(WITH_EXAMPLES no)
\nset(WITH_TUTORIAL no)\nset(WITH_PYTHON yes)\nset(WITH_GLUT no)
\nset(WITH_UTIL no)\nset(WITH_TESTS no)\nset(REPORT_WITH_LOGO no)
\nset(WITH_BENCHMARKS no)"' > CMake.vars

cmake -DCMAKE_INSTALL_PREFIX="$FEMHUB_LOCAL" .

make
make install

Pavel Solin

unread,
Nov 7, 2011, 9:01:46 PM11/7/11
to fem...@googlegroups.com, hermes2d
Hi Luke,
  you can compile just the release version. It is 
not clear to me though why the compilation fails in the 
debug mode. Therefore I am copying this message 
to the hermes2d list - can anyone look at the problem, 
please?

Pavel

--
You received this message because you are subscribed to the Google Groups "femhub" group.
To post to this group, send email to fem...@googlegroups.com.
To unsubscribe from this group, send email to femhub+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/femhub?hl=en.




--
Pavel Solin
University of Nevada, Reno
http://hpfem.org/~pavel

Luke Satin

unread,
Nov 8, 2011, 5:31:33 AM11/8/11
to fem...@googlegroups.com
I spent another hour on it and it works! But I think that the problem could be the tests, not the debug. When I disabled just the debug, it failed in the same file:
[ 72%] Building CXX object hermes2d/CMakeFiles/hermes2d-dir/src/
weakform_library/weakforms_neutronics.cpp.o
Linking CXX shared library hermes2d.so
[ 72%] Built target hermes2d
make: *** [all] Error 2
Package hermes2d-1.0 failed to install


I've looked for possible build options at https://github.com/hpfem/hermes/blob/master/CMakeLists.txt and those finally worked:

python -c 'print "set(HERMES_COMMON_WITH_TESTS no)\nset(H2D_WITH_TEST_EXAMPLES no)\nset(H2D_WITH_TESTS no)\nset(HERMES_COMMON_DEBUG no)\nset(H2D_DEBUG no)\nset(H2D_COMPLEX no)\nset(WITH_EXAMPLES no)\nset(WITH_TUTORIAL no)\nset(WITH_PYTHON yes)\nset(WITH_GLUT no)\nset(WITH_UTIL no)\nset(WITH_TESTS no)\nset(REPORT_WITH_LOGO no)\nset(WITH_BENCHMARKS no)"' > CMake.vars

I'll upload it on http://femhub.org/stpack/ and merge femhub-distribution source on git with the latest version.

Luke

Luke Satin

unread,
Nov 8, 2011, 8:02:21 AM11/8/11
to fem...@googlegroups.com
You can build FEMhub from git and everything including Hermes2D should work: https://github.com/femhub/femhub-distribution

I have updated also installation instructions on git in doc/src folder. Installation was tested on Ubuntu 11.10 32bit.

\$ git clone g...@github.com:femhub/femhub-distribution.git
\$ cd femhub-distribution
\$ make

You don't have to execute ./femhub -d before 'make' anymore as packages are downloaded on the fly from different locations and in different formats.

Those packages will be built by default:

packages_list = [

"ipython",

"hermes1d",

"hermes2d",

# requires: setupdocs>=1.0, doesn't work without a net...

#"mayavi",

"phaml",

"libfemhub",

"fipy",

"sfepy",

"sympy",

"hdf5",

"h5py",

"pytables",

"nose",

#"femhub_online_lab_sdk",

]


I had problem with
femhub_online_lab_sdk, is there any more recent version for Python 2.7?

Luke
Reply all
Reply to author
Forward
0 new messages