參考資訊:
https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili
問題如下:
[ 12%] Performing build step for 'XGMTOOL'
[ 6%] Building C object CMakeFiles/xgmtool.dir/compress.c.o
In file included from /opt/sgdk/tools/xgmtool/src/compress.c:1:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
26 | #include <bits/libc-header-start.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/xgmtool.dir/build.make:76: CMakeFiles/xgmtool.dir/compress.c.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:83: CMakeFiles/xgmtool.dir/all] Error 2
make[3]: *** [Makefile:91: all] Error 2
make[2]: *** [CMakeFiles/XGMTOOL.dir/build.make:95: XGMTOOL-prefix/src/XGMTOOL-stamp/XGMTOOL-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:115: CMakeFiles/XGMTOOL.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
解法如下:
$ sudo apt-get install gcc-multilib