Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Terran D Lane <terran@ecn.purdue.edu>
Subject: Re: Compiling kernel 2.1.25
Date: Wed, 5 Feb 1997 00:08:35 -0500 (EST)	[thread overview]
Message-ID: <30726e3e8d4560f8a090d5389983ebd6.axp-list@archive.invalid> (raw)
In-Reply-To: <199702041403.PAA05495@alpha.ciber-rede.pt>

On Tue, 4 Feb 1997, Miguel Bettencourt Dias wrote:

> > You need the appropriate glibc and include files.  What distribution
> > of Linux are you using?
> > 
> > --Vik
> > 
> 
> I'm using RH 303
> 
> mbd

But even aside from this, there seem to be problems with 2.1.25.  On a
more-or-less stock RH 4.0 system (gcc 2.7.2), I encountered the
following errors when linking:

kernel/kernel.o: In function `sys_umask':
sys.c(.text+0x6afc): undefined reference to
`__xchg_called_with_bad_pointer'
sys.c(.text+0x6b00): undefined reference to
`__xchg_called_with_bad_pointer'
net/network.a(ipv4.o): In function `tcp_do_sendmsg':
tcp.c(.text+0x10204): undefined reference to
`csum_partial_copy_from_user'
tcp.c(.text+0x10208): undefined reference to
`csum_partial_copy_from_user'

The latter error I traced (I think) to a typo in include/asm-alpha/checksum.h.
The former, however, seems to trace back to the file
include/asm-alpha/system.h, where it is accompanied by the message:

/*
 * This function doesn't exist, so you'll get a linker error
 * if something tries to do an invalid xchg().
 *
 * This only works if the compiler isn't horribly bad at optimizing.
 * gcc-2.5.8 reportedly can't handle this, but as that doesn't work
 * too well on the alpha anyway..
 */

Wether this points to a bug in gcc optimization code (suprise) or to
"an invalid xchg()", I don't know...

Fortunately, however, 2.0.28 compiled flawlessly for me.

-- 
Terran Lane   email=terran@ecn.purdue.edu
              WWW=http://purcell.ecn.purdue.edu/~terran/
  "But I don't want to go among mad people," Alice remarked.
  "Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
      You're mad."
  "How do you know I'm mad?" said Alice.
  "You must be," said the Cat, "or you wouldn't have come here."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-02-05  5:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199702041403.PAA05495@alpha.ciber-rede.pt>
1997-02-05  5:08 ` Terran D Lane [this message]
     [not found] <Pine.SOL.3.91.970204235030.1932A-100000@mow.ecn.purdue.edu>
1997-02-05 15:59 ` Compiling kernel 2.1.25 Richard Henderson
1997-02-05 13:57 John F. Carr
  -- strict thread matches above, loose matches on Subject: below --
1997-02-04 14:03 Miguel Bettencourt Dias
1997-02-04 13:07 John F. Carr
1997-02-04 14:41 ` vbajaj
1997-02-04 10:19 Miguel Bettencourt Dias
1997-02-04 17:21 ` Richard Henderson
read-only archive

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