Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Error compiling kernel 2.1.121
@ 1998-09-17 12:16 Eric
  1998-09-17 12:57 ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Eric @ 1998-09-17 12:16 UTC (permalink / raw)
  To: axp-list

Hi,

Im trying the install a new kernel version, but while compiling
i get the following error:

alpha-linux-gcc -D__KERNEL__ -I/usr/src/alpha/v2.1.121/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8
-c -o core_lca.o core_lca.c
core_lca.c:435: conflicting types for `lca_machine_check'
proto.h:61: previous declaration of `lca_machine_check'
make[1]: *** [core_lca.o] Error 1
make[1]: Leaving directory /usr/src/alpha/v2.1.121/arch/alpha/kernel'
make: *** [_dir_arch/alpha/kernel] Error 2

Is there a patch for this, and please tell me where ?

Extra info:
	Noname machine (AXppci33)
	Crosscompiling on SMP PPro
	Binutils 2.9.1.0.10
	Egcs 1.1b

Eric.


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

* Re: Error compiling kernel 2.1.121
  1998-09-17 12:16 Error compiling kernel 2.1.121 Eric
@ 1998-09-17 12:57 ` Richard Henderson
  1998-09-17 13:13   ` Stefan Schroepfer
  1998-09-17 13:22   ` Matti Aarnio
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Henderson @ 1998-09-17 12:57 UTC (permalink / raw)
  To: Eric, axp-list

On Thu, Sep 17, 1998 at 02:16:04PM +0200, Eric@KPN.COM wrote:
> 	Crosscompiling on SMP PPro

This is your problem.

It is an unfortunate fact that the c preprocessor does not do
arithmetic at the same width as the cross-compiler it was built for. 
It is an even more unfortunate fact that this is allowed by ISO C,
making it difficult to convince folks that it needs fixing.

So you'll have to change all of the bits that do this

#if ((~0UL) == 0xffffffff)

and just have the code assume 64-bit data types.  

Even beyond this, be warned that cross-compiling from a 32-bit host
will produce _significantly_ worse code that compiling native.


r~


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

* Re: Error compiling kernel 2.1.121
  1998-09-17 12:57 ` Richard Henderson
@ 1998-09-17 13:13   ` Stefan Schroepfer
  1998-09-17 13:22   ` Matti Aarnio
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Schroepfer @ 1998-09-17 13:13 UTC (permalink / raw)
  To: axp-list

Richard Henderson wrote:
> 
> Even beyond this, be warned that cross-compiling from a 32-bit host
> will produce _significantly_ worse code that compiling native.

Why? Until now I thought that a cross-compiler producing
code for platform 'A' running on platform 'B' has the same
backend than a native compiler on 'A', with the only
difference that the former itself is compiled for 'B'.
Wouldn't this mean that these both produce the same output?

Stefan Schroepfer


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

* Re: Error compiling kernel 2.1.121
  1998-09-17 12:57 ` Richard Henderson
  1998-09-17 13:13   ` Stefan Schroepfer
@ 1998-09-17 13:22   ` Matti Aarnio
  1998-09-17 13:39     ` Richard Henderson
  1 sibling, 1 reply; 5+ messages in thread
From: Matti Aarnio @ 1998-09-17 13:22 UTC (permalink / raw)
  To: rth; +Cc: Eric, axp-list

Richard Henderson <rth@cygnus.com> wrote:
... (about crosscompiling at ia32 for Alpha..)
> Even beyond this, be warned that cross-compiling from a 32-bit host
> will produce _significantly_ worse code that compiling native.

	I have never understood basics for this, why won't it work ?
	What in the compiler code can't be done at 32-bit host which
	works at 64-bit host ?

	With "can't" I really mean: "can't", doing it with bad performance
	within the compiler proper is "can" in my understanding...
	The produced code should be the same anyway ?

> r~

/Matti Aarnio <matti.aarnio@sonera.fi>  (A native 64-bit environment user)


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

* Re: Error compiling kernel 2.1.121
  1998-09-17 13:22   ` Matti Aarnio
@ 1998-09-17 13:39     ` Richard Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1998-09-17 13:39 UTC (permalink / raw)
  To: Matti Aarnio, rth; +Cc: Eric, axp-list

On Thu, Sep 17, 1998 at 04:22:08PM +0300, Matti Aarnio wrote:
> 	I have never understood basics for this, why won't it work ?
> 	What in the compiler code can't be done at 32-bit host which
> 	works at 64-bit host ?

It's not a matter of impossibility, it is just that quite a
lot of the compiler wimps out when it can't fit the value in
a HOST_WIDE_INT.

There is actually a way around this -- to arrange for HOST_WIDE_INT
to be a long long.  It's not for the faint of heart, but have a
gander at the sparc config files for how to do this.


r~


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

end of thread, other threads:[~1998-09-17 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-17 12:16 Error compiling kernel 2.1.121 Eric
1998-09-17 12:57 ` Richard Henderson
1998-09-17 13:13   ` Stefan Schroepfer
1998-09-17 13:22   ` Matti Aarnio
1998-09-17 13:39     ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox