Closed unxed closed 2 years ago
Hi unxed, I'm sorry I didn't detect this issue earlier.
I can't fix it right now, but you should be able to work around it by commenting out lines 115 to 127 of CMakeLists.txt (the install
commands). Also, I see you are using GCC 7.5.0; you may have to use GCC 8 instead (as shown in the Ubuntu 18.04 instructions).
Cheers!
commenting out lines 115 to 127 of CMakeLists.txt
done so, now cmake succeed, but it fails to compile:
/home/unxed/turbo$ make -j$(nproc --all) ↑
Scanning dependencies of target scilexers
Scanning dependencies of target fmt
Scanning dependencies of target clipboard
Scanning dependencies of target scintilla
Scanning dependencies of target tvision
[ 0%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_x11.c.o
[ 0%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_cocoa.c.o
[ 1%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_common.c.o
[ 2%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_win32.c.o
[ 2%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/format.cc.o
[ 3%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexAsm.cxx.o
[ 4%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/AutoComplete.cxx.o
[ 5%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/CallTip.cxx.o
[ 5%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/os.cc.o
[ 5%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexBash.cxx.o
[ 5%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ansidisp.cpp.o
[ 5%] Linking C static library ../../lib/libclipboard.a
[ 5%] Built target clipboard
[ 5%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/buffdisp.cpp.o
[ 5%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexCPP.cxx.o
[ 6%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexJSON.cxx.o
[ 6%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexMake.cxx.o
[ 6%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/CaseConvert.cxx.o
[ 6%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexPython.cxx.o
[ 7%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/codepage.cpp.o
[ 8%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/CaseFolder.cxx.o
[ 8%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Catalogue.cxx.o
[ 9%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexRuby.cxx.o
[ 9%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/colors.cpp.o
[ 9%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/CellBuffer.cxx.o
[ 9%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/cursor.cpp.o
[ 9%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexRust.cxx.o
[ 10%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/dir.cpp.o
[ 10%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/events.cpp.o
[ 11%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/CharClassify.cxx.o
[ 11%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/findfrst.cpp.o
[ 11%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/ContractionState.cxx.o
[ 12%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/gpminput.cpp.o
[ 12%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/hardware.cpp.o
[ 12%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/DBCS.cxx.o
[ 12%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/linuxcon.cpp.o
[ 12%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexYAML.cxx.o
[ 13%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ncurdisp.cpp.o
[ 14%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Decoration.cxx.o
[ 14%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Document.cxx.o
[ 14%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ncursinp.cpp.o
[ 14%] Built target scilexers
[ 14%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/platfcon.cpp.o
[ 14%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/EditModel.cxx.o
[ 15%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/platform.cpp.o
[ 15%] Linking CXX static library libfmt.a
[ 15%] Built target fmt
[ 15%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/sighandl.cpp.o
[ 16%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/EditView.cxx.o
/home/unxed/turbo/deps/tvision/source/platform/sighandl.cpp: In static member function ‘static SignalHandler::HandlerInfo& S
ignalHandler::getHandlerInfo(int)’:
/home/unxed/turbo/deps/tvision/source/platform/sighandl.cpp:61:25: error: ‘abort’ was not declared in this scope
default: abort();
^~~~~
/home/unxed/turbo/deps/tvision/source/platform/sighandl.cpp:61:25: note: suggested alternative: ‘short’
default: abort();
^~~~~
short
/home/unxed/turbo/deps/tvision/source/platform/sighandl.cpp:63:1: warning: control reaches end of non-void function [-Wretur
n-type]
}
^
deps/tvision/source/CMakeFiles/tvision.dir/build.make:422: recipe for target 'deps/tvision/source/CMakeFiles/tvision.dir/pla
tform/sighandl.cpp.o' failed
make[2]: *** [deps/tvision/source/CMakeFiles/tvision.dir/platform/sighandl.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Editor.cxx.o
[ 16%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/ExternalLexer.cxx.o
CMakeFiles/Makefile2:761: recipe for target 'deps/tvision/source/CMakeFiles/tvision.dir/all' failed
make[1]: *** [deps/tvision/source/CMakeFiles/tvision.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 17%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Indicator.cxx.o
[ 17%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/KeyMap.cxx.o
[ 17%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/LineMarker.cxx.o
[ 18%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/MarginView.cxx.o
[ 18%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/PerLine.cxx.o
[ 18%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/PositionCache.cxx.o
[ 19%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/RESearch.cxx.o
[ 19%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/RunStyles.cxx.o
[ 19%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/ScintillaBase.cxx.o
[ 20%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Selection.cxx.o
[ 20%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/Style.cxx.o
[ 20%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/UniConversion.cxx.o
[ 21%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/UniqueString.cxx.o
[ 21%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/ViewStyle.cxx.o
[ 21%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/src/XPM.cxx.o
[ 22%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/Accessor.cxx.o
[ 22%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/CharacterCategory.cxx.o
[ 22%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/CharacterSet.cxx.o
[ 22%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/LexerModule.cxx.o
[ 22%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/LexerBase.cxx.o
[ 23%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/DefaultLexer.cxx.o
[ 25%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/LexerNoExceptions.cxx.o
[ 25%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/LexerSimple.cxx.o
[ 25%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/PropSetSimple.cxx.o
[ 26%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/StyleContext.cxx.o
[ 26%] Building CXX object CMakeFiles/scintilla.dir/source/scintilla/lexlib/WordList.cxx.o
[ 26%] Built target scintilla
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Oops. Please add #include <stdlib.h>
at the beginning of deps/tvision/source/platform/sighandl.cpp
.
Thanks! Also had to add
#include <initializer_list>
at the beginning of
/turbo/deps/tvision/source/platform/stdioctl.cpp
Sorry for the compilation errors :facepalm:. It seems like I should also use older build environments in the CI workflows.
Mine was Ubuntu 18.04 i386 and amd64, also reproduced in Mint 20.2
following instructions for ubuntu cmake complains:
CMakeOutput.log CMakeError.log