qPCR4vir / nana

a modern C++ GUI library
http://nanapro.org
Boost Software License 1.0
16 stars 2 forks source link

RC v1.73 fails to build on Ubuntu 18.04 in Debug and Release mode #36

Open ppetraki opened 4 years ago

ppetraki commented 4 years ago
ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ cmake --version | head -n1
cmake version 3.16.0

ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic

ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ c++ --version
c++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Debug mode

ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ cmake -BDebug -DCMAKE_BUILD_TYPE=Debug -GNinja
-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
You are using nana directly from original sources. (Recommended!) If this was not your intention, and what you want is to install precomplied nana first, then please tern ON option NANA_CMAKE_INSTALL 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'fontconfig'
--   Found fontconfig, version 2.12.6
-- Found Fontconfig: /usr/lib/x86_64-linux-gnu/libfontconfig.so  
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - not found
-- Looking for C++ include experimental/filesystem
-- Looking for C++ include experimental/filesystem - found
-- C++ Filesystem header:      
-- Performing Test CXX17_BUILTIN
-- Performing Test CXX17_BUILTIN - Failed
-- Performing Test CXX17_FLAG
-- Performing Test CXX17_FLAG - Success
-- C++ Standard-17 support:    via -std=c++17
-- Performing Test C++17FS_FLAG
-- Performing Test C++17FS_FLAG - Success
-- C++ Filesystem library:     builtin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ppetraki/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3/Debug
ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ cmake --build Debug
[7/80] Building CXX object CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o
FAILED: CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o 
/usr/bin/c++  -DNANA_IGNORE_CONF -I../include -isystem /usr/include/freetype2 -g   -Wall -fmax-errors=3 -pthread -std=gnu++1z -MD -MT CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o -MF CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o.d -o CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o -c ../source/filesystem/filesystem.cpp
../source/filesystem/filesystem.cpp:1600:39: error: ‘path’ does not name a type; did you mean ‘putw’?
     bool try_throw(int err_val, const path& p, std::error_code* ec, const char* message)
                                       ^~~~
                                       putw
../source/filesystem/filesystem.cpp: In function ‘bool detail::try_throw(int, const int&, std::error_code*, const char*)’:
../source/filesystem/filesystem.cpp:1611:29: error: ‘generic_category’ was not declared in this scope
         error_code(err_val, generic_category())));
                             ^~~~~~~~~~~~~~~~
../source/filesystem/filesystem.cpp:1611:29: note: suggested alternatives:
In file included from /usr/include/c++/7/experimental/bits/fs_fwd.h:37:0,
                 from /usr/include/c++/7/experimental/filesystem:36,
                 from ../include/nana/filesystem/filesystem.hpp:112,
                 from ../include/nana/filesystem/filesystem_ext.hpp:18,
                 from ../source/filesystem/filesystem.cpp:14:
/usr/include/c++/7/system_error:135:40: note:   ‘std::_V2::generic_category’
   _GLIBCXX_CONST const error_category& generic_category() noexcept;
                                        ^~~~~~~~~~~~~~~~
/usr/include/c++/7/system_error:135:40: note:   ‘std::_V2::generic_category’
../source/filesystem/filesystem.cpp:1611:9: error: ‘error_code’ was not declared in this scope
         error_code(err_val, generic_category())));
         ^~~~~~~~~~
../source/filesystem/filesystem.cpp:1611:9: note: suggested alternative:
In file included from /usr/include/c++/7/experimental/bits/fs_fwd.h:37:0,
                 from /usr/include/c++/7/experimental/filesystem:36,
                 from ../include/nana/filesystem/filesystem.hpp:112,
                 from ../include/nana/filesystem/filesystem_ext.hpp:18,
                 from ../source/filesystem/filesystem.cpp:14:
/usr/include/c++/7/system_error:146:10: note:   ‘std::error_code’
   struct error_code
          ^~~~~~~~~~
compilation terminated due to -fmax-errors=3.
[16/80] Building CXX object CMakeFiles/nana.dir/source/gui/dragdrop.cpp.o
ninja: build stopped: subcommand failed.

