Deal.ii is configured well but the make process doesn't complete (cygwin on windows 8)

222 views
Skip to first unread message

Hadi

unread,
Jul 26, 2013, 4:03:45 AM7/26/13
to dea...@googlegroups.com
Hi 

I can configure deall.ii 7.2, 7.3 and even 8.0 but when I make the libraries I get errors. Here is a some of the lines which lead to the make being aborted:


     ^
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
======================optimized====== hp/fe_collection.cc
/cygdrive/c/Users/Hadi/Documents/deal.II/source/hp/dof_handler.cc:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 //----------------------------  hp_dof_handler.cc  ------------------------
 ^
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h: In instantiation of ‘static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 2; int dim = 2]’:
/cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/grid_tools.cc:1534:9:   required from here
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h: In instantiation of ‘static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 3; int dim = 3]’:
/cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/grid_tools.cc:1534:9:   required from here
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/source/hp/fe_collection.cc:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 //----------------------------  fe_collection.cc  ---------------------------
 ^
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h: In instantiation of ‘static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 2; int dim = 1]’:
/cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/grid_tools.cc:1534:9:   required from here
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h: In instantiation of ‘static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 3; int dim = 2]’:
/cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/grid_tools.cc:1534:9:   required from here
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
Makefile:43: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/optimized/grid_grid_tools.o' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/optimized/grid_grid_tools.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/grid/tria.h:20:0,
                 from /cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/tria.cc:17:
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h: In instantiation of ‘static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 1; int dim = 1]’:
/cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/tria.cc:946:9:   required from here
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
     alternating_form_at_vertices
     ^
/cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/geometry_info.h:2164:5: error: size of array is not an integral constant-expression
Makefile:43: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/optimized/grid_tria.o' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/optimized/grid_tria.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/source'
Makefile:47: recipe for target `optimized' failed
make: *** [optimized] Error 2

I have built 7.2 version on both Mac and unix machines before but dont know if there is any trick with cygwin.

Thanks,
Hadi

Matthias Maier

unread,
Jul 26, 2013, 4:12:52 AM7/26/13
to dea...@googlegroups.com
Hi,

your compiler is faulty. It is most likely a development version for 4.8
that incorrectly emits the following error

error: size of array is not an integral expression

This is fixed in the release version of gcc 4.8.

Best,
Matthias
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h: In instantiation of ‘static void
> dealii::GeometryInfo<dim>::alternating_form_at_vertices(const
> dealii::Point<spacedim> (&)[dealii::GeometryInfo
> <dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim>
> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim
> = 3; int dim = 3]’:
> /cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/
> grid_tools.cc:1534:9: required from here
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/source/hp/
> fe_collection.cc:1:0: warning: -fPIC ignored for target (all code is
> position independent) [enabled by default]
> //---------------------------- fe_collection.cc
> ---------------------------
> ^
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h: In instantiation of ‘static void
> dealii::GeometryInfo<dim>::alternating_form_at_vertices(const
> dealii::Point<spacedim> (&)[dealii::GeometryInfo
> <dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim>
> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim
> = 2; int dim = 1]’:
> /cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/
> grid_tools.cc:1534:9: required from here
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h: In instantiation of ‘static void
> dealii::GeometryInfo<dim>::alternating_form_at_vertices(const
> dealii::Point<spacedim> (&)[dealii::GeometryInfo
> <dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim>
> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim
> = 3; int dim = 2]’:
> /cygdrive/c/Users/Hadi/Documents/deal.II/source/grid/
> grid_tools.cc:1534:9: required from here
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> geometry_info.h:2164:5: error: size of array is not an integral
> constant-expression
> /cygdrive/c/Users/Hadi/Documents/deal.II/include/deal.II/base/
> deal.II/lib/optimized/grid_tria.o' failed
> make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/optimized/
> grid_tria.o] Error 1
> make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/
> source'
> Makefile:47: recipe for target `optimized' failed
> make: *** [optimized] Error 2
>
> I have built 7.2 version on both Mac and unix machines before but
> dont know if there is any trick with cygwin.
>
> Thanks,
> Hadi
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Hadi

unread,
Jul 26, 2013, 4:26:11 AM7/26/13
to dea...@googlegroups.com
But I have gcc 4.8.1


