CMake Build Problem

Richard Kimberly Heck rikiheck at lyx.org
Tue Dec 17 01:11:16 UTC 2019


I'm getting a repeatable error when building the master branch of LyX
with cmake on Fedora 30. What I've done is:

./autogen.sh
mkdir build-cmake
cd build-cmake
cmake ..
make

Result:

[ 70%] Linking CXX executable ../bin/lyx2.4
cd /cvs/lyx/lyx-devel/build-cmake/src && /usr/bin/cmake -E
cmake_link_script CMakeFiles/lyx2.4.dir/link.txt --verbose=1
/usr/bin/c++  -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing 
-O0 -g3 -D_DEBUG -flto -fno-fat-lto-objects  -rdynamic
CMakeFiles/lyx2.4.dir/Author.cpp.o
CMakeFiles/lyx2.4.dir/BiblioInfo.cpp.o CMakeFiles/lyx2.4.dir/Box.cpp.o
CMakeFiles/lyx2.4.dir/BranchList.cpp.o
CMakeFiles/lyx2.4.dir/Buffer.cpp.o
CMakeFiles/lyx2.4.dir/BufferEncodings.cpp.o
CMakeFiles/lyx2.4.dir/BufferList.cpp.o
CMakeFiles/lyx2.4.dir/BufferParams.cpp.o
CMakeFiles/lyx2.4.dir/BufferView.cpp.o
CMakeFiles/lyx2.4.dir/Bullet.cpp.o CMakeFiles/lyx2.4.dir/Changes.cpp.o
CMakeFiles/lyx2.4.dir/Chktex.cpp.o
CMakeFiles/lyx2.4.dir/CiteEnginesList.cpp.o
CMakeFiles/lyx2.4.dir/CmdDef.cpp.o CMakeFiles/lyx2.4.dir/Color.cpp.o
CMakeFiles/lyx2.4.dir/Compare.cpp.o
CMakeFiles/lyx2.4.dir/Converter.cpp.o
CMakeFiles/lyx2.4.dir/ConverterCache.cpp.o
CMakeFiles/lyx2.4.dir/CoordCache.cpp.o
CMakeFiles/lyx2.4.dir/Counters.cpp.o CMakeFiles/lyx2.4.dir/Cursor.cpp.o
CMakeFiles/lyx2.4.dir/CursorSlice.cpp.o
CMakeFiles/lyx2.4.dir/CutAndPaste.cpp.o
CMakeFiles/lyx2.4.dir/DepTable.cpp.o
CMakeFiles/lyx2.4.dir/Dimension.cpp.o
CMakeFiles/lyx2.4.dir/DocIterator.cpp.o
CMakeFiles/lyx2.4.dir/Encoding.cpp.o
CMakeFiles/lyx2.4.dir/ErrorList.cpp.o
CMakeFiles/lyx2.4.dir/Exporter.cpp.o
CMakeFiles/lyx2.4.dir/FloatList.cpp.o
CMakeFiles/lyx2.4.dir/Floating.cpp.o CMakeFiles/lyx2.4.dir/Font.cpp.o
CMakeFiles/lyx2.4.dir/FontInfo.cpp.o
CMakeFiles/lyx2.4.dir/FontList.cpp.o CMakeFiles/lyx2.4.dir/Format.cpp.o
CMakeFiles/lyx2.4.dir/FuncRequest.cpp.o
CMakeFiles/lyx2.4.dir/FuncStatus.cpp.o CMakeFiles/lyx2.4.dir/Graph.cpp.o
CMakeFiles/lyx2.4.dir/IndicesList.cpp.o
CMakeFiles/lyx2.4.dir/InsetIterator.cpp.o
CMakeFiles/lyx2.4.dir/InsetList.cpp.o CMakeFiles/lyx2.4.dir/Intl.cpp.o
CMakeFiles/lyx2.4.dir/KeyMap.cpp.o
CMakeFiles/lyx2.4.dir/KeySequence.cpp.o
CMakeFiles/lyx2.4.dir/LaTeX.cpp.o
CMakeFiles/lyx2.4.dir/LaTeXFeatures.cpp.o
CMakeFiles/lyx2.4.dir/LaTeXFonts.cpp.o
CMakeFiles/lyx2.4.dir/LaTeXPackages.cpp.o
CMakeFiles/lyx2.4.dir/Language.cpp.o CMakeFiles/lyx2.4.dir/Layout.cpp.o
CMakeFiles/lyx2.4.dir/LayoutFile.cpp.o
CMakeFiles/lyx2.4.dir/LayoutModuleList.cpp.o
CMakeFiles/lyx2.4.dir/Length.cpp.o CMakeFiles/lyx2.4.dir/Lexer.cpp.o
CMakeFiles/lyx2.4.dir/LyX.cpp.o CMakeFiles/lyx2.4.dir/LyXAction.cpp.o
CMakeFiles/lyx2.4.dir/LyXRC.cpp.o CMakeFiles/lyx2.4.dir/LyXVC.cpp.o
CMakeFiles/lyx2.4.dir/MetricsInfo.cpp.o
CMakeFiles/lyx2.4.dir/ModuleList.cpp.o CMakeFiles/lyx2.4.dir/Mover.cpp.o
CMakeFiles/lyx2.4.dir/OutputParams.cpp.o
CMakeFiles/lyx2.4.dir/PDFOptions.cpp.o
CMakeFiles/lyx2.4.dir/ParIterator.cpp.o
CMakeFiles/lyx2.4.dir/Paragraph.cpp.o
CMakeFiles/lyx2.4.dir/ParagraphMetrics.cpp.o
CMakeFiles/lyx2.4.dir/ParagraphParameters.cpp.o
CMakeFiles/lyx2.4.dir/PersonalWordList.cpp.o
CMakeFiles/lyx2.4.dir/PrinterParams.cpp.o
CMakeFiles/lyx2.4.dir/Row.cpp.o CMakeFiles/lyx2.4.dir/RowPainter.cpp.o
CMakeFiles/lyx2.4.dir/Server.cpp.o
CMakeFiles/lyx2.4.dir/ServerSocket.cpp.o
CMakeFiles/lyx2.4.dir/Session.cpp.o CMakeFiles/lyx2.4.dir/Spacing.cpp.o
CMakeFiles/lyx2.4.dir/TexRow.cpp.o CMakeFiles/lyx2.4.dir/Text.cpp.o
CMakeFiles/lyx2.4.dir/Text2.cpp.o CMakeFiles/lyx2.4.dir/Text3.cpp.o
CMakeFiles/lyx2.4.dir/TextClass.cpp.o
CMakeFiles/lyx2.4.dir/TextMetrics.cpp.o
CMakeFiles/lyx2.4.dir/Thesaurus.cpp.o
CMakeFiles/lyx2.4.dir/TocBackend.cpp.o
CMakeFiles/lyx2.4.dir/TocBuilder.cpp.o CMakeFiles/lyx2.4.dir/Trans.cpp.o
CMakeFiles/lyx2.4.dir/Undo.cpp.o CMakeFiles/lyx2.4.dir/VCBackend.cpp.o
CMakeFiles/lyx2.4.dir/VSpace.cpp.o CMakeFiles/lyx2.4.dir/WordList.cpp.o
CMakeFiles/lyx2.4.dir/boost.cpp.o
CMakeFiles/lyx2.4.dir/buffer_funcs.cpp.o
CMakeFiles/lyx2.4.dir/factory.cpp.o
CMakeFiles/lyx2.4.dir/lengthcommon.cpp.o
CMakeFiles/lyx2.4.dir/lyxfind.cpp.o CMakeFiles/lyx2.4.dir/main.cpp.o
CMakeFiles/lyx2.4.dir/output.cpp.o
CMakeFiles/lyx2.4.dir/output_docbook.cpp.o
CMakeFiles/lyx2.4.dir/output_latex.cpp.o
CMakeFiles/lyx2.4.dir/output_plaintext.cpp.o
CMakeFiles/lyx2.4.dir/output_xhtml.cpp.o
CMakeFiles/lyx2.4.dir/sgml.cpp.o CMakeFiles/lyx2.4.dir/texstream.cpp.o
CMakeFiles/lyx2.4.dir/version.cpp.o  -o ../bin/lyx2.4 ../lib/libmathed.a
../lib/libinsets.a ../lib/libfrontends.a ../lib/libfrontend_qt.a
../lib/libgraphics.a ../lib/libsupport.a ../lib/libmytheslibstatic.a
-lX11 /usr/lib64/libQt5X11Extras.so.5.12.5 -lxcb -lmagic
../lib/libfrontends.a /usr/lib64/libQt5Concurrent.so.5.12.5
/usr/lib64/libQt5Svg.so.5.12.5 /usr/lib64/libQt5Widgets.so.5.12.5
/usr/lib64/libQt5Gui.so.5.12.5 /usr/lib64/libQt5Core.so.5.12.5 -lz
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:153
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/lyx2.4.dir/build.make:1640: bin/lyx2.4] Error 1
make[2]: Leaving directory '/cvs/lyx/lyx-devel/build-cmake'
make[1]: *** [CMakeFiles/Makefile2:407: src/CMakeFiles/lyx2.4.dir/all]
Error 2
make[1]: Leaving directory '/cvs/lyx/lyx-devel/build-cmake'
make: *** [Makefile:144: all] Error 2

This error does NOT occur when building with autotools. I've googled the
error message without any helpful hits.

Riki


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191216/f7e66614/attachment-0001.html>


More information about the lyx-devel mailing list