Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Compiling 2.1.13
@ 1996-11-23 22:26 Matthew Jacob
  1996-11-23 23:06 ` Fritz Ganter
  0 siblings, 1 reply; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 22:26 UTC (permalink / raw)


>I have exactly the same problem.  My understanding is that 2.1.13
>should compile simply by setting arch=alpha in the Makefile;  
>unfortunately, it reports various missing header files
>even on a make menuconfig.
>

Well, I must be inhaling or something, 'coz I'm building
a 2.1.3 kernel now with

	make ARCH=alpha dep clean boot modules modules_install

and I only get the usual complaints about 'may be used uninitialized'
variables in the skbuff macros (one of these days I'll track that
down....)

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
[parent not found: <Pine.GSO.3.95.961124014837.24214A-100000@nks.oulu.fi>]
[parent not found: <Pine.LNX.3.95.961124000248.3056B-100000@rebekka.tu-graz.ac.at>]
* Re: Compiling 2.1.13
@ 1996-11-24  0:04 Philip Blundell
  0 siblings, 0 replies; 27+ messages in thread
From: Philip Blundell @ 1996-11-24  0:04 UTC (permalink / raw)


On Sat, 23 Nov 1996, Scott Laird wrote:

> 2.1.13 won't build with IPv6 on my UDB.  It comes much closer than
> either 2.1.11 or 2.1.12, but it dies in the end with undefined
> references to csum_ipv6_magic.
> 
> Of course, it's not that hard to work around, but it's still a pain.

The undefined reference is because arch/alpha/lib/Makefile is still
broken.  You need to do something like this:

--- Makefile~   Thu Nov 14 17:01:15 1996
+++ Makefile    Thu Nov 14 16:59:30 1996
@@ -5,7 +5,7 @@
 OBJS  = __divqu.o __remqu.o __divlu.o __remlu.o memset.o memcpy.o io.o \
        checksum.o csum_partial_copy.o strlen.o \
        strcat.o strcpy.o strncat.o strncpy.o stxcpy.o stxncpy.o \
-       strchr.o strrchr.o \
+       strchr.o strrchr.o csum_ipv6_magic.o \
        copy_user.o clear_user.o strncpy_from_user.o strlen_user.o
 
However, that may still not be a win, because the code in
csum_ipv6_magic.S seemed to be buggy last time I tried it, and it doesn't
_look_ like it's been fixed since.  In that case, the best thing to do is
to patch include/asm/checksum.h so that the special code doesn't get used:

--- checksum.h~ Sun Nov 24 00:03:53 1996
+++ checksum.h  Sat Nov 23 23:56:57 1996
@@ -66,7 +66,7 @@
        return ~sum;
 }
 
-#define _HAVE_ARCH_IPV6_CSUM
+#undef _HAVE_ARCH_IPV6_CSUM
 extern unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
                                           struct in6_addr *daddr,
                                           __u16 len,

phil

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
[parent not found: <Pine.LNX.3.91.961123175146.1841B-100000@localhost>]
* Re: Compiling 2.1.13
@ 1996-11-23 23:29 David Mosberger-Tang
  1996-11-23 23:50 ` Topi Kanerva
  1996-11-24  1:49 ` Terran Lane
  0 siblings, 2 replies; 27+ messages in thread
From: David Mosberger-Tang @ 1996-11-23 23:29 UTC (permalink / raw)


>>>>> On Sat, 23 Nov 1996 17:43:31 -0500 (EST), Terran Lane <terran@ecn.purdue.edu> said:

  Terran> David Mosberger-Tang spake unto me, saying:

  Terran> Hm.  Nope.  I just tried this and got:

My mail probably wasn't clear on that point: you have to copy over the
header files that come with RH4.0 _not_ the ones that come with the
new kernels.  That was the whole point of the excercise.  As long as
/usr/include/{linux,asm} refer to the header files as the come with
RH4.0 all should be fine.

	--david

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 23:21 Matthew Jacob
  0 siblings, 0 replies; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 23:21 UTC (permalink / raw)


>I can compile 2.1.10-13 without any axp-diffs, **but** with only when I
>use glibc-961111-axp-bin.tar.gz.
>
>BTW, is there a newer glibc binary? I can't use programs with libm:
>
>gcc -O6 -o pihexlinux pihex.c -lm
>/usr/lib/libm.so: undefined reference to `EDOM'

