Kornel Benko wrote:

> No, sorry. Looks like the same quadrillion error messages.

I do not understand how these errors could be related to my commit. Do they 
go away if you call cmake without LYX_3RDPARTY_BUILD?
 
> Trying now with clean build tree:
> ...
> Same result. As an example, this is the command line causing error if
> using 'make check_layout':
> 
> cd /usr/BUILD/BuildLyxGitQt5.6main-gcc5.3/src/tests && /usr/bin/cmake -E
> cmake_link_script CMakeFiles/check_layout.dir/link.txt --verbose=1
> /usr/local/gcc5.3/bin/g++   -Wall -Wunused-parameter --std=c++14
> -fno-strict-aliasing  -Wall -Wunused-parameter --std=c++14
> -fno-strict-aliasing -O0 -g3 -D_DEBUG  
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-
git/src/insets/InsetLayout.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Color.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Counters.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Floating.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/FloatList.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/FontInfo.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Layout.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/LayoutFile.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Lexer.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/ModuleList.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Spacing.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/TextClass.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-
git/src/tests/check_layout.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/tests/boost.cpp.o
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-
git/src/tests/dummy_functions.cpp.o
>  -o ../../bin/check_layout  -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -rdynamic
> ../../lib/libsupport.a ../../lib/libzlibstatic.a ../../lib/libiconv.a
> -lmagic /usr/BUILD/BuildQt5/5.6/gcc_64/lib/libQt5Gui.so.5.6.0
> /usr/BUILD/BuildQt5/5.6/gcc_64/lib/libQt5Core.so.5.6.0
> -Wl,-rpath,/usr/BUILD/BuildQt5/5.6/gcc_64/lib
> CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-
git/src/insets/InsetLayout.cpp.o:
> In function `lyx::InsetLayout::InsetLayout()':
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::basic_string()'
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::basic_string()'
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> >::basic_string()'
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> >::basic_string()'
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> >::basic_string()'
> /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference
> to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t> >::basic_string()'
> 
> and so on. I see the use of ../../lib/libzlibstatic.a and
> ../../lib/libiconv.a. There is some other bug I fear.

This is now expected if you enable LYX_3RDPARTY_BUILD.

> Do you see anything missing?

No. Looks very similar to my working build:

cd /xxx/lyx-2.3-git-build/src/tests && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/check_layout.dir/link.txt --verbose=1
g++   -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing  -Wall -
Wunused-parameter --std=c++14 -fno-strict-aliasing -O0 -g3 -D_DEBUG    
CMakeFiles/check_layout.dir/__/insets/InsetLayout.cpp.o 
CMakeFiles/check_layout.dir/__/Color.cpp.o 
CMakeFiles/check_layout.dir/__/Counters.cpp.o 
CMakeFiles/check_layout.dir/__/Floating.cpp.o 
CMakeFiles/check_layout.dir/__/FloatList.cpp.o 
CMakeFiles/check_layout.dir/__/FontInfo.cpp.o 
CMakeFiles/check_layout.dir/__/Layout.cpp.o 
CMakeFiles/check_layout.dir/__/LayoutFile.cpp.o 
CMakeFiles/check_layout.dir/__/Lexer.cpp.o 
CMakeFiles/check_layout.dir/__/ModuleList.cpp.o 
CMakeFiles/check_layout.dir/__/Spacing.cpp.o 
CMakeFiles/check_layout.dir/__/TextClass.cpp.o 
CMakeFiles/check_layout.dir/check_layout.cpp.o 
CMakeFiles/check_layout.dir/boost.cpp.o 
CMakeFiles/check_layout.dir/dummy_functions.cpp.o  -o ../../bin/check_layout 
-rdynamic ../../lib/libsupport.a ../../lib/libzlibstatic.a 
../../lib/libiconv.a -lmagic /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2 

To me this does rather look like a problem with your gcc installation. Are 
you able to compile and link other C++ programs with this g++? Are you able 
to build LyX with autotools?


Georg

Reply via email to