-
Notifications
You must be signed in to change notification settings - Fork 293
make failed on ubuntu 16.04 #193
Comments
Can you include the output of your "cmake .." command line ? |
~/ELL/build$ cmake .. CMake Warning (dev) at /usr/local/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message): -- Creating wrappers for javascript
Some of these libraries may not be found correctly. CMake Warning at tools/utilities/profile/CMakeLists.txt:27 (add_executable):
Some of these libraries may not be found correctly. CMake Warning at /usr/local/share/cmake-3.13/Modules/UseSWIG.cmake:665 (add_library):
Some of these libraries may not be found correctly. -- Generating done |
Sorry can you delete your build folder and do it again, I'm curious what C and C++ compiler versions it is finding (which is not reported the second time you run cmake). I'm looking for output like this:
which shows my C and C++ compiler versions are mismatched. One is 7 and the other is 8. And I will get compiler errors as a result. But if I run this:
then everything compiles without errors. |
After re build my folder cmake output like this CMake Warning (dev) at /usr/local/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message): -- Creating wrappers for javascript
Some of these libraries may not be found correctly. CMake Warning at tools/utilities/profile/CMakeLists.txt:27 (add_executable):
Some of these libraries may not be found correctly. CMake Warning at /usr/local/share/cmake-3.13/Modules/UseSWIG.cmake:665 (add_library):
Some of these libraries may not be found correctly. -- Generating done |
And still I am facing this errors.............. |
I just ran our full setup instructions on fresh Ubuntu 18 machine I got a newer compiler:
is this not available on Ubuntu 16 when you use this:
|
Thanks for support....... |
With multiple GCC version installed on my machine, I used update-alternatives to pin to GCC 8.2. Perhaps these instructions are useful to others running into similar issues:
Props to an excellent write up on the topic: http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/ |
~/ELL/build$ make
[ 0%] Built target documentation
[ 0%] Building CXX object libraries/utilities/CMakeFiles/utilities.dir/src/Archiver.cpp.o
In file included from /home/kharsha/ELL/libraries/utilities/include/TypeName.h:11,
from /home/kharsha/ELL/libraries/utilities/include/Archiver.h:13,
from /home/kharsha/ELL/libraries/utilities/src/Archiver.cpp:9:
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:106:17: error: ‘is_pointer_v’ in namespace ‘std’ does not name a type
std::is_pointer_v>T<<
^~~~~~~~~~~~
In file included from /usr/include/c++/8/bits/move.h:55,
from /usr/include/c++/8/bits/nested_exception.h:40,
from /usr/include/c++/8/exception:144,
from /home/kharsha/ELL/libraries/utilities/include/Exception.h:11,
from /home/kharsha/ELL/libraries/utilities/include/Debug.h:10,
from /home/kharsha/ELL/libraries/utilities/include/TypeFactory.h:11,
from /home/kharsha/ELL/libraries/utilities/include/Archiver.h:12,
from /home/kharsha/ELL/libraries/utilities/src/Archiver.cpp:9:
/usr/include/c++/8/type_traits:2742:25: note: ‘template constexpr const bool std::is_pointer_v<_Tp>’ declared here
inline constexpr bool is_pointer_v = is_pointer<_Tp>::value;
^~~~~~~~~~~~
In file included from /home/kharsha/ELL/libraries/utilities/include/TypeName.h:11,
from /home/kharsha/ELL/libraries/utilities/include/Archiver.h:13,
from /home/kharsha/ELL/libraries/utilities/src/Archiver.cpp:9:
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:115:34: error: expected identifier before ‘<’ token
struct RemoveAllPointers < T;
^
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:115:34: error: expected unqualified-id before ‘<’ token
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:116:9: error: expected unqualified-id before ‘false’
false >
^~~~~
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:125:66: error: expected identifier before ‘<’ token
using RemoveAllPointersT = typename detail::RemoveAllPointers::Type;
^
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:129:72: error: expected unqualified-id before ‘<’ token
inline constexpr size_t CountOfPointers = detail::RemoveAllPointers::NumPointers;
^
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:129:74: error: expected primary-expression before ‘>’ token
nline constexpr size_t CountOfPointers = detail::RemoveAllPointers::NumPointers;
^
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:129:77: error: ‘::NumPointers’ has not been declared
ne constexpr size_t CountOfPointers = detail::RemoveAllPointers::NumPointers;
^~~~~~~~~~~
/home/kharsha/ELL/libraries/utilities/include/TypeTraits.h:129:77: note: suggested alternative: ‘CountOfPointers’
ne constexpr size_t CountOfPointers = detail::RemoveAllPointers::NumPointers;
^~~~~~~~~~~
CountOfPointers
libraries/utilities/CMakeFiles/utilities.dir/build.make:62: recipe for target 'libraries/utilities/CMakeFiles/utilities.dir/src/Archiver.cpp.o' failed
make[2]: *** [libraries/utilities/CMakeFiles/utilities.dir/src/Archiver.cpp.o] Error 1
CMakeFiles/Makefile2:2201: recipe for target 'libraries/utilities/CMakeFiles/utilities.dir/all' failed
make[1]: *** [libraries/utilities/CMakeFiles/utilities.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: