linux-gcc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* build
@ 2004-05-05 13:56 Dominic VP
  2004-05-05 14:15 ` build Jan-Benedict Glaw
  2004-05-06 13:55 ` build Herbert Poetzl
  0 siblings, 2 replies; 3+ messages in thread
From: Dominic VP @ 2004-05-05 13:56 UTC (permalink / raw)
  To: linux-gcc

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build
  2004-05-05 13:56 build Dominic VP
@ 2004-05-05 14:15 ` Jan-Benedict Glaw
  2004-05-06 13:55 ` build Herbert Poetzl
  1 sibling, 0 replies; 3+ messages in thread
From: Jan-Benedict Glaw @ 2004-05-05 14:15 UTC (permalink / raw)
  To: Dominic VP; +Cc: linux-gcc

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

On Wed, 2004-05-05 19:26:17 +0530, Dominic VP <dominic.vp@globaledgesoft.com>
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       jbglaw@lug-owl.de    . +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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build
  2004-05-05 13:56 build Dominic VP
  2004-05-05 14:15 ` build Jan-Benedict Glaw
@ 2004-05-06 13:55 ` Herbert Poetzl
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Poetzl @ 2004-05-06 13:55 UTC (permalink / raw)
  To: Dominic VP; +Cc: linux-gcc

On Wed, May 05, 2004 at 07:26:17PM +0530, Dominic VP wrote:
> 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 ...
    
> thanks in advance,
> dominique
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-gcc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-06 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-05 13:56 build Dominic VP
2004-05-05 14:15 ` build Jan-Benedict Glaw
2004-05-06 13:55 ` build Herbert Poetzl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).