(SOLVED) Error Updating ES From Source
-
When updating EmulationStation from source I am running into an error. I have attached the end of my logs below in case any one has any advice as to what might be happening.
Thank you. :)
[ 85%] Building CXX object es-app/CMakeFiles/emulationstation.dir/src/guis/GuiFastSelect.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
es-app/CMakeFiles/emulationstation.dir/build.make:374: recipe for target 'es-app/CMakeFiles/emulationstation.dir/src/components/ScraperSearchComponent.cpp.o' failed
make[2]: *** [es-app/CMakeFiles/emulationstation.dir/src/components/ScraperSearchComponent.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:274: recipe for target 'es-app/CMakeFiles/emulationstation.dir/all' failed
make[1]: *** [es-app/CMakeFiles/emulationstation.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Removing additional swap
/home/pi
Could not successfully build emulationstation - EmulationStation - Frontend used by RetroPie for launching emulators (/home/pi/RetroPie-Setup/tmp/build/emulationstation/emulationstation not found).Log ended at: Sun 21 May 17:11:54 EDT 2017
Total running time: 0 hours, 11 mins, 16 secs -
@LiveFastCyYoung did you exit emulationstation first before compiling?
-
@herb_fargus I'm quitting emulatationstation and running the retropie setup from the prompt.
-
"Could not successfully build emulationstation - EmulationStation - Frontend used by RetroPie for launching emulators (/home/pi/RetroPie-Setup/tmp/build/emulationstation/emulationstation not found)."
I keep looking back at this part of the log. I can confirm that folder is not there. I tried to create it but I couldn't due to some permissions issues. Could the installer be running into the same permissions issues?
-
@LiveFastCyYoung no your compiler is probably crashing or you're running out of memory. Did you update your setup script first?
-
Yep. Setup script is updated.
I'm at a loss.
-
@LiveFastCyYoung idk, reboot and maybe try again? I am not sure what else to do either
-
I'm trying to install the RetrOSMC build (https://github.com/mcobit/retrosmc/tree/b0e9e0d86f91a255f9100abfb55c5448222b0915), and it freezes at the same line as well (Building CXX object es-app/CMakeFiles/emulationstation.dir/src/guis/GuiFastSelect.cpp.o).
Have tried 3 times now, also after updating all scripts. Any ideas?
-
@GMAX Not a clue. It's obviously a specific issue to you or RetrOSMC. Do they have a sub-reddit or a forum you could try? Most, if not all, of the regulars here use the official RetroPie image. I updated ES from source yesterday with no issues. Took about 25 minutes or so.
-
Is there a way to uninstall ES without losing everything?
I have 500GB of roms that I would really not want to transfer back.
The idea is that I would uninstall ES and reinstall and see if that works.
-
It seems my problem is definitely an issue of running out of memory. I don't know why this would be happening.
My system boots into EmulationStation. I am quitting EmulationStation right away and going to the command prompt.
Up top it shows my available resources. I only have around 550MB of memory free. I have no idea what is taking up the rest of the RAM.
Any advice on killing processes or what could be taking up all of my RAM?
-
@LiveFastCyYoung what's your GPU split in
/boot/config.txt
? -
My setup is a RPi3, 1TB WD Labs HD, 16GB MicroSD card.
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256
overscan_scale=1I was able to get the free RAM up to 700MB by clearing the RAM caches. Update still failed but did get a little further.
-
@LiveFastCyYoung Is there a way I can download an ES update to an SD card and update it from there?
-
It seems by getting to 88% or so, my ES is mostly updated. However this is now causing issues. :(
There are a couple routes I am curious about going down:
-
If I remove ES using RetroPie_Setup.sh and install it again while in there from binary, what's the worst that could happen? It wouldn't delete my RetroPie folder would it?
-
Is there a way to get ES from source on my computer and install it via an SD card?
-
-
@LiveFastCyYoung Any advice for the last two questions?
-
@LiveFastCyYoung as others have also noted, the
internal compiler error
in your first post is caused by the low amount of RAM. Compiling can be memory intensive, so you might want to increase it as much as you can (change the GPU/RAM split, kill running programs).According to the setup script, uninstalling ES removes the binary and the config files. The RetroPie folder is not touched (unless there's an unknown side effect I'm not aware of).
You may build ES on your desktop PC, then transfer it to the Pi, but the process is considered as black magic and requires you to sacrifice your sanity on the altar of the Soul-Eating Compiler Demons.
-
@fluffypillow Thanks for the reply!
I have been able to free up to 700MB of RAM but it's still failing at 88%.
As far as the GPU/RAM split, what would you recommend other than the default?
-
@LiveFastCyYoung Just update from Binary.
-
@LiveFastCyYoung Allocate as much RAM as you can while you're building; if I remember correctly, you can set the GPU memory as low as 64 MB. 700 MB should be more than fine though, I wonder if there's something else in the logs...
Or you could also just update from binary.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.