Building error

93 views
Skip to first unread message

Naren Vohra

unread,
Nov 9, 2021, 3:44:21 PM11/9/21
to deal.II User Group
Hello, 

I am trying to install dealii on a Linux system and I get the following error:

/Downloads/dealii-9.3.2/include/deal.II/base/symmetric_tensor.templates.h:113:39:   in constexpr expansion of ‘dealii::determinant<3, float>(B)’

/Downloads/dealii-9.3.2/include/deal.II/base/symmetric_tensor.templates.h:113:43: internal compiler error: Segmentation fault

       const Number tmp_2 = determinant(B) / 2.0;

                                           ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

source/base/CMakeFiles/obj_base_release.dir/build.make:1223: recipe for target 'source/base/CMakeFiles/obj_base_release.dir/symmetric_tensor.cc.o' failed

make[2]: *** [source/base/CMakeFiles/obj_base_release.dir/symmetric_tensor.cc.o] Error 1

CMakeFiles/Makefile2:2078: recipe for target 'source/base/CMakeFiles/obj_base_release.dir/all' failed

make[1]: *** [source/base/CMakeFiles/obj_base_release.dir/all] Error 2

Makefile:135: recipe for target 'all' failed

make: *** [all] Error 2

Could someone please help me with this?


Daniel Arndt

unread,
Nov 9, 2021, 4:45:15 PM11/9/21
to dea...@googlegroups.com
Naren,

What compiler are you using and how are you configuring deal.II (What does detailed.log look like)?

Best,
Daniel

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/acf92032-aa11-46f9-a8bf-011d8858e253n%40googlegroups.com.

Naren Vohra

unread,
Nov 9, 2021, 6:23:27 PM11/9/21
to deal.II User Group
Dear Daniel, 

Here is the info from detailed.log: 

#  deal.II configuration:
#        CMAKE_BUILD_TYPE:       DebugRelease
#        BUILD_SHARED_LIBS:      ON
#        CMAKE_INSTALL_PREFIX:   /usr/local
#        CMAKE_SOURCE_DIR:       /home/naren/Downloads/dealii-9.3.2
#                                (version 9.3.2)
#        CMAKE_BINARY_DIR:       /home/naren/Downloads/dealii-build
#        CMAKE_CXX_COMPILER:     GNU 5.4.0 on platform Linux x86_64
#                                /usr/bin/c++
#        C++ language standard:  C++14
#        CMAKE_C_COMPILER:       /usr/bin/cc
#        CMAKE_Fortran_COMPILER: /usr/bin/gfortran
#        CMAKE_GENERATOR:        Unix Makefiles
#
#  Base configuration (prior to feature configuration):
#        DEAL_II_CXX_FLAGS:            -pedantic -fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -fopenmp-simd -std=c++14
#        DEAL_II_CXX_FLAGS_RELEASE:    -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wno-unused-local-typedefs
#        DEAL_II_CXX_FLAGS_DEBUG:      -O0 -ggdb -Wa,--compress-debug-sections
#        DEAL_II_LINKER_FLAGS:         -Wl,--as-needed -rdynamic -fuse-ld=gold -lpthread
#        DEAL_II_LINKER_FLAGS_RELEASE: 
#        DEAL_II_LINKER_FLAGS_DEBUG:   -ggdb
#        DEAL_II_DEFINITIONS:          
#        DEAL_II_DEFINITIONS_RELEASE:  
#        DEAL_II_DEFINITIONS_DEBUG:    DEBUG
#        DEAL_II_USER_DEFINITIONS:     
#        DEAL_II_USER_DEFINITIONS_REL: 
#        DEAL_II_USER_DEFINITIONS_DEB: DEBUG
#        DEAL_II_INCLUDE_DIRS          
#        DEAL_II_BUNDLED_INCLUDE_DIRS: 
#        DEAL_II_LIBRARIES:            
#        DEAL_II_LIBRARIES_RELEASE:    
#        DEAL_II_LIBRARIES_DEBUG:      
#        DEAL_II_VECTORIZATION_WIDTH_IN_BITS: 128
#        DEAL_II_HAVE_CXX14
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):
#      ( DEAL_II_WITH_64BIT_INDICES = OFF )
#      ( DEAL_II_WITH_ADOLC = OFF )
#      ( DEAL_II_WITH_ARBORX = OFF )
#        DEAL_II_WITH_ARPACK set up with external dependencies
#            ARPACK_LINKER_FLAGS = 
#            ARPACK_LIBRARIES = /usr/lib/libarpack.so;-lm;-ldl;/usr/lib/libopenblas.so
#      ( DEAL_II_WITH_ASSIMP = OFF )
#        DEAL_II_WITH_BOOST set up with external dependencies
#            BOOST_VERSION = 1.64.0
#            BOOST_CXX_FLAGS = -Wno-unused-local-typedefs
#            BOOST_DEFINITIONS = BOOST_NO_AUTO_PTR
#            BOOST_USER_DEFINITIONS = BOOST_NO_AUTO_PTR
#            BOOST_INCLUDE_DIRS = /usr/local/include
#            BOOST_USER_INCLUDE_DIRS = /usr/local/include
#            BOOST_LIBRARIES = /usr/local/lib/libboost_iostreams.so;/usr/local/lib/libboost_serialization.so;/usr/local/lib/libboost_system.so;/usr/local/lib/libboost_thread.so;/usr/local/lib/libboost_regex.so;/usr/local/lib/libboost_chrono.so;/usr/local/lib/libboost_date_time.so;/usr/local/lib/libboost_atomic.so
#        DEAL_II_WITH_COMPLEX_VALUES = ON
#      ( DEAL_II_WITH_CUDA = OFF )
#      ( DEAL_II_WITH_GINKGO = OFF )
#      ( DEAL_II_WITH_GMSH = OFF )
#      ( DEAL_II_WITH_GSL = OFF )
#      ( DEAL_II_WITH_HDF5 = OFF )
#      ( DEAL_II_WITH_KOKKOS = OFF )
#        DEAL_II_WITH_LAPACK set up with external dependencies
#            LAPACK_WITH_64BIT_BLAS_INDICES = OFF
#            LAPACK_LINKER_FLAGS = 
#            LAPACK_INCLUDE_DIRS = 
#            LAPACK_USER_INCLUDE_DIRS = 
#            LAPACK_LIBRARIES = -lm;-ldl;/usr/lib/libopenblas.so
#      ( DEAL_II_WITH_METIS = OFF )
#      ( DEAL_II_WITH_MPI = OFF )
#        DEAL_II_WITH_MUPARSER set up with bundled packages
#            MUPARSER_BUNDLED_INCLUDE_DIRS = /home/naren/Downloads/dealii-9.3.2/bundled/muparser_v2_2_4//include
#      ( DEAL_II_WITH_OPENCASCADE = OFF )
#      ( DEAL_II_WITH_P4EST = OFF )
#      ( DEAL_II_WITH_PETSC = OFF )
#      ( DEAL_II_WITH_SCALAPACK = OFF )
#      ( DEAL_II_WITH_SLEPC = OFF )
#      ( DEAL_II_WITH_SUNDIALS = OFF )
#      ( DEAL_II_WITH_SYMENGINE = OFF )
#        DEAL_II_WITH_TBB set up with bundled packages
#            TBB_CXX_FLAGS = -Wno-parentheses
#            TBB_BUNDLED_INCLUDE_DIRS = /home/naren/Downloads/dealii-9.3.2/bundled/tbb-2018_U2/include
#            TBB_LIBRARIES = dl
#      ( DEAL_II_WITH_TRILINOS = OFF )
#        DEAL_II_WITH_UMFPACK set up with external dependencies
#            UMFPACK_VERSION = 5.7.1
#            UMFPACK_LINKER_FLAGS = 
#            UMFPACK_INCLUDE_DIRS = /usr/include/suitesparse
#            UMFPACK_USER_INCLUDE_DIRS = /usr/include/suitesparse
#            UMFPACK_LIBRARIES = /usr/lib/x86_64-linux-gnu/libumfpack.so;/usr/lib/x86_64-linux-gnu/libcholmod.so;/usr/lib/x86_64-linux-gnu/libccolamd.so;/usr/lib/x86_64-linux-gnu/libcolamd.so;/usr/lib/x86_64-linux-gnu/libcamd.so;/usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so;/usr/lib/x86_64-linux-gnu/libamd.so;-lm;-ldl;/usr/lib/libopenblas.so;rt
#        DEAL_II_WITH_ZLIB set up with external dependencies
#            ZLIB_VERSION = 1.2.8
#            ZLIB_INCLUDE_DIRS = /usr/include
#            ZLIB_LIBRARIES = /usr/lib/x86_64-linux-gnu/libz.so
#
#  Component configuration:
#      ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
#        DEAL_II_COMPONENT_EXAMPLES
#      ( DEAL_II_COMPONENT_PACKAGE = OFF )
#      ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )

Thank you, 
Naren Vohra

Wolfgang Bangerth

unread,
Nov 10, 2021, 1:53:02 PM11/10/21
to dea...@googlegroups.com
On 11/9/21 4:23 PM, Naren Vohra wrote:
>
> #        CMAKE_CXX_COMPILER:     GNU 5.4.0 on platform Linux x86_64
> #                                /usr/bin/c++

Naren -- I'm not sure any of us still test with this compiler. It is by
now 5 years old (the whole 5.x release branch is in fact 6 years old),
and it is quite possible that that compilers has bugs that manifest with
our code base.

That leaves you with two options:
* You upgrade your compiler to something more recent.
* You can try to edit the symmetric_tensor.h file and remove the
occurrence of DEAL_II_CONSTEXPR in front of the determinant() function.
I don't know whether that's going to lead to downstream problems, but it
might be worth trying.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
Reply all
Reply to author
Forward
Message has been deleted
0 new messages