Re: build

Jan-Benedict Glaw <[email protected]> Wed, 5 May 2004 16:15:18 +0200
Newsgroups org.kernel.vger.linux-gcc
Message-ID <[email protected]>
On Wed, 2004-05-05 19:26:17 +0530, Dominic VP <[email protected]>
wrote in message <018401c432a8$bc7fc080$630210ac@dominc>:
> 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 :)

> 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

-- 
   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));
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAmPb2Hb1edYOZ4bsRApC7AJ9U1999aJ1B+7ocIf0cTohbo8BD0QCeNFyM
qPd5QoIrGTJdz6nRL3v+FAo=
=5b2W
-----END PGP SIGNATURE-----