Cuberite Forum
[Solved] Problem while compiling (17%) - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: [Solved] Problem while compiling (17%) (/thread-1562.html)



[Solved] Problem while compiling (17%) - Immanuel94 - 09-04-2014

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


RE: Problem while compiling (17%) - xoft - 09-04-2014

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.


RE: Problem while compiling (17%) - Immanuel94 - 09-04-2014

Sorry, next time, i search first at github for issues before asking.^^


RE: [Solved] Problem while compiling (17%) - xoft - 09-04-2014

The fix is in the repo. You may need to update submodules after pulling:
Code:
git pull
git submodule update --init