[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: come compilare linux 2.4.X con GCC-4.1?



Il 29/05/2012 10:58, Premoli, Roberto ha scritto:
Su una vecchia 4.0 sto facendo un prove con linux vanilla 2.4.X (con 31
<= X<= 37).
Indagando in Rete ho visto che altre persone riportano l'impossibilita'
di usare il gcc-4.1, cosi' mi sono deciso di chiedere in lista, con la
speranza che qualcuno di voi sappia la "magia" giusta per ottenere il
2.4 compilato con il 4.1.

Ciao Roberto,

nelle indagini in rete intendevi anche queste due info? [1], [2].



[1] compiling linux kernel 2.4 using gcc-4.1
[cut] ...The primary reason why gcc and Linux kernel
has a relation is because the kernel in not strictly
programed in ANSI C, it also uses iso c99 and GNU C
extensions.
So the Linux kernel can only be compiled by a gcc compiler
and not any other C compiles even if it is a standard ANSI
compiler.
Also *between gcc3 and gcc4 there are many changes*,
you can see gcc change history if you are interested.


[2] "document that gcc 4 is not supported"
> gcc 4 is not supported for compiling kernel 2.4, and I don't see any
> compelling reason why kernel 2.4 should ever be adapted to gcc 4.
>
> This patch documents this fact.



Dario



--- Link ---
[1] http://www.linuxquestions.org/questions/linux-kernel-70/compiling-linux-kernel-2-4-using-gcc-4-1-a-562462/ [2] http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/9bf38ea479e6a5be/b294a9eb36126478?&hl=en#b294a9eb36126478


Reply to: