mcobit / retrosmc

An easier way to get retropie onto osmc
Other
212 stars 32 forks source link

emulationstation on OSMC 2018.04-1 fails because of c++ compiler #56

Closed a2ron closed 6 years ago

a2ron commented 6 years ago
OS: OSMC 2018.4-1

Kodi fails when runs Retrosmc Launcher, something like:

opencv:exec permission denied

I got following text extract from install script output:

= = = = = = = = = = = = = = = = = = = = =
Building 'emulationstation' : EmulationStation - Frontend used by RetroPie for launching emulators
= = = = = = = = = = = = = = = = = = = = =

Removing additional swap
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is unknown
-- 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++ -- broken
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message):
  The C++ compiler "/usr/bin/c++" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/bin/make" "cmTC_ea48d/fast"

  /usr/bin/make -f CMakeFiles/cmTC_ea48d.dir/build.make
  CMakeFiles/cmTC_ea48d.dir/build

  make[1]: Entering directory
  '/home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeTmp'

  Building CXX object CMakeFiles/cmTC_ea48d.dir/testCXXCompiler.cxx.o

  /usr/bin/c++ -O2 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
  -ftree-vectorize -funsafe-math-optimizations -o
  CMakeFiles/cmTC_ea48d.dir/testCXXCompiler.cxx.o -c
  /home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  c++: internal compiler error: Illegal instruction (program cc1plus)

  Please submit a full bug report,

  with preprocessed source if appropriate.

  See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.

  CMakeFiles/cmTC_ea48d.dir/build.make:65: recipe for target
  'CMakeFiles/cmTC_ea48d.dir/testCXXCompiler.cxx.o' failed

  make[1]: *** [CMakeFiles/cmTC_ea48d.dir/testCXXCompiler.cxx.o] Error 4

  make[1]: Leaving directory
  '/home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeTmp'

  Makefile:126: recipe for target 'cmTC_ea48d/fast' failed

  make: *** [cmTC_ea48d/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)

-- Configuring incomplete, errors occurred!
See also "/home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeOutput.log".
See also "/home/osmc/RetroPie-Setup/tmp/build/emulationstation/CMakeFiles/CMakeError.log".
make: *** No rule to make target 'clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
Removing additional swap
/home/osmc/RetroPie-Setup
Could not successfully build emulationstation - EmulationStation - Frontend used by RetroPie for launching emulators (/home/osmc/RetroPie-Setup/tmp/build/emulationstation/emulationstation not found).

Any idea about it? I'm so lost...

mcobit commented 6 years ago

Looks like dependencies were not downloaded correctly. Do you have a good internet connection? I'd suggest to try the installation again.

a2ron commented 6 years ago

Yes, I did it multiple times... It seems something related to the GCC COMPILER version. I had version 4.6 but emulationstation is compiled with 4.7 I guess. I did remove gcc and install gcc-4.7 with aptitude and now it is compiling... We will see in a few minutes.

sudo aptitude install gcc-4.7
a2ron commented 6 years ago

My OS version is: OSMC 2018.4-1

a2ron commented 6 years ago

Fixed!