Release mode

ppetraki@vanguard:~/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3$ cmake -BRelease -DCMAKE_BUILD_TYPE=Release -GNinja && cmake --build Release
-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
You are using nana directly from original sources. (Recommended!) If this was not your intention, and what you want is to install precomplied nana first, then please tern ON option NANA_CMAKE_INSTALL 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'fontconfig'
--   Found fontconfig, version 2.12.6
-- Found Fontconfig: /usr/lib/x86_64-linux-gnu/libfontconfig.so  
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - not found
-- Looking for C++ include experimental/filesystem
-- Looking for C++ include experimental/filesystem - found
-- C++ Filesystem header:      
-- Performing Test CXX17_BUILTIN
-- Performing Test CXX17_BUILTIN - Failed
-- Performing Test CXX17_FLAG
-- Performing Test CXX17_FLAG - Success
-- C++ Standard-17 support:    via -std=c++17
-- Performing Test C++17FS_FLAG
-- Performing Test C++17FS_FLAG - Success
-- C++ Filesystem library:     builtin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ppetraki/Sandbox/hacking/Nana-rc/nana-RC.v1.7.3/Release
[4/80] Building CXX object CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o
FAILED: CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o 
/usr/bin/c++  -DNANA_IGNORE_CONF -I../include -isystem /usr/include/freetype2 -O3 -march=native -mtune=native -DNDEBUG   -Wall -fmax-errors=3 -pthread -std=gnu++1z -MD -MT CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o -MF CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o.d -o CMakeFiles/nana.dir/source/filesystem/filesystem.cpp.o -c ../source/filesystem/filesystem.cpp
../source/filesystem/filesystem.cpp:1600:39: error: ‘path’ does not name a type; did you mean ‘putw’?
     bool try_throw(int err_val, const path& p, std::error_code* ec, const char* message)
                                       ^~~~
                                       putw
../source/filesystem/filesystem.cpp: In function ‘bool detail::try_throw(int, const int&, std::error_code*, const char*)’:
../source/filesystem/filesystem.cpp:1611:29: error: ‘generic_category’ was not declared in this scope
         error_code(err_val, generic_category())));
                             ^~~~~~~~~~~~~~~~
../source/filesystem/filesystem.cpp:1611:29: note: suggested alternatives:
In file included from /usr/include/c++/7/experimental/bits/fs_fwd.h:37:0,
                 from /usr/include/c++/7/experimental/filesystem:36,
                 from ../include/nana/filesystem/filesystem.hpp:112,
                 from ../include/nana/filesystem/filesystem_ext.hpp:18,
                 from ../source/filesystem/filesystem.cpp:14:
/usr/include/c++/7/system_error:135:40: note:   ‘std::_V2::generic_category’
   _GLIBCXX_CONST const error_category& generic_category() noexcept;
                                        ^~~~~~~~~~~~~~~~
/usr/include/c++/7/system_error:135:40: note:   ‘std::_V2::generic_category’
../source/filesystem/filesystem.cpp:1611:9: error: ‘error_code’ was not declared in this scope
         error_code(err_val, generic_category())));
         ^~~~~~~~~~
../source/filesystem/filesystem.cpp:1611:9: note: suggested alternative:
In file included from /usr/include/c++/7/experimental/bits/fs_fwd.h:37:0,
                 from /usr/include/c++/7/experimental/filesystem:36,
                 from ../include/nana/filesystem/filesystem.hpp:112,
                 from ../include/nana/filesystem/filesystem_ext.hpp:18,
                 from ../source/filesystem/filesystem.cpp:14:
/usr/include/c++/7/system_error:146:10: note:   ‘std::error_code’
   struct error_code
          ^~~~~~~~~~
compilation terminated due to -fmax-errors=3.
[13/80] Building CXX object CMakeFiles/nana.dir/source/detail/platform_spec_posix.cpp.o
ninja: build stopped: subcommand failed.