these are the configuring output lines:


$ ./configure
Configuring deal.II version 7.2.0
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... x86_64-unknown-cygwin

---------------- configuring C/C++ compilers ----------------
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... /usr/bin/gcc
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /usr/bin/g++
C++ compiler is gcc4.8 (subversion gcc4.8.1)
checking if the compiler is built for MPI... no
checking whether compiler has a flag to support C++2011... yes
checking for std::array... yes
checking for std::condition_variable... yes
checking for std::function and std::bind... yes
checking for std::bind works with rvalues... yes
checking for std::shared_ptr... yes
checking for std::thread... yes
checking whether std::thread actually works... yes
checking for std::mutex... yes
checking for std::tuple... yes
checking for std::type_traits... yes
checking whether C++1x support is complete enough... yes
checking for auto typed variables... yes
checking for range-based for... no
checking whether compiler has attributes to deprecate functions... yes
checking whether qualifiers in return types lead to a warning... no
checking for std::advance warning... no
checking whether -ggdb works... yes
C compiler is gcc4.8
checking whether AssertThrow works with debug flags... yes
checking whether AssertThrow works with optimized flags... yes
checking for local computed template typedef bug... no
checking for partially specialized template access control bug... no
checking for template member operator instantiation bug... no
checking for explicit destructor call bug... no
checking for 1st template friend in namespace bug... no
checking for 2nd template friend in namespace bug... no
checking for template specialization friend bug... no
checking for bug with implementing pure functions... yes. using workaround
checking for template template typedef bug... no
checking for address of template template function bug... no
checking for nested classes are implicit friends bug... no
checking for nested template class friends bug... yes. using workaround
checking for member variable specialization bug... no
checking for member array specialization bug... no
checking for template member function specialization bug... no
checking for long double optimization bug... no
checking for anonymous namespace and name mangling bug... no
checking for anonymous namespace and weak linkage bug... no
checking for bogus warning with anonymous namespaces... no
checking for SFINAE bug... no
checking for template operator disambiguation bug... no
checking for array assignment in conditional bug... no
checking for array argument bug... no
checking for explicit template constructor bug... no
checking for const member deduction bug... no
checking for warning bug with type qualifiers... no
checking for problem with -Wsynth and std::complex... no
checking for problem with -Wctor-dtor-privacy... no
checking whether vector iterators are plain pointers... no
checking for __PRETTY_FUNCTION__... yes
checking for std::iterator class... yes
checking for std::i/ostringstream classes... yes
checking for std::numeric_limits classes... yes
checking for <ostream> header... yes
checking for <iosfwd> header... yes
checking for __builtin_expect... yes
checking for __verbose_terminate_handler... yes
checking for glibc-like stacktrace information... no
checking for libstdc++ demangler... yes
checking for minimal std::vector<T> capacity... 1
checking for minimal std::vector<bool> capacity... 64
checking for exception specifications on abort()... none
checking whether getrusage is properly declared... yes
checking whether isnan is declared with debug flags... no.
checking whether isnan is declared with optimized flags... no.
checking for std::isfinite... yes
checking for rand_r... no
checking for quad vs. quad_t define... yes. working around
checking for definitions of error codes in errno.h... yes
checking for gethostname... yes
checking for getpid... yes
checking how to run the C++ preprocessor... /usr/bin/g++  -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/syscall.h... no
checking for sys/times.h... yes
checking for times... yes
checking for bad socket functions/FPU interaction... no

---------------- configuring F77 compilers ------------------
checking for gfortran... no

---------------- configuring shared/static libs -------------
checking whether compiler understands option -Wl,-soname... yes
checking whether compiler understands option -Wl,-dynamic,-install_name... no
checking whether compiler understands option -Wl,-rpath... yes
checking for ar... ar
checking for ar... /usr/bin/ar
checking for ranlib... ranlib
checking for ranlib... /usr/bin/ranlib

---------------- configuring optional features --------------

