CentOS 7 Installation fails

CodeLite installation/troubleshooting forum
nikosl7
CodeLite Curious
Posts: 4
Joined: Thu Feb 25, 2016 10:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

CentOS 7 Installation fails

Post by nikosl7 »

Hi, I am trying to compile CodeLite in CentOS 7 however during the make procedure it fails.

Specifically I run cmake as:

Code: Select all

 PATH=/usr/local/lib:$PATH cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LLDB=0  .. -DCOPY_WX_LIBS=1
and then I execute make.

When it reaches ~56% I get this:

Code: Select all

X static library ../lib/libPHPParser.a
[ 56%] Built target PHPParser
Scanning dependencies of target PHPUnitTests
[ 56%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/main.cpp.o
[ 56%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/tester.cpp.o
Linking CXX executable ../bin/PHPUnitTests
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsModified() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::HitTest(wxPoint const&, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::push_back(wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLastPosition() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineLength(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEditable() const'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::EnableTextChangedEvents(bool)'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetStyle(long, wxTextAttr&)'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::MarkDirty()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoSetValue(wxString const&, int)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::ShowPosition(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::PositionToXY(long, long*, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Remove(long, long)'
/usr/local/lib/libwx_gtk2u_propgrid-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned long, wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DiscardEdits()'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::reserve(unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEntry() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetSelection(long, long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::WriteText(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetStyle(long, long, wxTextAttr const&)'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetNumberOfLines() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::XYToPosition(long, long) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(wchar_t const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_last_not_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::rfind(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoPositionToCoords(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Cut()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetInsertionPoint() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetHint(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineText(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetDefaultStyle(wxTextAttr const&)'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_first_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsEditable() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::push_back(char)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GTKIMFilterKeypress(_GdkEventKey*) const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_last_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetEditable(bool)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Copy()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::overflow(int)'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetInsertionPoint(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetSelection(long*, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::rfind(wchar_t, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Paste()'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_append(wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/PHPUnitTests] Error 1
make[1]: *** [codelitephp/CMakeFiles/PHPUnitTests.dir/all] Error 2
make: *** [all] Error 2

I am using gcc 5.1 to compile and I attach the output from the cmake, if it is helpful

Code: Select all

PATH=/usr/local/lib:$PATH cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_LLDB=0 .. -DCOPY_WX_LIBS=1
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 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
-- SQLITE3_INCLUDE_DIR: /usr/include
-- SQLITE3_LIBRARY: /usr/lib64/libsqlite3.so
-- BUILD_DIRECTORY is set to /home/nlappas/Documents/codeliteSrc/codelite/build-release
-- OS name Linux
-- wx-config used is: /usr/local/bin/wx-config
-- wxWidgets version is: 3.0.2
-- gtk version is: 2
-- Disabling lldb support
-- LIBSSH_LIB is set to /usr/lib64/libssh.so
-- PLUGINS_DIR is set to /usr/lib64/codelite
-- Using wxAuiNotebook
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into /home/nlappas/Documents/codeliteSrc/codelite/build-release/bin
-- Shared Objects will be written into /home/nlappas/Documents/codeliteSrc/codelite/build-release/lib
-- Adding -DNDEBUG to definitions
-- CPACK_SYSTEM_NAME centos-core-x86_64
-- ARCH 64
-- ARCH_NAME x86_64
-- Find libClang result: clang_getCompletionBriefComment(CXCompletionString completion_string);
-- Found method clang_getCompletionBriefComment, enabling brief comments support
-- clang link line /usr/lib64/llvm/libclang.so 
-- clang include path /usr/include 
-- clang binary /usr/lib64/llvm/libclang.so
-- CL_SRC_ROOT is set to => /home/nlappas/Documents/codeliteSrc/codelite
-- PREFIX      is set to => /usr
-- PREFIX/LIB_DIR is set to => /usr/lib64
-- PLUGINS_DIR is set to => /usr/lib64/codelite
-- wx-config   is set to => /usr/local/bin/wx-config
-- USE_SFTP is set to 1
-- Found wxWidgets: TRUE  
-- Flex support is disabled
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.11") 
-- Found GTK2_GTK: /usr/lib64/libgtk-x11-2.0.so  
-- Adding Valgrind Plugin
-- Found libhunspell: /usr/lib64/libhunspell-1.3.so, /usr/include/hunspell
-- Internal Web Browser is disabled
-- CL_SRC_ROOT is set to /home/nlappas/Documents/codeliteSrc/codelite
-- wxlibsdir is: /usr/local/lib
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to /home/nlappas/Documents/codeliteSrc/codelite
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nlappas/Documents/codeliteSrc/codelite/build-release
g++ --version
g++ (GCC) 5.1.0
Copyright (C) 2015 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.

Any ideas?
User avatar
eranif
CodeLite Plugin
Posts: 6165
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by eranif »

Few:
1. Why do you need to set path to /usr/local/lib?
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
2. it seems that you have a mix of 32 and 64 bit installation on your machine

Eran
Make sure you have read the HOW TO POST thread
nikosl7
CodeLite Curious
Posts: 4
Joined: Thu Feb 25, 2016 10:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by nikosl7 »

eranif wrote:Few:
1. Why do you need to set path to /usr/local/lib?
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
2. it seems that you have a mix of 32 and 64 bit installation on your machine

Eran

1. Because this is where wxWidgets was installed, following the advice in the walk-through http://codelite.org/Developers/Linux.

2. I did not know that this could cause problems. I will try to resolve it.
User avatar
eranif
CodeLite Plugin
Posts: 6165
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by eranif »

Another possibility is that your wxWidgets build and CodeLite built were made with an incompatible compilers...
Did you try build wxWidgets yourself? or use GCC 4.9.X to build CodeLite?

Eran
Make sure you have read the HOW TO POST thread
nikosl7
CodeLite Curious
Posts: 4
Joined: Thu Feb 25, 2016 10:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by nikosl7 »

eranif wrote:Another possibility is that your wxWidgets build and CodeLite built were made with an incompatible compilers...
Did you try build wxWidgets yourself? or use GCC 4.9.X to build CodeLite?

Eran

Both were built with gcc 5.1 today. For some reason the linker only stops in the phpunittests phase. For example in previous steps this is what I get:

Code: Select all

Scanning dependencies of target SFTP
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPBookmark.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPManageBookmarkDlg.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPSettingsDialog.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPStatusPage.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPTreeView.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPUploadDialog.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/UI.cpp.o
[ 53%] Building CXX object SFTP/CMakeFiles/SFTP.dir/UI_sftp_bitmaps.cpp.o
[ 54%] Building CXX object SFTP/CMakeFiles/SFTP.dir/remote_file_info.cpp.o
[ 54%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp.cpp.o
[ 54%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp_item_comparator.cpp.o
[ 54%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp_worker_thread.cpp.o
[ 54%] Building CXX object SFTP/CMakeFiles/SFTP.dir/sftp_workspace_settings.cpp.o
Linking CXX shared library ../lib/SFTP.so
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
[ 54%] Built target SFTP
User avatar
eranif
CodeLite Plugin
Posts: 6165
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by eranif »

Try removing phpunittests from the build

From the file:

Code: Select all

codelitephp/CMakeLists.txt
Remove this line:

Code: Select all

add_executable(PHPUnitTests ${UNIT_TESTS_SRC})
Eran
Make sure you have read the HOW TO POST thread
nikosl7
CodeLite Curious
Posts: 4
Joined: Thu Feb 25, 2016 10:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CentOS 7 Installation fails

Post by nikosl7 »

eranif wrote:Try removing phpunittests from the build

From the file:

Code: Select all

codelitephp/CMakeLists.txt
Remove this line:

Code: Select all

add_executable(PHPUnitTests ${UNIT_TESTS_SRC})
Eran

Did not work, it stopped in a subsequent one.... :cry:

Anyway thanks for the help. If you could make in the future some more binaries for additional distros for this amazing software, it would be highly appreciated.

Thank you again for your time.
DavidGH
CodeLite Plugin
Posts: 710
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: CentOS 7 Installation fails

Post by DavidGH »

Hi,
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
That looks familiar. I've had similar problems in the past with wxWidgets builds created with --enable-stl. The reason was that wx wasn't built with cxx11 compatibility, so it used a different signature there (I forget the details).
I suggest you rebuild wx without the --enable-stl which is neither necessary or much used, then try again with CodeLite.
If you could make in the future some more binaries for additional distros
But there are hundreds of distros. I package for debian, ubuntu/mint, fedora and openSUSE which are consistently the top 5 in Distrowatch's pagehits-rank list. CentOS is some way back at no. 8 (on a 6-month view).

Regards,

David
Post Reply