The 8.4.1 cmake throws an error because of the "-gdwarf-2" flag on the
Intel compiler. Is that flag needed? If no, how can I disable it?
This is what I found in the CmakeError:
Run Build Command:"/usr/bin/gmake" "cmTryCompileExec3077733329/fast"
gmake[1]: Entering directory
`/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3077733329.dir/build.make
CMakeFiles/cmTryCompileExec3077733329.dir/build
gmake[2]: Entering directory
`/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp'
/opt/apps/cmake/3.1.0/bin/cmake -E cmake_progress_report
/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3077733329.dir/src.cxx.o
/opt/apps/intel15/mvapich2/2.1/bin/mpicxx
-DDEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK -std=c++14 -O0 -g -gdwarf-2
-grecord-gcc-switches -o
CMakeFiles/cmTryCompileExec3077733329.dir/src.cxx.o -c
/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp/src.cxx
/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp/src.cxx(6)
(col. 11): internal error: assertion failed: dump_type_declaration: bad
type kind (shared/cfe/edgglue/edg_type.c, line 433)
compilation aborted for
/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp/src.cxx (code 4)
gmake[2]: *** [CMakeFiles/cmTryCompileExec3077733329.dir/src.cxx.o] Error 4
gmake[2]: Leaving directory
`/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec3077733329/fast] Error 2
gmake[1]: Leaving directory
`/work/00434/eijkhout/dealii/build-8.4.1/CMakeFiles/CMakeTmp'
Source file was:
struct foo
{
auto func();
};
int main()
{
foo bar;
}
Here is my own experimenting:
[staff:compiler:109] cat auto.cxx
struct foo
{
auto func();
};
int main()
{
foo bar;
}
[staff:compiler:110] mpicxx -std=c++11 -c auto.cxx
auto.cxx(3): error: "auto" function requires a trailing return type
auto func();
^
compilation aborted for auto.cxx (code 2)
[staff:compiler:111] mpicxx -std=c++14 -c auto.cxx
[staff:compiler:112] mpicxx -std=c++14 -gdwarf-2 -c auto.cxx
auto.cxx(5) (col. 11): internal error: assertion failed:
dump_type_declaration: bad type kind (shared/cfe/edgglue/edg_type.c, line
433)
compilation aborted for auto.cxx (code 4)
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.