Building CodeLite 15.0 from source on Debian linux fails in make -j$(nproc) step.
== > gcc version:
...
(miniconda3)steve@debian1:~$ gcc --version
gcc (GCC) 11.2.0
Copyright (C) 2021 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.
...
==> cmake version:
(miniconda3)steve@debian1:~$ cmake --version
cmake version 3.7.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
(miniconda3)steve@debian1:~$
==> here is a paste of the steps:
==> clone git repository
==> run cmake-3.22.2
...
==> clone git repository:
==> 300.1 MB !!
...
(miniconda3)steve@debian1:~/apps/CodeLite-15.0$ git clone https://github.com/eranif/codelite.git
Cloning into 'codelite'...
remote: Enumerating objects: 138499, done.
remote: Total 138499 (delta 0), reused 0 (delta 0), pack-reused 138499
Receiving objects: 100% (138499/138499), 572.92 MiB | 6.88 MiB/s, done.
Resolving deltas: 100% (108056/108056), done.
(miniconda3)steve@debian1:~/apps/CodeLite-15.0$
...
==> run cmake-3.22.2:
...
miniconda3)steve@debian1:~/apps/CodeLite-15.0/codelite/build-release$ /home/steve/apps/cmake-3.22.2/cmake-3.22.2-linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SQLite3: /usr/include (found version "3.16.2")
-- BUILD_DIRECTORY is set to /home/steve/apps/CodeLite-15.0/codelite/build-release
-- OS name Linux
-- wx-config used is: /usr/local/bin/wx-config
-- wxWidgets version is: 3.0.5
-- gtk version is: 3
-- LIBSSH_LIB is set to /usr/lib/x86_64-linux-gnu/libssh.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for module 'gtk+-3.0'
-- Found gtk+-3.0, version 3.22.11
-- Checking for module 'gdk-pixbuf-2.0'
-- Found gdk-pixbuf-2.0, version 2.36.5
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Checking for module 'pango'
-- Found pango, version 1.40.5
-- Checking for module 'atk'
-- Found atk, version 2.22.0
-- Found GTK3: /usr/lib/x86_64-linux-gnu/libgtk-3.so
-- Found wxWidgets: -L/usr/local/lib;-pthread;;;-lwx_gtk3u_adv-3.0;-lwx_gtk3u_aui-3.0;-lwx_baseu-3.0;-lwx_gtk3u_core-3.0;-lwx_gtk3u_html-3.0;-lwx_gtk3u_propgrid-3.0;-lwx_baseu_xml-3.0;-lwx_gtk3u_xrc-3.0;-lwx_baseu_net-3.0;-lwx_gtk3u_stc-3.0;-lwx_gtk3u_ribbon-3.0;-lwx_gtk3u_richtext-3.0 (found version "3.0.5")
-- PLUGINS_DIR is set to /usr/lib/x86_64-linux-gnu/codelite
-- Using Native Notebook class
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into /home/steve/apps/CodeLite-15.0/codelite/build-release/bin
-- Shared Objects will be written into /home/steve/apps/CodeLite-15.0/codelite/build-release/lib
-- Adding -DNDEBUG to definitions
-- CPACK_SYSTEM_NAME debian-stretch-x86_64
-- OS_CODENAME is set to stretch
-- ARCH 64
-- ARCH_NAME x86_64
-- USE_SFTP is set to 1
-- Flex support is disabled
**
** NOTICE ** Could not locate libhunspell. SpellChecker plugin will not be build
** NOTICE ** Try installing libhunspell-dev package
**
**** NOTICE: lldb is not available. You could try installing the lldb-3.4-dev (or equivalent) package
-- CL_SRC_ROOT is set to /home/steve/apps/CodeLite-15.0/codelite
-- Adding Valgrind Plugin
-- Building wxCrafter as codelite plugin
-- Generating makefile for wxCrafter
-- wxlibsdir is: /usr/local/lib
-- will copy /usr/lib/x86_64-linux-gnu/libssh.so;/usr/lib/x86_64-linux-gnu/libssh.so.4;/usr/lib/x86_64-linux-gnu/libssh.so.4.4.1
-I/usr/local/lib/wx/include/gtk3-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -DWXGTK -pthread
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to /home/steve/apps/CodeLite-15.0/codelite
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steve/apps/CodeLite-15.0/codelite/build-release
(miniconda3)steve@debian1:~/
...
Here is a paste of relevant lines from the bash cli window of the make -j$(nproc) step:
...
[ 61%] Linking CXX executable ../bin/PHPUnitTests
[ 62%] Linking CXX shared library ../lib/Remoty.so
/usr/local/lib/libwx_gtk3u_stc-3.0.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
codelitephp/CMakeFiles/PHPUnitTests.dir/build.make:124: recipe for target 'bin/PHPUnitTests' failed
make[2]: *** [bin/PHPUnitTests] Error 1
CMakeFiles/Makefile2 recipe for target 'codelitephp/CMakeFiles/PHPUnitTests.dir/all' failed
make[1]: *** [codelitephp/CMakeFiles/PHPUnitTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs.
...
[ 66%] Linking CXX shared library ../lib/codelitephp.so
[ 66%] Built target codelitephp
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
(miniconda3)steve@debian1:~/apps/CodeLite-15.0/codelite/build-release$
...
Here is a paste of more lines around the errors from the bash cli window of the make -j$(nproc) step:
(miniconda3)steve@debian1:~/apps/CodeLite-15.0/codelite/build-release$ make -j$(nproc)
[ 0%] Building CXX object sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/src/wxsqlite3.cpp.o
...
[ 60%] Built target Subversion
[ 60%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyConfig.cpp.o
[ 60%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPTreeView.cpp.o
[ 60%] Building CXX object Docker/CMakeFiles/Docker.dir/clDockerWorkspaceSettings.cpp.o
[ 60%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyNewWorkspaceDlg.cpp.o
[ 60%] Building CXX object Docker/CMakeFiles/Docker.dir/clDockerWorkspaceView.cpp.o
[ 60%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/LanguageServerLogView.cpp.o
[ 60%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyPlugin.cpp.o
[ 60%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/LanguageServerPage.cpp.o
[ 60%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPUploadDialog.cpp.o
[ 60%] Building CXX object SFTP/CMakeFiles/SFTP.dir/UI.cpp.o
[ 60%] Building CXX object Docker/CMakeFiles/Docker.dir/clDockerfile.cpp.o
[ 60%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotySwitchToWorkspaceDlg.cpp.o
[ 60%] Building CXX object Docker/CMakeFiles/Docker.dir/docker.cpp.o
[ 60%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/LanguageServerSettingsDlg.cpp.o
[ 60%] Building CXX object SFTP/CMakeFiles/SFTP.dir/UI_sftp_bitmaps.cpp.o
[ 60%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/NewLanguageServerDlg.cpp.o
[ 60%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyUI.cpp.o
[ 60%] Building CXX object SFTP/CMakeFiles/SFTP.dir/remote_file_info.cpp.o
[ 60%] Linking CXX shared library ../lib/Docker.so
[ 60%] Built target Docker
[ 60%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/FileMappingDlg.cpp.o
[ 61%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp.cpp.o
[ 61%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/PathConverterDefault.cpp.o
[ 61%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyUI_remoty_bitmaps.cpp.o
[ 61%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyWorkspace.cpp.o
[ 61%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/UI.cpp.o
[ 61%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/NewPHPClass.cpp.o
[ 61%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp_worker_thread.cpp.o
[ 61%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/UI_languageserver_bitmaps.cpp.o
[ 61%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/NewPHPProjectWizard.cpp.o
[ 61%] Building CXX object LanguageServer/CMakeFiles/LanguageServer.dir/languageserver.cpp.o
[ 61%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp_workspace_settings.cpp.o
[ 61%] Building CXX object Remoty/CMakeFiles/Remoty.dir/RemotyWorkspaceView.cpp.o
[ 61%] Linking CXX shared library ../lib/SFTP.so
[ 61%] Built target SFTP
[ 61%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/main.cpp.o
[ 61%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/PHPDebugPane.cpp.o
[ 61%] Linking CXX shared library ../lib/LanguageServer.so
[ 61%] Built target LanguageServer
[ 61%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/UI.cpp.o
[ 61%] Building CXX object Remoty/CMakeFiles/Remoty.dir/clRemoteTerminal.cpp.o
[ 61%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/UI_wordcompletion_bitmaps.cpp.o
[ 61%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/tester.cpp.o
[ 61%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/WordCompletionDictionary.cpp.o
[ 61%] Linking CXX executable ../bin/PHPUnitTests
[ 62%] Linking CXX shared library ../lib/Remoty.so
/usr/local/lib/libwx_gtk3u_stc-3.0.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
codelitephp/CMakeFiles/PHPUnitTests.dir/build.make:124: recipe for target 'bin/PHPUnitTests' failed
make[2]: *** [bin/PHPUnitTests] Error 1
CMakeFiles/Makefile2 recipe for target 'codelitephp/CMakeFiles/PHPUnitTests.dir/all' failed
make[1]: *** [codelitephp/CMakeFiles/PHPUnitTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 62%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/WordCompletionSettings.cpp.o
[ 62%] Built target Remoty
[ 62%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/WordCompletionSettingsDlg.cpp.o
[ 62%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/WordCompletionThread.cpp.o
[ 62%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/WordTokenizer.cpp.o
[ 62%] Building CXX object WordCompletion/CMakeFiles/WordCompletion.dir/wordcompletion.cpp.o
[ 62%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/PHPDebugStartDlg.cpp.o
[ 62%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/PHPSettersGettersDialog.cpp.o
[ 62%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/PHPXDebugSetupWizard.cpp.o
[ 63%] Linking CXX shared library ../lib/WordCompletion.so
[ 63%] Built target WordCompletion
[ 63%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/PhpSFTPHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugBreakpointCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugCommThread.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugCommandHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugContextGetCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugEvalCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugManager.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugPropertyGetHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugRunCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugStackGetCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugStopCmdHandler.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugTester.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XDebugUnknownCommand.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/XVariable.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/evalpane.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/localsview.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/my_tree_view.cpp.o
[ 64%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/new_class.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/new_class_php-plugin_bitmaps.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/new_file_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/new_php_workspace_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_editor_context_menu.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_file_layout_tree.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_open_resource_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_project_settings_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_settings_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_ui.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_ui_php-plugin_bitmaps.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/php_workspace_view.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/plugin_settings.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/quick_outline_dlg.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/ssh_workspace_settings.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/xdebugbreakpointsmgr.cpp.o
[ 65%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/xdebugevent.cpp.o
[ 66%] Building CXX object codelitephp/CMakeFiles/codelitephp.dir/php-plugin/xdebuglocalsviewmodel.cpp.o
[ 66%] Linking CXX shared library ../lib/codelitephp.so
[ 66%] Built target codelitephp
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
(miniconda3)steve@debian1:~/apps/CodeLite-15.0/codelite/build-release$
...
Any suggestions would be welcome !!
Thanks,
Steve Petrie