---------------- configuring additional libs ----------------
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking boost/type_traits.hpp usability... yes
checking boost/type_traits.hpp presence... yes
checking for boost/type_traits.hpp... yes
checking boost/tuple/tuple.hpp usability... yes
checking boost/tuple/tuple.hpp presence... yes
checking for boost/tuple/tuple.hpp... yes
checking for boost::shared_ptr assignment operator= template buglet... no
checking for boost::bind compiler internal error... no
checking for boost::graph compiler internal error... no
checking for PETSc library directory... not found
checking for SLEPc include directory... not found
checking for Trilinos directory... not found
checking for Trilinos header directory... not found
checking for Trilinos library directory... not found
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for h5cc... no
checking for h5pcc... no
checking for HDF5 libraries... no
checking for ARPACK library directory... no
checking for MUMPS library directory... no
checking whether p4est will be used... no
checking for HSL subroutines... none found
checking for crc32 in -lz... no
checking whether byte ordering is bigendian... no
checking netcdfcpp.h usability... no
checking netcdfcpp.h presence... no
checking for netcdfcpp.h... no
checking for nc_open in -lnetcdf... no
checking for daxpy_... no
checking for saxpy_... no
checking for dgemv_... no
checking for sgemv_... no
checking for dgeev_... no
checking for sgeev_... no
checking for dgeevx_... no
checking for sgeevx_... no
checking for dgemm_... no
checking for sgemm_... no
checking for dgetrf_... no
checking for sgetrf_... no
checking for dgetri_... no
checking for sgetri_... no
checking for dgeqrf_... no
checking for sgeqrf_... no
checking for dormqr_... no
checking for sormqr_... no
checking for dorgqr_... no
checking for sorgqr_... no
checking for dtrtrs_... no
checking for strtrs_... no
checking for dgetrs_... no
checking for sgetrs_... no
checking for dstev_... no
checking for sstev_... no
checking for dsygv_... no
checking for ssygv_... no
checking for dsygvx_... no
checking for ssygvx_... no
checking for dsyevx_... no
checking for ssyevx_... no
checking for dgesvd_... no
checking for sgesvd_... no
checking for dgesdd_... no
checking for sgesdd_... no
checking for dgelsd_... no
checking for sgelsd_... no
checking for jn... yes

---------------- checking compiler flags --------------------
checking for CPU to optimize for... none given or not recognized
checking for consistency of CXXFLAGSG flags... yes
checking for consistency of CXXFLAGSO flags... yes
checking whether CPU supports SSE2... yes
checking whether CPU supports AVX... no
checking whether compiler supports vector arithmetics... yes

---------------- configuring other programs -----------------
checking for doxygen... /usr/bin/doxygen
checking doxygen version... 1.5.x or later
checking for dot... no
checking for perl... /usr/bin/perl
checking for qmake... no

---------------- generating output --------------------------
configure: creating ./config.status
config.status: creating common/Make.global_options
config.status: creating common/scripts/make_dependencies.pl
config.status: creating common/scripts/make_todo.pl
config.status: creating Version
config.status: creating common/template-arguments
config.status: creating common/dealiitemplates.pm
config.status: creating doc/Makefile
config.status: creating doc/title.html
config.status: creating doc/doxygen/Makefile
config.status: creating doc/doxygen/options.dox
config.status: creating doc/doxygen/options.136
config.status: creating doc/doxygen/header.html
config.status: creating doc/doxygen/header.136
config.status: creating doc/doxygen/header.tex
config.status: creating include/deal.II/base/config.h
=== configuring in contrib (/cygdrive/c/Users/Hadi/Documents/deal.II/contrib)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/cygd                                                                                                                rive/c/Users/Hadi/Documents/deal.II'  --cache-file=/dev/null --srcdir=.

---------------- configuring contrib subdir -----------------
configure: creating ./config.status
config.status: creating Makefile
=== configuring in utilities (/cygdrive/c/Users/Hadi/Documents/deal.II/contrib/u                                                                                                                tilities)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/cygd                                                                                                                rive/c/Users/Hadi/Documents/deal.II'  --cache-file=/dev/null --srcdir=.
configure: creating ./config.status
config.status: creating Makefile


-------------------------------------------------------------

     The  deal.II  library is now configured. In order to
     compile it and to generate the  documentation,  just
     call 'make' without arguments for a list of options.
     For more information, see the doc/readme.html file.

