TuxML / tuxml

The main repository of the TuxML project contains the scripts for building Linux kernel configurations in the large.
Apache License 2.0
4 stars 2 forks source link

compiler (version) as a parameter of kernel_generator #22

Closed FAMILIAR-project closed 3 years ago

FAMILIAR-project commented 3 years ago

Right now, compilations are made with gcc version: 6.3.0-18+deb9u1 and libc version: 2.24-11+deb9u4 We would like to have the ability to change the compiler version (still with gcc, but might even be clang in the future)

in particular, we expect that for gcc version >= 9, the size of configuration kernel can change (we've made some ad-hoc experiments with tiny kernel showing this trend)

FabienZa commented 3 years ago

Work in progress in branch :
https://github.com/TuxML/tuxml/tree/issue-22-compiler-as-a-parameter

Almost done for gcc 7 and 8 : need somes tests for be sure, specially for the informations in database.

FabienZa commented 3 years ago

It seem that the version 9 of GCC is only in "test" or "unstable" for debian:stretch :
https://tracker.debian.org/pkg/gcc-9

FabienZa commented 3 years ago

Version 7, 8 and 9 work when the argument --tiny is used. But there are some errors for compile "normal" kernel.

https://github.com/TuxML/tuxml/tree/issue-22-compiler-as-a-parameter

Errors with gcc 6 :

00:00:17       --> gcc_version: 6.3.0-18+deb9u1
00:00:23 [2020-10-14 14:50:51 CEST] [__compile] Compilation failed, exit status : 2.
00:00:23 [2020-10-14 14:50:51 CEST] [__log_analyser] Analysing /TuxML/logs/stderr.log
00:00:23 [2020-10-14 14:50:51 CEST] [__log_analyser] Missing file(s)/package(s) found.
00:00:23 [2020-10-14 14:50:51 CEST] [fix_missing_dependencies] Fixing missing file(s)/package(s) dependencies.
00:00:23 [2020-10-14 14:50:51 CEST] [fix_missing_dependencies] Fatal error : 'g++' is called missing while he is already present!
00:00:23 [2020-10-14 14:50:51 CEST] [__do_a_compilation] Unable to compile in 00:00:03 (installation_time = 00:00:00)

Success with gcc 7 :

00:00:17       --> gcc_version: 7.4.0-6
0:15:10 [2020-10-14 15:09:09 CEST] [__compile] Compilation successful.
00:15:10 [2020-10-14 15:09:09 CEST] [__do_a_compilation] Successfully compiled in 00:14:50 (installation_time = 00:00:00)

Errors with gcc 8 :

00:00:18       --> gcc_version: 8.3.0-6
00:00:28 [2020-10-14 14:47:27 CEST] [__compile] Compilation failed, exit status : 2.
00:00:28 [2020-10-14 14:47:27 CEST] [__log_analyser] Analysing /TuxML/logs/stderr.log
00:00:28 [2020-10-14 14:47:27 CEST] [__log_analyser] Unable to find the missing package(s).
00:00:28 [2020-10-14 14:47:27 CEST] [__do_a_compilation] Unable to compile in 00:00:06 (installation_time = 00:00:00)

Errors with gcc 9 :

00:00:16       --> gcc_version: 9.3.0-18
00:00:23 [2020-10-14 14:46:22 CEST] [__compile] Compilation failed, exit status : 2.
00:00:23 [2020-10-14 14:46:22 CEST] [__log_analyser] Analysing /TuxML/logs/stderr.log
00:00:23 [2020-10-14 14:46:22 CEST] [__log_analyser] Missing file(s)/package(s) found.
00:00:23 [2020-10-14 14:46:22 CEST] [fix_missing_dependencies] Fixing missing file(s)/package(s) dependencies.
00:00:31 [2020-10-14 14:46:30 CEST] [install_package] Installing package(s) : gcc-10-plugin-dev
00:00:34 [2020-10-14 14:46:33 CEST] [install_package] Error while installing the package gcc-10-plugin-dev.
00:00:34 [2020-10-14 14:46:33 CEST] [__do_a_compilation] Unable to compile in 00:00:03 (installation_time = 00:00:10)
acherm commented 3 years ago

nice work!