Page 1 of 2

edb-debugger install any ideas

Posted: 2020/03/05 13:15:48
by mikeburr
trying to install edb -debugger on centos 7
have recent gcc installed so....

scl enable devtoolset-8 bash
sudo cmake3 ..

CMake Error at CMakeLists.txt:22 (message):
Your g++ version is too old. At least 5.0 is required.

but sadly its not !!!...

which gcc
shows ....
/opt/rh/devtoolset-8/root/usr/bin/gcc
and
gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)

anyone any ideas how to get past this
thanks mikeb

Re: edb-debugger install any ideas

Posted: 2020/03/05 15:05:09
by sml
mikeburr wrote:
2020/03/05 13:15:48
sudo cmake3 ..
Omit sudo.

Re: edb-debugger install any ideas

Posted: 2020/03/05 16:30:31
by mikeburr
cmake3 without sudo !! afraid not permissions error

Re: edb-debugger install any ideas

Posted: 2020/03/05 16:39:19
by TrevorH
Then you did something wrong. Perhaps you untarred your source as root too? Building should never be done as root. Installation is a different matter so when you need to do the equivalent of make install then you will need to do sudo. But to build from source and not install it, no.

Re: edb-debugger install any ideas

Posted: 2020/03/05 16:53:45
by mikeburr
here are the first few lines of the CmakeLists.txt file

if(NOT EXISTS "${PROJECT_SOURCE_DIR}/src/qhexview/.git")
message(SEND_ERROR "The git submodules are not available. Please run:\ngit submodule update --init --recursive")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")

include("GNUInstallDirs")
include("CheckIncludeFileCXX")
include("DetectCompiler")
include("DetectOS")
include("DetectArchitecture")
include("EnableSanitizers")
include("EnableSTLDebug")
include("ProjectDefaults")

if(TARGET_COMPILER_GCC AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 5.0)
message(FATAL_ERROR "Your g++ version is too old. At least 5.0 is required.")
endif()

Re: edb-debugger install any ideas

Posted: 2020/03/05 17:10:13
by mikeburr
@Trevor & sml
ownership makes no difference
its pretty obvious from the statement listed its defaulting somehow to gcc 4 not gcc 8 etc .. ie scl related
thanks as i certainly wouldnt have thought permissions in any way caused this problem but it was worth a try

Re: edb-debugger install any ideas

Posted: 2020/03/05 18:11:54
by TrevorH
It's defaulting to that because you used sudo which clears most environment variables before it invokes whatever it was that you sudo'ed. Among those will be all the modifications that the scl command set up to make it work.

So don't use sudo and then it will invoke the right gcc. If it then gives permission errors then that's likely to be because the files are not owned by your user.

Re: edb-debugger install any ideas

Posted: 2020/03/05 19:13:51
by mikeburr
im not sure whether im missing something here but did you notice that i posted the running gcc underneath the fault this being gcc 8 .. in hich case ive no idea what youre driving at .. gcc 8 is running and sb the compiler in force.. the log actually shows gcc4 being used .. this doesnt strike me as a permissions problem but a config / parameter error somewhere ???
regards mike b

Re: edb-debugger install any ideas

Posted: 2020/03/05 19:15:45
by mikeburr
ps i ran it without using sudo .. the permissions are all user:user [not root] on the datasets so i dont think this is the issue

Re: edb-debugger install any ideas

Posted: 2020/03/05 19:34:35
by aks
Usually you can "influence" which compiler is chosen through env. vars. CXX_COMPILER=<full_path> for C++ & C_COMPILER for C (but those variables are from memory, check the man pages and/or the Makefile). Just remember to export the variables before hand.
Or possibly the $PATH ...