-------------------------------------------------------------

     Please add the line
        export PATH=$PATH:/cygdrive/c/Users/Hadi/Documents/deal.II/lib
     to your .bash_profile file so that windows will be
     able to find the deal.II shared libraries when
     executing your programs.

Hadi

Guido Kanschat

unread,
Jul 26, 2013, 12:38:22 PM7/26/13
to deal. II user group

You are using deal version 7 2.0. I suggest upgrading to 8.0.0 or at least,  if the new cmake build system causes trouble,  to 7.3.

Best, Guido

Hadi

unread,
Jul 26, 2013, 1:39:58 PM7/26/13
to dea...@googlegroups.com
I mentioned in my first post that I have tried all three. All three are configured well but do not compile properly.

Daniel Brauss

unread,
Jul 26, 2013, 2:08:06 PM7/26/13
to dea...@googlegroups.com
Not sure if this will help, but there is a archived similar problem for macs (from April)

https://groups.google.com/forum/#!topic/dealii/vkuJhsPHbqI


--

Hadi

unread,
Jul 26, 2013, 4:08:12 PM7/26/13
to dea...@googlegroups.com
I need some help on how to downgrade my gcc compiler to 4.7.1. The cygwin I am using has only 4.8.0 and 4.8.1 versions.

Matthias Maier

unread,
Jul 26, 2013, 4:09:00 PM7/26/13
to dea...@googlegroups.com
Can you try to compile deal.II version 8.0.0 with gcc 4.7* or with clang 3* under cygwin?

I am able to compile the library with these compilers under cygwin. Currently, I get some nasty segmentation faults with the debug version, though. (And I lack the time to look into it...)

So, some help with Cygwin would be highly appreciated. :-D

Best,
Matthias

Hadi

unread,
Jul 26, 2013, 5:47:04 PM7/26/13
to dea...@googlegroups.com
I tried deal.ii 7.3.0 with gcc 4.7.3 and again failed. But this time it was a bit different, chck the lines below,

=====deal.II==========optimized====== Linking library:   libdeal_II.dll
/cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/fparser.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:195: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.dll' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.dll] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/source'
Makefile:47: recipe for target `optimized' failed
make: *** [optimized] Error 2
make: *** Waiting for unfinished jobs....
/cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/fparser.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:180: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.g.dll' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.g.dll] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/source'
Makefile:44: recipe for target `debug' failed
make: *** [debug] Error 2

let me know what to do based on this?

Hadi

On Friday, July 26, 2013 1:03:45 AM UTC-7, Hadi wrote:

Hadi

unread,
Jul 26, 2013, 6:20:11 PM7/26/13
to dea...@googlegroups.com
Tried deal.II 8.0.0 and again failed (gcc 4.7.3)