Oh, well, I have a hand built ELF glibc of my own. It's something
of around 961017. I have all the latest patches and it's been sitting
in /usr/src waiting for time for me to fire up a build. I believe
that richard released some axp diffs against 961120. I tried using
one of his binary releases, but it seemed to be really unhappy
with ELF X (you know, it's very funny- this is exactly the kinda
Marx Bros. routine that causes the NetBSD folks to roll their eyes),
so I've dropped back to a 'working' arrangement....

btw- I just checked 2.1.13 out. Other than the problems I have
with mtab getting updated, I'm fine (well, I just had
discovered an ugly in the tulip driver which I'll fix
tomorrow, so I'm back to using the de4x5 driver for the moment):

Script started on Sat Nov 23 23:15:29 1996
alpha.feral.com > uname -a
Linux alpha.feral.com 2.1.13 #22 Sat Nov 23 22:26:45 GMT 1996alpha alpha
alpha.feral.com > dmesg
Command line: ro root=/dev/sdc2 bootdevice=sda2 bootfile=nlinux
Console: 16 point font, 400 scans
Console: colour TGA 80x25, 1 virtual console (max 63)
Alpha PCI BIOS32 revision 0.03
Probing PCI hardware.
bios32.sio_fixup: weird, device 8086:0484 coming in on slot 7 has no irq line!!
Calibrating delay loop.. ok - 163.05 BogoMIPS
Memory: 76912k available
Swansea University Computer Society NET3.037 for Linux 2.1
NET3: Unix domain sockets 0.14 for Linux NET3.037.
Swansea University Computer Society TCP/IP for NET3.037
IP Protocols: ICMP, UDP, TCP
Linux version 2.1.13 (root@alpha.feral.com) (gcc version 2.7.2.1) #22 Sat Nov 23 22:26:45 GMT 1996
POSIX conformance testing by UNIFIX
keyboard: unrecognized scancode (70) - ignored
Serial driver version 4.21 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
PS/2 auxiliary pointing device detected -- driver installed.
Floppy drive(s): fd0 is 2.88M
Started kswapd v 1.4.2.2 
FDC 0 is a National Semiconductor PC87306
scsi-ncr53c7,8xx : at PCI bus 0, device 6,  function 0
scsi-ncr53c7,8xx : NCR53c810 at memory 0x4001000, io 0xb400, irq 11
scsi0 : burst length 2
scsi0 : reset ccf to 3 from 0
scsi0 : NCR code relocated to 0x44ebc69c (virt 0xfffffc0004ebc69c)
scsi0 : test 1 started
scsi0 : NCR53c{7,8}xx (rel 17)
scsi : 1 host.
scsi0 : target 0 accepting period 100ns offset 8 10.00MHz FAST SCSI-II
scsi0 : setting target 0 to period 100ns offset 8 10.00MHz FAST SCSI-II
  Vendor: TOSHIBA   Model: MK1824FBV         Rev: 805B
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
scsi0 : target 1 accepting period 100ns offset 8 10.00MHz FAST SCSI-II
scsi0 : setting target 1 to period 100ns offset 8 10.00MHz FAST SCSI-II
  Vendor: SEAGATE   Model: ST32151N          Rev: 0094
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
scsi0 : target 2 accepting period 100ns offset 8 10.00MHz FAST SCSI-II
scsi0 : setting target 2 to period 100ns offset 8 10.00MHz FAST SCSI-II
  Vendor: SEAGATE   Model: ST15230N          Rev: 0638
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sdc at scsi0, channel 0, id 2, lun 0
scsi : detected 3 SCSI disks total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 687980 [335 MB] [0.3 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 4197914 [2049 MB] [2.0 GB]
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 8386733 [4095 MB] [4.1 GB]
eth0: DE434/5 at 0xb000 (PCI bus 0, device 8), h/w address 08:00:2b:e5:06:f6,
      and requires IRQ10 (provided by PCI BIOS).
Partition check:
 sda: sda1 sda2 sda3 sda7
 sdb: sdb1 sdb2 sdb3 sdb4 sdb5
 sdc: sdc1 sdc2
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 130992k swap-space (priority -1)
eth0: media is TP.
fcntl_setlk() called by process 56 (syslogd) with broken flock() emulation
sshd(191): unaligned trap at 00000155557a52fc: 2f2f2f2f2f2f2f2f 29 16
alpha.feral.com > exit
exit

Script done on Sat Nov 23 23:15:43 1996

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 23:07 Matthew Jacob
  0 siblings, 0 replies; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 23:07 UTC (permalink / raw)


>
>Nope.  Just tried it.  Got back:
>
># make depend
>gcc -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
>In file included from /usr/include/time.h:86,
>                 from /usr/include/sys/select.h:32,
>                 from /usr/include/sys/types.h:125,
>                 from /usr/include/stdlib.h:209,
>                 from scripts/mkdep.c:2:
>/usr/include/timespec.h:1: linux/timespecbits.h: No such file or
>directory
>make: *** [scripts/mkdep] Error 1

Well, I guess that this really does mean that userland stuff has
propagated into kernel builds (aux build programs).

I suggest either a glibc/libc upgrade, or fix /usr/include/stdlib.h
to not require timespecbits.h.

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 23:03 Matthew Jacob
  0 siblings, 0 replies; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 23:03 UTC (permalink / raw)


*
>* Sound
>*
>Sound card support (CONFIG_SOUND) [N/y/m/?] m
>make[1]: Entering directory `/usr/src/linux-2.1.13/drivers/sound'
>gcc -o configure configure.c
>In file included from /usr/include/time.h:86,
>                 from /usr/include/sys/select.h:32,
>                 from /usr/include/sys/types.h:125,
>                 from /usr/include/stdlib.h:209,
>                 from configure.c:21:
>/usr/include/timespec.h:1: linux/timespecbits.h: No such file or directory

Ah. Well, I guess that Sound isn't ready for prime time yet (despite
what Linus said...). Also, you should note that insmod may not
be working. The older insmod-0.2bfd doesn't work post 2.1.12
(sadness).

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 22:49 Matthew Jacob
  1996-11-23 22:54 ` Paul D. Robertson
  1996-11-23 22:59 ` Vik Bajaj
  0 siblings, 2 replies; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 22:49 UTC (permalink / raw)


Part of the issue I've noticed with some of these failed
system builds (and this popped up a week or so back) is in
the usage of some of the aux configuration things (like
menuconfig or xconfig). You all must realize that these
paths are unlikely to get regression tested for anything
but major releases, so if this kind of thing fails for
you, try the 'make config' standard thingie first....

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
[parent not found: <199611232231.PAA01836@panda.mosberger>]
* Re: Compiling 2.1.13
@ 1996-11-23 22:31 David Mosberger-Tang
  0 siblings, 0 replies; 27+ messages in thread
From: David Mosberger-Tang @ 1996-11-23 22:31 UTC (permalink / raw)


>>>>> On Sat, 23 Nov 1996 17:21:59 -0500 (EST), Vik Bajaj <vbajaj@nic-21-3.resnet.upenn.edu> said:

  Vik> | That may be the problem.  | | I started with RH3.0.3, and
  Vik> have built my own ELF stuff since.  | However, header files for
  Vik> the kernel are supposed to be self-contained.  | If you have RH
  Vik> 4.0, you may have paid for it, so I suppose you should | ask
  Vik> EWT or someone at RedHAT*.

  Vik> I have exactly the same problem.  My understanding is that
  Vik> 2.1.13 should compile simply by setting arch=alpha in the
  Vik> Makefile; unfortunately, it reports various missing header
  Vik> files even on a make menuconfig.

This is because on most distributions /usr/include/asm and
/usr/include/linux are symlinks to the corresponding directories in
/usr/src/linux.  So both are right: the kernel _is_ self-contained,
yet it fails to build on top of RH4.0 or any other distribution built
against the early glibc.  The solution is easy though: replace the
symlinks with the actual contents of the relevant directories.
Something like:

	$ su	# become root
	$ rm /usr/include/linux /usr/include/asm
	$ cp -a /usr/src/linux/linux /usr/include
	$ cp -a /usr/src/linux/asm-alpha /usr/include

should work (but I didn't try the above commands, so don't follow
blindly...).

Another option would be to upgrade to the most recent glibc snapshot,
but I'm not sure to what degree this is recommended (unless you're a
hacker).  Richard?

	--david

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 22:16 Matthew Jacob
  1996-11-25  8:30 ` Andreas Kostyrka
  0 siblings, 1 reply; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 22:16 UTC (permalink / raw)


>
>This isn't my experience.  I also have just downloaded 2.1.13, set the
>ARCH to alpha, and the compile failed (missing various headers,
>timespecbits.h, etc.). 

I haven't seen that.

> I'm using a newly upgraded RedHat 4.0,

That may be the problem.

I started with RH3.0.3, and have built my own ELF stuff since.
However, header files for the kernel are supposed to be self-contained.
If you have RH 4.0, you may have paid for it, so I suppose you should
ask EWT or someone at RedHAT*.

I don't know what issues exactly you're running into- I haven't
seen them. 

-matt

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 22:04 Scott Laird
  0 siblings, 0 replies; 27+ messages in thread
From: Scott Laird @ 1996-11-23 22:04 UTC (permalink / raw)


In message <9611232134.AA00748@feral.com>, Matthew Jacob writes:
> 
>2.1.13 will build w/o patches (just edit Makefile to set
>default ARCH to alpha, or do make ARCH=alpah on command line).
>Ditto for 2.0.26.

2.1.13 won't build with IPv6 on my UDB.  It comes much closer than
either 2.1.11 or 2.1.12, but it dies in the end with undefined
references to csum_ipv6_magic.

Of course, it's not that hard to work around, but it's still a pain.

Scott

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 21:59 Terran Lane
  1996-11-23 22:21 ` Vik Bajaj
  0 siblings, 1 reply; 27+ messages in thread
From: Terran Lane @ 1996-11-23 21:59 UTC (permalink / raw)


Matthew Jacob spake unto me, saying:
> 
> >Hello,
> >
> >I can't find axp-diffs for development kernels about 2.1.1
> >or 2.0 kernels about pl25.  The 2.0.21 diff patches cleanly
> >into 2.0.25, but the 2.1.1 diff does not cleanly patch
> >into later kernels.  I assume that the newer kernels still
> >require diffs, because I get the usual timespecbits and other

etc.

> 2.1.13 will build w/o patches (just edit Makefile to set
> default ARCH to alpha, or do make ARCH=alpah on command line).
> Ditto for 2.0.26.

This isn't my experience.  I also have just downloaded 2.1.13, set the
ARCH to alpha, and the compile failed (missing various headers,
timespecbits.h, etc.).  I'm using a newly upgraded RedHat 4.0, and I
was under the impression that that included all necessary
libs/headers/etc. to do this compile.  I tried compiling the 2.0.20
kernel w/ axp-diffs, and it compiled ok, but broke when trying to boot
(the kernel decompressed, jumped in, probed the PCI, calculated
BogoMips, probed memory, and then hung.  No more messages, no response
at all).  If I'm making a mistake in the process somewhere, I can't
figure it out.  I hope someone out there can provide some insight,
because until I can get a custom kernel, I'm stuck with a hobbled one
and no networking ability.  Must...  Have...  PPP...

Thanks in advance for any suggestions/info.

-- 
Terran Lane   e-mail=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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Compiling 2.1.13
@ 1996-11-23 21:34 Matthew Jacob
  0 siblings, 0 replies; 27+ messages in thread
From: Matthew Jacob @ 1996-11-23 21:34 UTC (permalink / raw)


>Hello,
>
>I can't find axp-diffs for development kernels about 2.1.1
>or 2.0 kernels about pl25.  The 2.0.21 diff patches cleanly
>into 2.0.25, but the 2.1.1 diff does not cleanly patch
>into later kernels.  I assume that the newer kernels still
>require diffs, because I get the usual timespecbits and other
>errors when I try to compile them unpatched.  When I
>apply the diffs to 2.1.1 and upgrade to 2.1.13 by means
>of patches, I am repeatedly notified with 'patch already 
>applied, assume -R?' messages from patch.  Can anyone
>tell me what steps I must take to compile 2.0.25 and 2.1.X
>(X > 1) kernels?
>
 
2.1.13 will build w/o patches (just edit Makefile to set
default ARCH to alpha, or do make ARCH=alpah on command line).
Ditto for 2.0.26.

I don't know what you've hit, but I have patched up to
2.1.13 before w/o problems. Try a fresh 2.1.0 tar.

--
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

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Compiling 2.1.13
@ 1996-11-23 21:16 Vik Bajaj
  0 siblings, 0 replies; 27+ messages in thread
From: Vik Bajaj @ 1996-11-23 21:16 UTC (permalink / raw)


Hello,

I can't find axp-diffs for development kernels about 2.1.1
or 2.0 kernels about pl25.  The 2.0.21 diff patches cleanly
into 2.0.25, but the 2.1.1 diff does not cleanly patch
into later kernels.  I assume that the newer kernels still
require diffs, because I get the usual timespecbits and other
errors when I try to compile them unpatched.  When I
apply the diffs to 2.1.1 and upgrade to 2.1.13 by means
of patches, I am repeatedly notified with 'patch already 
applied, assume -R?' messages from patch.  Can anyone
tell me what steps I must take to compile 2.0.25 and 2.1.X
(X > 1) kernels?

Thanks in advance,

Vik

--
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

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

end of thread, other threads:[~1996-11-25  8:32 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-23 22:26 Compiling 2.1.13 Matthew Jacob
1996-11-23 23:06 ` Fritz Ganter
     [not found] <Pine.GSO.3.95.961124014837.24214A-100000@nks.oulu.fi>
1996-11-25  8:32 ` Andreas Kostyrka
     [not found] <Pine.LNX.3.95.961124000248.3056B-100000@rebekka.tu-graz.ac.at>
1996-11-24 16:52 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-11-24  0:04 Philip Blundell
     [not found] <Pine.LNX.3.91.961123175146.1841B-100000@localhost>
1996-11-23 23:02 ` Terran Lane
1996-11-23 23:52 ` Philip Blundell
1996-11-23 23:29 David Mosberger-Tang
1996-11-23 23:50 ` Topi Kanerva
1996-11-24  1:49 ` Terran Lane
1996-11-23 23:21 Matthew Jacob
1996-11-23 23:07 Matthew Jacob
1996-11-23 23:03 Matthew Jacob
1996-11-23 22:49 Matthew Jacob
1996-11-23 22:54 ` Paul D. Robertson
1996-11-23 22:59 ` Vik Bajaj
     [not found] <199611232231.PAA01836@panda.mosberger>
1996-11-23 22:41 ` Vik Bajaj
1996-11-23 22:43 ` Terran Lane
1996-11-24 16:56 ` Richard Henderson
1996-11-23 22:31 David Mosberger-Tang
1996-11-23 22:16 Matthew Jacob
1996-11-25  8:30 ` Andreas Kostyrka
1996-11-23 22:04 Scott Laird
1996-11-23 21:59 Terran Lane
1996-11-23 22:21 ` Vik Bajaj
1996-11-23 21:34 Matthew Jacob
1996-11-23 21:16 Vik Bajaj

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