[Solved] Problem while compiling (17%)
#1
Question 
Hey guys! Smile

I have a problem at compiling the sourcefiles. I did it like in the COMPILING.md.

Im using Linux Debian and use the following commands for compiling (or trying it):

mkdir MCServer
cd MCServer
git clone https://github.com/mc-server/MCServer.git .
git submodule init
git submodule update
mkdir Release
cd Release
----
Edit file (/home/skyroadtestserver/MCServer/lib/polarssl.cmake) to: (Because https://forum.cuberite.org/showthread.php?tid=1556 )
Code:
if(NOT TARGET polarssl)
    message("including polarssl")
    set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
    set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
    if (SELF_TEST)
        add_subdirectory(/home/skyroadtestserver/MCServer/lib/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
    else()
        add_subdirectory(/home/skyroadtestserver/MCServer/lib/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
    endif()
endif()
----

cmake -DCMAKE_BUILD_TYPE=RELEASE ..

make

Hopefully, i did everything correct..^^

But now, i get a error, i didnt found anything here, to fix it. Huh
Code:
[ 17%] Building CXX object lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/src/Column.cpp.o
cc1plus: error: unrecognized command line option "-Wsuggest-attribute=pure"
cc1plus: error: unrecognized command line option "-Wsuggest-attribute=const"
make[2]: *** [lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/src/Column.cpp.o] Error 1
make[1]: *** [lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/all] Error 2
make: *** [all] Error 2

git, cmake, gcc and g++ are installed and "already the newest version".

Im very grateful for every hint. Smile


Greetings,

Immanuel94
Reply
Thanks given by:
#2
Hello and welcome to the forum.

Would you believe that I've just run into the very same problem today?
https://github.com/mc-server/MCServer/issues/1374

I'll add a fix in a few minutes, hopefully.
Reply
Thanks given by:
#3
Sorry, next time, i search first at github for issues before asking.^^
Reply
Thanks given by:
#4
The fix is in the repo. You may need to update submodules after pulling:
Code:
git pull
git submodule update --init
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)