build
Hi,
I am having to port linux to a new architecture. This architecture does not have gcc ported on to it. This does have an ansi c compiler/as/ld.
Has anyone has had any experience/success with building linux with an ansi c compiler. I know it does not build automagically, but any info on deviations/changes/tools would be appreciated a LOT.
thanks in advance,
dominique
On Wed, 2004-05-05 19:26:17 +0530, Dominic VP <[email protected]> wrote in message <018401c432a8$bc7fc080$630210ac@dominc>:
Quoted 2 lines
I am having to port linux to a new architecture. This architecture does not have gcc ported on to it. This does have an ansi c compiler/as/ld.
Well, the Linux kernel highly depends on some GCC extensions, so you'll need to make gcc work for your architecture (btw., what arch are you working on?).
With a lot of luck, Intels compiler (icc) may also produce a working kernel image, but it'll probably only work for ia32 and ia64 :)
Quoted 3 lines
Has anyone has had any experience/success with building linux with an ansi c compiler. I know it does not build automagically, but any info on deviations/changes/tools would be appreciated a LOT.
You'd need to work around a lot of gccisms for the Linux kernel. ...and GNU userland may not easily build with other compilers, too...
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Quoted 8 lines · Dominic VP
Hi,
I am having to port linux to a new architecture. This architecture does not have gcc ported on to it. This does have an ansi c compiler/as/ld.
Has anyone has had any experience/success with building linux with an ansi c compiler. I know it does not build automagically, but any info on deviations/changes/tools would be appreciated a LOT.
to compile the linux kernel only a 'simple' gcc/binutil version is required ... so the best thing would be to port just the required parts of gcc/binutils
see here for some details:
http://vserver.13thfloor.at/Stuff/Cross/howto.info
(make sure to compile and install the binutils first)
HTH,
Herbert
PS: I doubt that an ansi compiler (probably not even
C99) will be able to compile linux kernels ...
PPS: please let me know if you succeed ...
Quoted 8 lines
thanks in advance,
dominique-
To unsubscribe from this list: send the line "unsubscribe linux-gcc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html