svenstaro / dwarf_fortress_unfuck

Unfucking Dwarf Fortress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build on Gentoo - [CMakeFiles/graphics.dir/g_src/enabler.cpp.o] Error 1

Eregus opened this issue · comments

I'm on gentoo and somehow I can't compile it. I'm stuck at the last step. I have all dependencies installed (emul-linux-x86-sdl, emul-linux-x86-baselibs, emul-linux-x86-xlibs, emul-linux-x86-gtklibs).

eregus@enterprise ~/dwarf_fortress_unfuck/build $ cmake ..
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- 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
Detected 64bit build arch. Setting 32bit build options.
This requires a multilib cross-compiler. Let's hope you have one.
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL: /usr/lib/libGL.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread (found version "1.2.15") 
-- Found SDL_image: /usr/lib/libSDL_image.so (found version "1.2.12") 
-- Found SDL_ttf: /usr/lib/libSDL_ttf.so (found version "2.0.11") 
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so  
-- Found GLEW: /usr/include  
-- Found OpenAL: /usr/lib/libopenal.so  
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.5.4") 
-- Looking for wsyncup in /usr/lib/libcurses.so
-- Looking for wsyncup in /usr/lib/libcurses.so - found
-- Looking for cbreak in /usr/lib/libncurses.so
-- Looking for cbreak in /usr/lib/libncurses.so - found
-- Found Curses: /usr/lib/libncurses.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eregus/dwarf_fortress_unfuck/build
eregus@enterprise ~/dwarf_fortress_unfuck/build $ make -j4
Scanning dependencies of target graphics
[  5%] [ 10%] Building CXX object CMakeFiles/graphics.dir/g_src/basics.cpp.o
Building CXX object CMakeFiles/graphics.dir/g_src/command_line.cpp.o
[ 15%] [ 20%] Building CXX object CMakeFiles/graphics.dir/g_src/enabler.cpp.o
Building CXX object CMakeFiles/graphics.dir/g_src/enabler_input.cpp.o
In file included from /home/eregus/dwarf_fortress_unfuck/g_src/enabler.cpp:115:0:
/home/eregus/dwarf_fortress_unfuck/g_src/renderer_curses.cpp: In member function ‘virtual void renderer_curses::update_tile(int, int)’:
/home/eregus/dwarf_fortress_unfuck/g_src/renderer_curses.cpp:101:38: error: ‘mvwaddwstr’ was not declared in this scope
       mvwaddwstr(*stdscr_p, y, x, chs);
                                      ^
[ 25%] Building CXX object CMakeFiles/graphics.dir/g_src/files.cpp.o
/home/eregus/dwarf_fortress_unfuck/g_src/enabler_input.cpp: In member function ‘void enabler_inputst::add_input(SDL_Event&, Uint32)’:
/home/eregus/dwarf_fortress_unfuck/g_src/enabler_input.cpp:522:81: warning: narrowing conversion of ‘next_serial()’ from ‘Time {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
       Event e = {REPEAT_NOT, (InterfaceKey)INTERFACEKEY_OPTIONS, 0, next_serial(), now, 0};
                                                                                 ^
/home/eregus/dwarf_fortress_unfuck/g_src/enabler_input.cpp:522:90: warning: narrowing conversion of ‘now’ from ‘Uint32 {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
       Event e = {REPEAT_NOT, (InterfaceKey)INTERFACEKEY_OPTIONS, 0, next_serial(), now, 0};
                                                                                          ^
/home/eregus/dwarf_fortress_unfuck/g_src/enabler_input.cpp: In member function ‘void enabler_inputst::add_input_refined(KeyEvent&, Uint32, int)’:
/home/eregus/dwarf_fortress_unfuck/g_src/enabler_input.cpp:689:77: warning: narrowing conversion of ‘now’ from ‘Uint32 {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
       Event e = {key_repeat(*k), *k, 0, serial, now, enabler.simticks.read()};
                                                                             ^
[ 30%] Building CXX object CMakeFiles/graphics.dir/g_src/find_files_posix.cpp.o
make[2]: *** [CMakeFiles/graphics.dir/g_src/enabler.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/graphics.dir/all] Error 2
make: *** [all] Error 2
eregus@enterprise ~/dwarf_fortress_unfuck/build $

See #1. Also see the upstream cmake bug linked from there. It's cmake that's fucked here but you can try reporting a bug against gentoo, too.