Intel NUC11TNKI5 - building problem
-
Hello,
I've encountered a problem with the installation of Retropie on Ubuntu 20.04. I followed these steps: https://retropie.org.uk/docs/Debian/ and I can not perform basic installation because I've got a lot of building errors. If I try to manually install a package, it is also unsuccessful. It was a clean Ubuntu installation at first, nothing was changed and everything is up to date.
I was searching through log files and it seems that I've got a problem with C99 compiler, but gcc is installed. I also performed "sudo apt install build-essential" command and Kernel 5 update. It does not helped. I was searching for hours, but without any success. It is weird because I installed Retropie on NUC8i5BEK without any problems.
Error log file:
Log started at: Ut 21. december 2021, 17:58:31 CET
RetroPie-Setup version: 4.7.19 (0afb041)
System: x86 (x86_64) - Ubuntu 20.04.3 LTS - Linux Retropie 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =/home/retropie/RetroPie-Setup/tmp/build/retroarch /home/retropie/RetroPie-Setup
= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =HEAD is now at 8373ac6 Bump version to 1.9.7
M configuration.c
M configuration.h
M frontend/drivers/platform_unix.c
M retroarch.c
HEAD is now in branch 'HEAD' at commit '8373ac67460cd0e092453bad6bb83e674b5af31a'
/home/retropie/RetroPie-Setup
/home/retropie/RetroPie-Setup/tmp/build/retroarch /home/retropie/RetroPie-Setup= = = = = = = = = = = = = = = = = = = = =
Building 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
= = = = = = = = = = = = = = = = = = = = =Checking operating system ... Linux (Ubuntu 20.04.3 LTS 20.04)
Checking for suitable working C compiler ... /usr/bin/gcc works
Checking for suitable working C++ compiler ... /usr/bin/g++ works
Checking for pkg-config ... /usr/bin/pkg-config
Checking for availability of switch -std=gnu99 in /usr/bin/gcc ... no
Checking for availability of switch -std=c99 in /usr/bin/gcc ... no
Cannot find a C99 compatible compiler.
rm -rf obj-unix
rm -f retroarch
rm -f .d
config.mk is outdated or non-existing. Run ./configure again.
make: * [Makefile:193: config.mk] Error 1
Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr- emulators (/home/retropie/RetroPie-Setup/tmp/build/retroarch/retroarch not found).
/home/retropie/RetroPie-SetupLog ended at: Ut 21. december 2021, 17:58:31 CET
Total running time: 0 hours, 0 mins, 0 secsCould you please help me?
Thanks a lot! -
What's the output of the following commands:
gcc --version cc --version
-
Oh, sorry, I forgot to mention this:
gcc --version:
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0cc --version:
cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 -
OK, so
gcc
is not a symlink to another compiler, so it's the standard one. Can't think of any issues with Ubuntu 20.04, did you change any of the standardgcc
default parameters ?
Check in$HOME/RetroPie-Setup/tmp/build/retroarch
, there should be aconfig.log
file which may offer some indications of why it failed. -
Nope, I installed Ubuntu 20.04 from USB, updated it with system updater and then tried to install Retropie. Nothing else was changed.
I can not find it very useful, maybe there's something messed with bad value "tigerlake" which is the name of NUC model (NUC11TNKI5 Tigerlake or something like that), but I do not understand it very much. There is a "cat config.log" command output:
Command line invocation:
$ ./configure --prefix=/opt/retropie/emulators/retroarch --disable-sdl --enable-sdl2 --disable-oss --disable-al --disable-jack --disable-qt --enable-vulkan
-----------
Core Tests.
-----------
cc1: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
cc1: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native -
Hm, looks like your NUC's CPU is newer and the default
gcc
on Ubuntu 20.04 doesn't known about it. Try installinggcc10
and set it as default compiler, see https://stackoverflow.com/questions/64493692/. -
Oh wow, it works!!!
I installed g++-10 and gcc-10 with:
sudo apt install g++-10
sudo apt install gcc-10Then I ran this command:
sudo make CC=gcc-10 CPP=g++-10 CXX=g++-10 LD=g++-10with error, because I had to run ./configure command again. So I did and then tried it again.
After that I've finally built retroarch core package and performed basic installation of Retropie.
I could not figure it out myself. Thank you for your direction, you're the best! ;)
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.