Jump to content
TrinityCore

Wrong GCC version, but I have the correct GCC version...


darkseid4nk
 Share

Recommended Posts

How do I get the make files to use the correct version. According to my OS 6.3.0 is what I have configured, as you can see with gcc and g++ version output.

 

root@mcserver:~/wow/TrinityCore/build# sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-6     60        auto mode
  1            /usr/bin/gcc-4.8   60        manual mode
  2            /usr/bin/gcc-6     60        manual mode

Press enter to keep the current choice[*], or type selection number: 2
root@mcserver:~/wow/TrinityCore/build# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --disable-multilib
Thread model: posix
gcc version 6.3.0 (GCC)
root@mcserver:~/wow/TrinityCore/build# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --disable-multilib
Thread model: posix
gcc version 6.3.0 (GCC)
root@mcserver:~/wow/TrinityCore/build# cmake ../ -DCMAKE_INSTALL_PREFIX=/home/darkseid/server
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
CMake Error at cmake/compiler/gcc/settings.cmake:9 (message):
  GCC: TrinityCore requires version 6.3.0 to build but found 4.8.4
Call Stack (most recent call first):
  cmake/platform/unix/settings.cmake:29 (include)
  cmake/macros/CheckPlatform.cmake:13 (include)
  CMakeLists.txt:61 (include)


-- Configuring incomplete, errors occurred!
See also "/home/darkseid/wow/TrinityCore/build/CMakeFiles/CMakeOutput.log".
 

Link to comment
Share on other sites

  • 2 weeks later...

if you compil with centos you can export the gcc you want before run cmake

export CC=path_to_your_gcc

export CXX=path_to_your_gcc++

Always with Centos if you have installed devtoolset 7 for centos7  only run before cmake

scl enable devtoolset-7 bash

Edited by elixcyr
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...