[100%] Built target obj_fe.release
bfd_close libdeal_II.g.dll.a: Memory exhausted
/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/ld: final link failed: Memory exhausted
collect2: error: ld returned 1 exit status
source/CMakeFiles/deal_II.g.dir/build.make:553: recipe for target `source/cygdeal_II.g-8.0.0.dll' failed
make[2]: *** [source/cygdeal_II.g-8.0.0.dll] Error 1
CMakeFiles/Makefile2:594: recipe for target `source/CMakeFiles/deal_II.g.dir/all' failed
make[1]: *** [source/CMakeFiles/deal_II.g.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target obj_numerics.release
Makefile:116: recipe for target `all' failed
make: *** [all] Error 2


On Friday, July 26, 2013 1:03:45 AM UTC-7, Hadi wrote:

Wolfgang Bangerth

unread,
Jul 26, 2013, 6:30:18 PM7/26/13
to dea...@googlegroups.com
On 07/26/2013 05:20 PM, Hadi wrote:
> Tried deal.II 8.0.0 and again failed (gcc 4.7.3)
>
> *[100%] Built target obj_fe.release*
> *bfd_close libdeal_II.g.dll.a: Memory exhausted*

But that is not something we can do very much about. How much memory do you have?

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

Hadi

unread,
Jul 26, 2013, 6:34:20 PM7/26/13
to dea...@googlegroups.com
8GB 

Hadi

unread,
Jul 26, 2013, 6:35:27 PM7/26/13
to dea...@googlegroups.com
Maybe I should not use the -jN when making?

Wolfgang Bangerth

unread,
Jul 26, 2013, 6:45:53 PM7/26/13
to dea...@googlegroups.com, Hadi
On 07/26/2013 05:35 PM, Hadi wrote:
> Maybe I should not use the -jN when making?

Worth trying. 8GB should be enough, in principle. However, it is possible that
your programs aren't allowed to use this much. On unix, this is usually
determined by calling 'ulimit' on the command line. It is not uncommon to
limit the amount of memory any program can ask for (and limit it to less than
the physical amount of memory) to ensure that multiple programs can run at the
same time. I don't know how this is done on cygin, though.

Hadi

unread,
Jul 26, 2013, 7:08:11 PM7/26/13
to dea...@googlegroups.com, Hadi
Thanks Wolfgang,

Unfortunately it didnt work. It uses up to 67% of physical memory. I am not sure how to check or remove any memory limitation on my machine.

When I tried to install deal.II 7.3.0 the same compiler gave a different error when linking:

=====deal.II==========optimized====== Linking library:   libdeal_II.dll
/cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/fparser.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:195: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.dll' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.dll] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/source'
Makefile:47: recipe for target `optimized' failed
make: *** [optimized] Error 2
make: *** Waiting for unfinished jobs....
/cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/fparser.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:180: recipe for target `/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.g.dll' failed
make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/libdeal_II.g.dll] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/source'
Makefile:44: recipe for target `debug' failed
make: *** [debug] Error 2

Is there a connection between the two?

Matthias Maier

unread,
Jul 27, 2013, 6:05:20 AM7/27/13
to dea...@googlegroups.com

Am 26. Jul 2013, 23:47 schrieb Hadi <hra...@gmail.com>:

> I tried deal.ii 7.3.0 with gcc 4.7.3 and again failed. But this time
> it was a bit different, chck the lines below,
>
> =====deal.II==========optimized====== Linking library:
> libdeal_II.dll
> /cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/
> fparser.o: file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
> Makefile:195: recipe for target `/cygdrive/c/Users/Hadi/Documents/
> deal.II/lib/libdeal_II.dll' failed
> make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/
> libdeal_II.dll] Error 1
> make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/
> source'
> Makefile:47: recipe for target `optimized' failed
> make: *** [optimized] Error 2
> make: *** Waiting for unfinished jobs....
> /cygdrive/c/Users/Hadi/Documents/deal.II/lib/contrib/functionparser/
> fparser.o: file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
> Makefile:180: recipe for target `/cygdrive/c/Users/Hadi/Documents/
> deal.II/lib/libdeal_II.g.dll' failed
> make[1]: *** [/cygdrive/c/Users/Hadi/Documents/deal.II/lib/
> libdeal_II.g.dll] Error 1
> make[1]: Leaving directory `/cygdrive/c/Users/Hadi/Documents/deal.II/
> source'
> Makefile:44: recipe for target `debug' failed
> make: *** [debug] Error 2
>
> let me know what to do based on this?
>
> Hadi


You're using cygwin64 or cygwin32?

With cygwin64 and gcc-4.8.1 I can reproduce your compilation errors - and
_a lot_ more (several internal segmentation faults, too-many-section
errors, runtime segfaults in several steps, etc.)

gcc-4.8.1 on *Nix works without any problems..

Best,
Matthias

Hadi

unread,
Jul 28, 2013, 5:05:56 PM7/28/13
to dea...@googlegroups.com
I have tried cygwin64 with gcc 4.8.1. and cygwin32 with gcc 4.7.3.

I will install a linux this seems to be better way.


On Friday, July 26, 2013 1:03:45 AM UTC-7, Hadi wrote:

Timo Heister

unread,
Jul 28, 2013, 9:36:36 PM7/28/13
to dea...@googlegroups.com
> I will install a linux this seems to be better way.

Yes, that is probably a good idea. Most of the developers use Linux
(some mac os and there are some difficulties, and none I know use
windows).

Have you tried mingw under windows without cygwin? It works starting
with deal 8.0. Note that some things like TBB/MPI ... might not work.

--
Timo Heister
http://www.math.clemson.edu/~heister/
Reply all
Reply to author
Forward
0 new messages