* Cross Compiler on i686
@ 2003-11-04 18:02 RedCrow
2003-11-05 7:22 ` huw.davies
0 siblings, 1 reply; 7+ messages in thread
From: RedCrow @ 2003-11-04 18:02 UTC (permalink / raw)
My intention is to build a cross compiler for compile (on my i686 linux
box) a kernel for an alpha machine.
What things must i compile?
What are the parameters to give configuring libc and gcc? Must i build
something else?
And what are the parameters to give to the kernel?
Thank you in advance,
RedCrow
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-04 18:02 Cross Compiler on i686 RedCrow
@ 2003-11-05 7:22 ` huw.davies
2003-11-05 8:06 ` RedCrow
0 siblings, 1 reply; 7+ messages in thread
From: huw.davies @ 2003-11-05 7:22 UTC (permalink / raw)
RedCrow <drugo1979@levamisonounfiltroantispamyahoo.it> wrote:
> My intention is to build a cross compiler for compile (on my i686 linux
> box) a kernel for an alpha machine.
It was my understanding that this just plain won't work due to the Intel chip
being 32 bit and the Alpha 64. The last time I saw this discussed (must be
a few years now) this caused the code generated by gcc to simply
not work. Of course, things might have changed....
--
Huw Davies | e-mail: Huw.Davies@kerberos.davies.net.au
Melbourne | "If soccer was meant to be played in the
Australia | air, the sky would be painted green"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-05 7:22 ` huw.davies
@ 2003-11-05 8:06 ` RedCrow
2003-11-05 8:36 ` Falk Hueffner
2003-11-06 19:31 ` Michal Jaegermann
0 siblings, 2 replies; 7+ messages in thread
From: RedCrow @ 2003-11-05 8:06 UTC (permalink / raw)
huw.davies@kerberos.davies.net.au wrote:
> RedCrow <drugo1979@levamisonounfiltroantispamyahoo.it> wrote:
>> My intention is to build a cross compiler for compile (on my i686 linux
>> box) a kernel for an alpha machine.
>
> It was my understanding that this just plain won't work due to the Intel
> chip being 32 bit and the Alpha 64. The last time I saw this discussed
> (must be a few years now) this caused the code generated by gcc to simply
> not work. Of course, things might have changed....
I hope the things are changed, because i found some "how to"s to build a
specific cross compile from i386 to alpha (one is
http://www.cse.unsw.edu.au/~cgray/crossdev/x86-alpha-xcc.html).
It works if a compile a simple Hello world program, but when i go to compile
the kernel, it gives some register name conflict in asm clubber list.
Another thing i want to ask: is it normal that the Hello world program that
i compiled on my linux box, doesn't run on the digital unix box with alpha?
Or it should run. And more: can i compile a kernel on that unix box??
Thanks again,
RedCrow
Posted from X-Privat Free NNTP server - www.x-privat.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-05 8:06 ` RedCrow
@ 2003-11-05 8:36 ` Falk Hueffner
2003-11-05 10:05 ` RedCrow
2003-11-06 19:31 ` Michal Jaegermann
1 sibling, 1 reply; 7+ messages in thread
From: Falk Hueffner @ 2003-11-05 8:36 UTC (permalink / raw)
RedCrow <drugo1979@LEVAMISONOUNFILTROyahoo.it> writes:
> huw.davies@kerberos.davies.net.au wrote:
>
> > RedCrow <drugo1979@levamisonounfiltroantispamyahoo.it> wrote:
> >> My intention is to build a cross compiler for compile (on my i686 linux
> >> box) a kernel for an alpha machine.
> >
> > It was my understanding that this just plain won't work due to the Intel
> > chip being 32 bit and the Alpha 64.
It should work, but it's not very well tested, so there might be bugs,
and also some optimizations are disabled.
> It works if a compile a simple Hello world program, but when i go to compile
> the kernel, it gives some register name conflict in asm clubber list.
Probably the kernel you're compiling is too old, there was a bug in
some versions.
> Another thing i want to ask: is it normal that the Hello world
> program that i compiled on my linux box, doesn't run on the digital
> unix box with alpha?
If your cross compiler was targeted for Linux, then yes.
> And more: can i compile a kernel on that unix box??
Probably, if you install all the required tools.
--
Falk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-05 8:36 ` Falk Hueffner
@ 2003-11-05 10:05 ` RedCrow
0 siblings, 0 replies; 7+ messages in thread
From: RedCrow @ 2003-11-05 10:05 UTC (permalink / raw)
Falk Hueffner wrote:
> RedCrow <drugo1979@LEVAMISONOUNFILTROyahoo.it> writes:
>
>> huw.davies@kerberos.davies.net.au wrote:
>>
>> > RedCrow <drugo1979@levamisonounfiltroantispamyahoo.it> wrote:
>> >> My intention is to build a cross compiler for compile (on my i686
>> >> linux box) a kernel for an alpha machine.
>> >
>> > It was my understanding that this just plain won't work due to the
>> > Intel chip being 32 bit and the Alpha 64.
>
> It should work, but it's not very well tested, so there might be bugs,
> and also some optimizations are disabled.
>
Ok, that's good
>> It works if a compile a simple Hello world program, but when i go to
>> compile the kernel, it gives some register name conflict in asm clubber
>> list.
>
> Probably the kernel you're compiling is too old, there was a bug in
> some versions.
>
You are right. I compiled just now 2.4.22, and it works (i have'nt tried on
the alpha machine, but it compiled).
>> Another thing i want to ask: is it normal that the Hello world
>> program that i compiled on my linux box, doesn't run on the digital
>> unix box with alpha?
>
> If your cross compiler was targeted for Linux, then yes.
>
That is what i thought.
>> And more: can i compile a kernel on that unix box??
>
> Probably, if you install all the required tools.
>
Hope i do not need to install more tools, if the kernel just compiled works.
--
Powered by RedHat Linux 9.0
Posted from X-Privat Free NNTP server - www.x-privat.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-05 8:06 ` RedCrow
2003-11-05 8:36 ` Falk Hueffner
@ 2003-11-06 19:31 ` Michal Jaegermann
2003-11-07 0:55 ` Måns Rullgård
1 sibling, 1 reply; 7+ messages in thread
From: Michal Jaegermann @ 2003-11-06 19:31 UTC (permalink / raw)
RedCrow <drugo1979@levamisonounfiltroyahoo.it> wrote:
> Another thing i want to ask: is it normal that the Hello world program that
> i compiled on my linux box, doesn't run on the digital unix box with alpha?
Linux understands _too_ a format of executables used by DU and at least
an important subset of system calls. Hence a program from DU has a
reasonable chance to work on Linux (there are various limitations). The
other way around you will find "what you are talking about?" response
unless you are really cross-compiling.
> And more: can i compile a kernel on that unix box??
Here you are talking about something else. By default an answer will
be "no". Kernel is NOT written in Standard C in the first place
and is also special in many other aspects. If you wonder if you can
set up a toolchain on DU to compile a kernel then the answer is
"certainly but it may not be that easy" and a question is why.
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross Compiler on i686
2003-11-06 19:31 ` Michal Jaegermann
@ 2003-11-07 0:55 ` Måns Rullgård
0 siblings, 0 replies; 7+ messages in thread
From: Måns Rullgård @ 2003-11-07 0:55 UTC (permalink / raw)
Michal Jaegermann <michal@gortel.phys.ualberta.ca> writes:
>> Another thing i want to ask: is it normal that the Hello world program that
>> i compiled on my linux box, doesn't run on the digital unix box with alpha?
>
> Linux understands _too_ a format of executables used by DU and at least
> an important subset of system calls. Hence a program from DU has a
> reasonable chance to work on Linux (there are various limitations). The
The most common one being pthreads. They just don't work.
--
M�ns Rullg�rd
mru@kth.se
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-11-07 0:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-04 18:02 Cross Compiler on i686 RedCrow
2003-11-05 7:22 ` huw.davies
2003-11-05 8:06 ` RedCrow
2003-11-05 8:36 ` Falk Hueffner
2003-11-05 10:05 ` RedCrow
2003-11-06 19:31 ` Michal Jaegermann
2003-11-07 0:55 ` Måns Rullgård
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox