Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling on Ubuntu #19

Closed
timgriffin opened this issue Mar 21, 2017 · 13 comments
Closed

Issue compiling on Ubuntu #19

timgriffin opened this issue Mar 21, 2017 · 13 comments

Comments

@timgriffin
Copy link

timgriffin commented Mar 21, 2017

Hi,

I'm able to get to 99% but unfortunately it fails at the end. Any ideas?

tim@matlab:/Downloads/Retro-Learning-Environment$ mkdir build && cd build
tim@matlab:
/Downloads/Retro-Learning-Environment/build$ cmake -DUSE_SDL=ON -DBUILD_EXAMPLES=ON ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for 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/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15")
sdl_library:/usr/lib/x86_64-linux-gnu/libSDLmain.a/usr/lib/x86_64-linux-gnu/libSDL.so-lpthread
-- INCLUDE_DIR /usr/local/include/rle
-- LIBRARY_DIR /usr/local/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tim/Downloads/Retro-Learning-Environment/build
tim@matlab:~/Downloads/Retro-Learning-Environment/build$ make -j 4
Scanning dependencies of target stella_libretro
Scanning dependencies of target rle-lib
Scanning dependencies of target rle-c-lib
Scanning dependencies of target snes9x2010_libretro
[ 0%] Creating directories for 'stella_libretro'
[ 1%] Creating directories for 'snes9x2010_libretro'
[ 2%] Building CXX object CMakeFiles/rle-lib.dir/src/rle_interface.cpp.o
[ 3%] Building CXX object CMakeFiles/rle-c-lib.dir/rle_python_interface/rle_c_wrapper.cpp.o
[ 4%] Performing download step (git clone) for 'stella_libretro'
[ 5%] Performing download step (git clone) for 'snes9x2010_libretro'
Cloning into 'snes9x2010'...
Cloning into 'stella-libretro'...
[ 6%] Building CXX object CMakeFiles/rle-c-lib.dir/src/rle_interface.cpp.o
[ 6%] Building CXX object CMakeFiles/rle-lib.dir/src/common/ScreenExporter.cpp.o
[ 7%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/ScreenExporter.cpp.o
[ 8%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Log.cpp.o
[ 9%] Building CXX object CMakeFiles/rle-lib.dir/src/common/SoundExporter.cpp.o
[ 9%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Log.cpp.o
[ 10%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Constants.cpp.o
[ 11%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/SoundExporter.cpp.o
[ 12%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Constants.cpp.o
[ 13%] Building CXX object CMakeFiles/rle-lib.dir/src/common/display_screen.cpp.o
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 14%] No patch step for 'stella_libretro'
[ 15%] No update step for 'stella_libretro'
[ 16%] No configure step for 'stella_libretro'
[ 17%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/display_screen.cpp.o
[ 18%] Performing build step for 'stella_libretro'
[ 19%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RetroAgent.cpp.o
[ 20%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RetroAgent.cpp.o
[ 20%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RleSystem.cxx.o
[ 21%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RleSystem.cxx.o
[ 22%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Deserializer.cxx.o
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 23%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/retro_environment.cpp.o
[ 23%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Deserializer.cxx.o
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 24%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/retro_environment.cpp.o
[ 25%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/phosphor_blend.cpp.o
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 26%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/phosphor_blend.cpp.o
[ 27%] No patch step for 'snes9x2010_libretro'
[ 27%] No update step for 'snes9x2010_libretro'
[ 28%] No configure step for 'snes9x2010_libretro'
[ 29%] Performing build step for 'snes9x2010_libretro'
src/apu.c: In function ‘spc_copier_copy_int’:
src/apu.c:1240:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
SET_LE16( s, state );
^
src/apu.c:1242:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return GET_LE16( s );
^
[ 30%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Random.cxx.o
[ 31%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_screen.cpp.o
[ 32%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Random.cxx.o
[ 33%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_screen.cpp.o
[ 33%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_ram.cpp.o
[ 34%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_state.cpp.o
[ 35%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_ram.cpp.o
[ 35%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_state.cpp.o
[ 36%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/FSNode.cxx.o
[ 37%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/FSNode.cxx.o
[ 38%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Serializer.cxx.o
[ 39%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Settings.cxx.o
[ 40%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Serializer.cxx.o
[ 41%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Settings.cxx.o
[ 41%] Building CXX object CMakeFiles/rle-lib.dir/src/games/SnesSettings.cpp.o
[ 42%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/SnesSettings.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-lib.dir/src/games/GenesisSettings.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/GenesisSettings.cpp.o
[ 44%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomSettings.cpp.o
[ 45%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomSettings.cpp.o
[ 46%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomUtils.cpp.o
[ 47%] Building CXX object CMakeFiles/rle-lib.dir/src/games/AtariSettings.cpp.o
[ 48%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomUtils.cpp.o
[ 49%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/AtariSettings.cpp.o
[ 50%] Building CXX object CMakeFiles/rle-lib.dir/src/games/Roms.cpp.o
[ 51%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/Roms.cpp.o
[ 51%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
[ 52%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
[ 53%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/AtariCollection.cpp.o
src/memmap.c: In function ‘HeaderRemove’:
src/memmap.c:747:3: warning: value computed is not used [-Wunused-value]
(headerCount)++;
^
[ 53%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/AtariCollection.cpp.o
[ 54%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 55%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 56%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
[ 57%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
[ 58%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Seaquest.cpp.o
[ 59%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Seaquest.cpp.o
[ 60%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/BustAMove.cpp.o
[ 61%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/BustAMove.cpp.o
[ 61%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 62%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 64%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
[ 65%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
[ 66%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 67%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 68%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Aladdin.cpp.o
[ 69%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Aladdin.cpp.o
[ 70%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Boxing.cpp.o
[ 71%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Boxing.cpp.o
[ 72%] No install step for 'stella_libretro'
[ 73%] Completed 'stella_libretro'
[ 73%] Built target stella_libretro
Scanning dependencies of target genesis_plus_gx_libretro
[ 74%] Creating directories for 'genesis_plus_gx_libretro'
[ 74%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
[ 75%] Performing download step (git clone) for 'genesis_plus_gx_libretro'
Cloning into 'Genesis-Plus-GX'...
[ 76%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
[ 77%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 77%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 78%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FinalFight.cpp.o
[ 79%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FinalFight.cpp.o
[ 80%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/GradiusIII.cpp.o
[ 81%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/GradiusIII.cpp.o
[ 82%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 83%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 83%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZero.cpp.o
[ 84%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZero.cpp.o
[ 85%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/ClassicKong.cpp.o
[ 85%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/ClassicKong.cpp.o
[ 86%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
[ 87%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
[ 88%] Building C object CMakeFiles/rle-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 89%] Building CXX object CMakeFiles/rle-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
[ 90%] Building C object CMakeFiles/rle-c-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 91%] Building CXX object CMakeFiles/rle-c-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
[ 92%] Linking CXX shared library ../librle.so
[ 93%] Linking CXX shared library ../rle_python_interface/librle_c.so
[ 93%] Built target rle-lib
Scanning dependencies of target sharedLibraryInterfaceExample
[ 93%] Building CXX object CMakeFiles/sharedLibraryInterfaceExample.dir/doc/examples/sharedLibraryInterfaceExample.cpp.o
[ 93%] Built target rle-c-lib
libretro/libretro.c: In function ‘snes_init’:
libretro/libretro.c:619:4: warning: ignoring return value of ‘posix_memalign’, declared with attribute warn_unused_result [-Wunused-result]
posix_memalign((void
*)&GFX.Screen, 16, GFX.Pitch * 512 * sizeof(uint16));
^
[ 94%] Linking CXX executable ../doc/examples/sharedLibraryInterfaceExample
[ 94%] Built target sharedLibraryInterfaceExample
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 95%] No update step for 'genesis_plus_gx_libretro'
[ 95%] No patch step for 'genesis_plus_gx_libretro'
[ 96%] No configure step for 'genesis_plus_gx_libretro'
[ 97%] Performing build step for 'genesis_plus_gx_libretro'
make[3]: *** No targets specified and no makefile found. Stop.
CMakeFiles/genesis_plus_gx_libretro.dir/build.make:111: recipe for target 'genesis_plus_gx_libretro-prefix/src/genesis_plus_gx_libretro-stamp/genesis_plus_gx_libretro-build' failed
make[2]: *** [genesis_plus_gx_libretro-prefix/src/genesis_plus_gx_libretro-stamp/genesis_plus_gx_libretro-build] Error 2
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/genesis_plus_gx_libretro.dir/all' failed
make[1]: *** [CMakeFiles/genesis_plus_gx_libretro.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] No install step for 'snes9x2010_libretro'
[ 99%] Completed 'snes9x2010_libretro'
[ 99%] Built target snes9x2010_libretro
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@nadavbh12
Copy link
Owner

This is due to an issue with Genesis-Plus-Gx ekeeke/Genesis-Plus-GX/issues/125 .
If it will take too long to fix, I'll write a workaround.

@nadavbh12
Copy link
Owner

@timgriffin, My last commit should fix this issue.
Let me know if the problem persists.

@jmichaux
Copy link

Still having trouble compiling on Ubuntu on AWS.

@nadavbh12
Copy link
Owner

Please copy the make log so I can have a look.

@nadavbh12 nadavbh12 reopened this Mar 23, 2017
@jmichaux
Copy link

ubuntu@ip-171-39-66-4:/Retro-Learning-Environment/build$ cmake -DUSE_SDL=ON -DBUILD_EXAMPLES=ON ..
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15")
sdl_library:/usr/lib/x86_64-linux-gnu/libSDLmain.a/usr/lib/x86_64-linux-gnu/libSDL.so-lpthread
-- INCLUDE_DIR /usr/local/include/rle
-- LIBRARY_DIR /usr/local/lib
-- Found Git: /usr/bin/git (found version "1.9.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/Retro-Learning-Environment/build
ubuntu@ip-171-39-66-4:
/Retro-Learning-Environment/build$ make -j 4
Scanning dependencies of target genesis_plus_gx_libretro
Scanning dependencies of target rle-c-lib
Scanning dependencies of target snes9x2010_libretro
Scanning dependencies of target rle-lib
[ 1%] [ 1%] Creating directories for 'genesis_plus_gx_libretro'
Creating directories for 'snes9x2010_libretro'
[ 2%] Building CXX object CMakeFiles/rle-c-lib.dir/rle_python_interface/rle_c_wrapper.cpp.o
[ 3%] Building CXX object CMakeFiles/rle-lib.dir/src/rle_interface.cpp.o
[ 4%] Performing download step (git clone) for 'genesis_plus_gx_libretro'
[ 5%] Performing download step (git clone) for 'snes9x2010_libretro'
Cloning into 'Genesis-Plus-GX'...
Cloning into 'snes9x2010'...
remote: Counting objects: 9257, done.
remote: Counting objects: 7096, done.
remote: Total 7096 (delta 0), reused 0 (delta 0), pack-reused 7096
Receiving objects: 100% (7096/7096), 31.21 MiB | 16.76 MiB/s, done.
Resolving deltas: 100% (4959/4959), done.5 MiB | 16.94 MiB/s
remote: Total 9257 (delta 0), reused 0 (delta 0), pack-reused 9256
Receiving objects: 100% (9257/9257), 53.84 MiB | 17.60 MiB/s, done.
Resolving deltas: 100% (6671/6671), done.
Checking connectivity... done.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Checking connectivity... done.
[ 6%] No patch step for 'snes9x2010_libretro'
[ 7%] No update step for 'snes9x2010_libretro'
[ 8%] No configure step for 'snes9x2010_libretro'
[ 9%] Performing build step for 'snes9x2010_libretro'
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 10%] No patch step for 'genesis_plus_gx_libretro'
[ 11%] No update step for 'genesis_plus_gx_libretro'
[ 11%] No configure step for 'genesis_plus_gx_libretro'
[ 12%] Performing build step for 'genesis_plus_gx_libretro'
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
src/apu.c: In function ‘spc_copier_copy_int’:
src/apu.c:1240:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
SET_LE16( s, state );
^
src/apu.c:1242:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return GET_LE16( s );
^
[ 13%] Building CXX object CMakeFiles/rle-c-lib.dir/src/rle_interface.cpp.o
[ 14%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Constants.cpp.o
[ 15%] Building CXX object CMakeFiles/rle-lib.dir/src/common/SoundExporter.cpp.o
[ 16%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Constants.cpp.o
[ 17%] Building CXX object CMakeFiles/rle-lib.dir/src/common/display_screen.cpp.o
[ 18%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/SoundExporter.cpp.o
[ 19%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/display_screen.cpp.o
[ 19%] Building CXX object CMakeFiles/rle-lib.dir/src/common/ScreenExporter.cpp.o
[ 19%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/ScreenExporter.cpp.o
[ 20%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Log.cpp.o
[ 21%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/phosphor_blend.cpp.o
[ 22%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Log.cpp.o
[ 23%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/FSNode.cxx.o
[ 24%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/phosphor_blend.cpp.o
[ 25%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RetroAgent.cpp.o
[ 26%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/FSNode.cxx.o
[ 27%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RleSystem.cxx.o
[ 28%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RetroAgent.cpp.o
[ 28%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/retro_environment.cpp.o
[ 29%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RleSystem.cxx.o
src/dsp.c: In function ‘DSP4_READ_WORD’:
src/dsp.c:3307:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
out = READ_WORD(DSP4.parameters + DSP4.in_index);
^
src/dsp.c: In function ‘DSP4_READ_DWORD’:
src/dsp.c:3317:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
out = READ_DWORD(DSP4.parameters + DSP4.in_index);
^
src/dsp.c: In function ‘DSP4_OP01’:
src/dsp.c:3416:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((DSP4.world_x + DSP4.world_xenv) >> 16);
^
src/dsp.c:3417:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_x2);
^
src/dsp.c:3418:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.world_y >> 16);
^
src/dsp.c:3419:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_y2);
^
src/dsp.c:3444:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:3470:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[0][0]);
^
src/dsp.c:3471:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((y_scroll + 0x8000) >> 16);
^
src/dsp.c:3472:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((x_scroll + 0x8000) >> 16);
^
src/dsp.c: In function ‘DSP4_OP07’:
src/dsp.c:3634:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_x2);
^
src/dsp.c:3635:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_y2);
^
src/dsp.c:3660:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:3686:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[0][0]);
^
src/dsp.c:3687:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((y_scroll + 0x8000) >> 16);
^
src/dsp.c:3688:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((x_scroll + 0x8000) >> 16);
^
src/dsp.c: In function ‘DSP4_OP08’:
src/dsp.c:3861:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(win_left & 0xff);
^
src/dsp.c:3862:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(win_right & 0xff);
^
src/dsp.c:3941:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:4022:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[polygon][0]);
^
src/dsp.c:4023:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(x_left & 0xff);
^
src/dsp.c:4024:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(x_right & 0xff);
^
src/dsp.c:4042:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(0);
^
src/dsp.c: In function ‘DSP4_OP0B’:
src/dsp.c:4092:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(1);
^
src/dsp.c:4095:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(sp_x & 0xff);
^
src/dsp.c:4096:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_BYTE(sp_y & 0xff);
^
src/dsp.c:4097:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(sp_attr);
^
src/dsp.c:4119:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(0);
^
src/dsp.c: In function ‘DSP4_OP09’:
src/dsp.c:4233:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(world_spx);
^
src/dsp.c: In function ‘DSP4_OP0D’:
src/dsp.c:4444:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((DSP4.world_x + DSP4.world_xenv) >> 16);
^
src/dsp.c:4445:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_x2);
^
src/dsp.c:4446:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.world_y >> 16);
^
src/dsp.c:4447:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_y2);
^
src/dsp.c:4473:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:4500:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[0][0]);
^
src/dsp.c:4501:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((y_scroll + 0x8000) >> 16);
^
src/dsp.c:4502:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((x_scroll + 0x8000) >> 16);
^
src/dsp.c: In function ‘DSP4_OP0F’:
src/dsp.c:4636:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((DSP4.world_x + DSP4.world_xenv) >> 16);
^
src/dsp.c:4637:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_x2);
^
src/dsp.c:4638:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.world_y >> 16);
^
src/dsp.c:4639:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_y2);
^
src/dsp.c:4665:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:4701:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(color);
^
src/dsp.c:4725:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[0][0]);
^
src/dsp.c:4726:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((y_scroll + 0x8000) >> 16);
^
src/dsp.c:4727:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((x_scroll + 0x8000) >> 16);
^
src/dsp.c: In function ‘DSP4_OP10’:
src/dsp.c:4872:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_x2);
^
src/dsp.c:4873:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.view_y2);
^
src/dsp.c:4898:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.segments);
^
src/dsp.c:4931:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(color);
^
src/dsp.c:4962:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(DSP4.poly_ptr[0][0]);
^
src/dsp.c:4963:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((y_scroll + 0x8000) >> 16);
^
src/dsp.c:4964:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD((x_scroll + 0x8000) >> 16);
^
src/dsp.c: In function ‘DSP4_SetByte’:
src/dsp.c:5096:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(product);
^
src/dsp.c:5097:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(product >> 16);
^
src/dsp.c:5149:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(out1a);
^
src/dsp.c:5150:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(out2a);
^
src/dsp.c:5151:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(out3a);
^
src/dsp.c:5152:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(out4a);
^
src/dsp.c:5204:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DSP4_WRITE_WORD(m);
^
[ 30%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_screen.cpp.o
[ 30%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/retro_environment.cpp.o
[ 31%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Deserializer.cxx.o
[ 32%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_screen.cpp.o
/home/ubuntu/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/ubuntu/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 33%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Settings.cxx.o
[ 34%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Deserializer.cxx.o
/home/ubuntu/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/ubuntu/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 35%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Settings.cxx.o
[ 36%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Serializer.cxx.o
[ 37%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_ram.cpp.o
[ 38%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_state.cpp.o
[ 39%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Serializer.cxx.o
src/memmap.c: In function ‘HeaderRemove’:
src/memmap.c:747:3: warning: value computed is not used [-Wunused-value]
(headerCount)++;
^
[ 40%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_ram.cpp.o
[ 40%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Random.cxx.o
[ 41%] Building CXX object CMakeFiles/rle-lib.dir/src/games/SnesSettings.cpp.o
[ 42%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_state.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-lib.dir/src/games/AtariSettings.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Random.cxx.o
[ 44%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/SnesSettings.cpp.o
[ 45%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomUtils.cpp.o
[ 46%] Building CXX object CMakeFiles/rle-lib.dir/src/games/GenesisSettings.cpp.o
[ 47%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/AtariSettings.cpp.o
[ 48%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomSettings.cpp.o
[ 49%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomUtils.cpp.o
[ 50%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/GenesisSettings.cpp.o
[ 50%] Building CXX object CMakeFiles/rle-lib.dir/src/games/Roms.cpp.o
[ 51%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomSettings.cpp.o
[ 51%] [ 52%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/ClassicKong.cpp.o
Building CXX object CMakeFiles/rle-c-lib.dir/src/games/Roms.cpp.o
[ 53%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/ClassicKong.cpp.o
[ 54%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZero.cpp.o
[ 55%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZero.cpp.o
[ 56%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 57%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 58%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 59%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 60%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 61%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 62%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/AtariCollection.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/AtariCollection.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Seaquest.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Seaquest.cpp.o
[ 64%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
[ 65%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
core/cd_hw/cdd.c: In function ‘cdd_load’:
core/cd_hw/cdd.c:313:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(header, 0x10, 1, fd);
^
core/cd_hw/cdd.c:324:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(header, 0x10, 1, fd);
^
core/cd_hw/cdd.c:338:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(header + 0x10, 0x200, 1, fd);
^
core/cd_hw/cdd.c:453:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(head, 28, 1, cdd.toc.tracks[cdd.toc.last].fd);
^
core/cd_hw/cdd.c:550:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(header, 0x210, 1, cdd.toc.tracks[0].fd);
^
core/cd_hw/cdd.c:726:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(head, 28, 1, fd);
^
core/cd_hw/cdd.c:771:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(head, 4, 1, fd);
^
core/cd_hw/cdd.c: In function ‘cdd_read_data’:
core/cd_hw/cdd.c:1054:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(dst, 2048, 1, cdd.toc.tracks[0].fd);
^
core/cd_hw/cdd.c: In function ‘cdd_read_audio’:
core/cd_hw/cdd.c:1142:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(cdc.ram, 1, samples * 4, cdd.toc.tracks[cdd.index].fd);
^
core/cd_hw/cdd.c: In function ‘cdd_read_subcode’:
core/cd_hw/cdd.c:1220:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(subc, 1, 96, cdd.toc.sub);
^
[ 66%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 67%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 68%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Boxing.cpp.o
[ 69%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Boxing.cpp.o
[ 70%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Aladdin.cpp.o
[ 71%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Aladdin.cpp.o
[ 72%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FinalFight.cpp.o
core/cart_hw/svp/ssp16.c: In function ‘read_PM0’:
core/cart_hw/svp/ssp16.c:222:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:602:20: note: in expansion of macro ‘GET_PPC_OFFS’
if (!(d & 2) && (GET_PPC_OFFS() == 0x800 || GET_PPC_OFFS() == 0x1851E)) {
^
core/cart_hw/svp/ssp16.c:222:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:602:20: note: in expansion of macro ‘GET_PPC_OFFS’
if (!(d & 2) && (GET_PPC_OFFS() == 0x800 || GET_PPC_OFFS() == 0x1851E)) {
^
core/cart_hw/svp/ssp16.c:222:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:602:47: note: in expansion of macro ‘GET_PPC_OFFS’
if (!(d & 2) && (GET_PPC_OFFS() == 0x800 || GET_PPC_OFFS() == 0x1851E)) {
^
core/cart_hw/svp/ssp16.c:222:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:602:47: note: in expansion of macro ‘GET_PPC_OFFS’
if (!(d & 2) && (GET_PPC_OFFS() == 0x800 || GET_PPC_OFFS() == 0x1851E)) {
^
core/cart_hw/svp/ssp16.c: In function ‘read_PM4’:
core/cart_hw/svp/ssp16.c:222:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:697:13: note: in expansion of macro ‘GET_PPC_OFFS’
switch (GET_PPC_OFFS()) {
^
core/cart_hw/svp/ssp16.c:222:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
^
core/cart_hw/svp/ssp16.c:697:13: note: in expansion of macro ‘GET_PPC_OFFS’
switch (GET_PPC_OFFS()) {
^
[ 73%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FinalFight.cpp.o
[ 73%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 73%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 74%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
[ 75%] [ 76%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 77%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 78%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
[ 79%] [ 80%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/GradiusIII.cpp.o
Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
libretro/libretro.c: In function ‘load_archive’:
libretro/libretro.c:227:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, CHUNKSIZE, 1, fd);
^
libretro/libretro.c:233:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, left, 1, fd);
^
libretro/libretro.c: In function ‘bram_load’:
libretro/libretro.c:561:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(scd.bram, 0x2000, 1, fp);
^
libretro/libretro.c:602:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(scd.cartridge.area + done, CHUNKSIZE, 1, fp);
^
libretro/libretro.c:610:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(scd.cartridge.area + done, filesize, 1, fp);
^
[ 81%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/BustAMove.cpp.o
[ 82%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/GradiusIII.cpp.o
[ 83%] No install step for 'genesis_plus_gx_libretro'
[ 83%] Completed 'genesis_plus_gx_libretro'
[ 83%] Built target genesis_plus_gx_libretro
Scanning dependencies of target stella_libretro
[ 84%] Creating directories for 'stella_libretro'
[ 85%] [ 86%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/BustAMove.cpp.o
Performing download step (git clone) for 'stella_libretro'
Cloning into 'stella-libretro'...
[ 87%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
remote: Counting objects: 1985, done.
[ 88%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
remote: Total 1985 (delta 0), reused 0 (delta 0), pack-reused 1985
Receiving objects: 100% (1985/1985), 3.89 MiB | 7.36 MiB/s, done.
Resolving deltas: 100% (981/981), done.
Checking connectivity... done.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 88%] [ 89%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
No patch step for 'stella_libretro'
[ 90%] No update step for 'stella_libretro'
[ 91%] No configure step for 'stella_libretro'
[ 92%] Performing build step for 'stella_libretro'
[ 92%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
[ 93%] Building C object CMakeFiles/rle-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 94%] Building CXX object CMakeFiles/rle-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
[ 95%] Building C object CMakeFiles/rle-c-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 96%] Building CXX object CMakeFiles/rle-c-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
Linking CXX shared library ../librle.so
Linking CXX shared library ../rle_python_interface/librle_c.so
[ 96%] Built target rle-lib
Scanning dependencies of target sharedLibraryInterfaceExample
[ 97%] Building CXX object CMakeFiles/sharedLibraryInterfaceExample.dir/doc/examples/sharedLibraryInterfaceExample.cpp.o
[ 97%] Built target rle-c-lib
Linking CXX executable ../doc/examples/sharedLibraryInterfaceExample
[ 97%] Built target sharedLibraryInterfaceExample
libretro/libretro.c: In function ‘snes_init’:
libretro/libretro.c:619:18: warning: ignoring return value of ‘posix_memalign’, declared with attribute warn_unused_result [-Wunused-result]
posix_memalign((void
*)&GFX.Screen, 16, GFX.Pitch * 512 * sizeof(uint16));
^
[ 98%] No install step for 'snes9x2010_libretro'
[ 99%] Completed 'snes9x2010_libretro'
[ 99%] Built target snes9x2010_libretro
[ 99%] No install step for 'stella_libretro'
[100%] Completed 'stella_libretro'
[100%] Built target stella_libretro

@nadavbh12
Copy link
Owner

Well it looks like you compiled everything.
Am I missing something?

@jmichaux
Copy link

jmichaux commented Mar 24, 2017

Sorry. I was confused by all of the warnings. I installed the Python interface instead using pip install --user . command. The install seemed successful. However, I got the following error when I tried to import RLEInterface

In [1]: from rle_python_interface import RLEInterface

OSError Traceback (most recent call last)
in ()
----> 1 from rle_python_interface import RLEInterface

/home/ubuntu/Retro-Learning-Environment/rle_python_interface/rle_python_interface.py in ()
11
12 rle_lib = cdll.LoadLibrary(os.path.join(os.path.dirname(file),
---> 13 'librle_c.so'))
14
15 rle_lib.RLE_new.argtypes = None

/home/ubuntu/anaconda3/lib/python3.5/ctypes/init.py in LoadLibrary(self, name)
423
424 def LoadLibrary(self, name):
--> 425 return self._dlltype(name)
426
427 cdll = LibraryLoader(CDLL)

/home/ubuntu/anaconda3/lib/python3.5/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error)
345
346 if handle is None:
--> 347 self._handle = _dlopen(self._name, mode)
348 else:
349 self._handle = handle

OSError: /home/ubuntu/Retro-Learning-Environment/rle_python_interface/librle_c.so: cannot open shared object file: No such file or directory

Note I think I have found librle_c.so here: /home/ubuntu/.local/lib/python3.5/site-packages/rle_python_interface/librle_c.so

@nadavbh12
Copy link
Owner

Looks like while you've installed the library in /home/ubuntu/.local/lib/python3.5/site-packages/rle_python_interface/ the imported python file rle_python_interface is located in /home/ubuntu/Retro-Learning-Environment/rle_python_interface.
This is why he can't find the shared library (so) file.

You should open Python from a different dir such that the imported rle_python_interface.py file is the installed on.
By the way, you can also install RLE using `pip install rle-python-interface'. I'll add that to the doc...

@jmichaux
Copy link

Thanks, I tried from a different directory and I got this error:

In [1]: from rle_python_interface import RLEInterface

ImportError Traceback (most recent call last)
in ()
----> 1 from rle_python_interface import RLEInterface

ImportError: cannot import name 'RLEInterface'

@nadavbh12
Copy link
Owner

These errors are usually caused due to circular dependencies or PYTHONPATH issues.
I'd recommend to uninstall and the reinstall the package. If that doesn't work.
Look into your setup or google to see what may be causing this. I don't think it is related to the package.

@nadavbh12
Copy link
Owner

@jmichaux - is everything working now?
Regarding the seed issue, check this out.

@jmichaux
Copy link

Yes, I think everything is working now. Thanks a lot!

@nadavbh12
Copy link
Owner

Great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants