Help! Kernel build problems (My own, am sure)

Help! Kernel build problems (My own, am sure)

Post by Pragnesh Samp » Tue, 01 Feb 1994 05:37:09



Hello All,

I am trying to build the Kernel from source and ran into a problem.  I am
new at this kind of thing, so am unable to diagnose what looks like a
simple problem.

I had a prepackaged SLS distribution with kernel p12.  I got the following
files yesterday:

total 10351
-rw-r--r--   1 2013     111       2242560 Dec 21 22:51 image-4.5.8.tar
-rw-r--r--   1 2013     111        655360 Dec 21 22:53 inc-4.5.8.tar
-rw-r--r--   1 2013     111        806431 Jan 29 16:29 libc-4.5.8.tar
-rw-r--r--   1 2013     111       4597760 Nov 29 09:12 linux-0.99.14.tar
-rw-r--r--   1 2013     111        337920 Jun  8  1993 net-010.tar
-rw-r--r--   1 2013     111         92160 May 28  1993 net-base.tar
-rw-r--r--   1 2013     111        307200 May 28  1993 net-ext.tar
-rw-r--r--   1 2013     111       1495040 May 28  1993 net-std.tar

and followed instructions (apparently) from the NET-2-HOWTO file and the
README file (by Linus) for building a new kernel (it was for p13).  It
seemed like things were fine till I got the following:

Script started on Sun Jan 30 14:19:17 1994
slippss:/usr/src/linux# make zImage
set -e; for i in kernel drivers mm fs net ipc ibcs lib; do make -C $i; done
make[1]: Nothing to be done for `all'.
set -e; for i in block char net FPU-emu; do make -C $i; done
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[2]: `math.a' is up to date.
make[1]: `mm.o' is up to date.
rm -f filesystems.a
set -e; for i in  minix ext ext2 msdos proc nfs; do test ! -d $i
|| { make -C $i; ar rcs filesystems.a $i/$i.o; }; done
make[2]: `minix.o' is up to date.
make[2]: `ext.o' is up to date.
make[2]: `ext2.o' is up to date.
make[2]: `msdos.o' is up to date.
make[2]: `proc.o' is up to date.
make[2]: `nfs.o' is up to date.
set -e; for i in unix inet; do make -C $i; done
make[2]: `unix.o' is up to date.
make[2]: `inet.o' is up to date.
make[1]: `ipc.o' is up to date.
make[1]: `ibcs.o' is up to date.
make[1]: `lib.a' is up to date.
ld  -T 100000 -M boot/head.o init/main.o tools/version.o kernel/kernel.o mm/mm.o fs/fs.o net/net.o ipc/ipc.o fs/filesystems.a drivers/block/block.a drivers/char/char.a drivers/net/net.a ibcs/ibcs.o drivers/FPU-emu/math.a lib/lib.a -o tools/zSystem > zSystem.map
text_start: 0x00100000  text_size: 0x00075000
data_start: 0x00175000  gap:  0x00000000
make -C zBoot
./xtract ../tools/zSystem | gzip -9 | ./piggyback > piggy.o
./xtract: can't load dynamic linker '/lib/ld.so'
./piggyback: can't load dynamic linker '/lib/ld.so'
make[1]: *** [piggy.o] Error 128
make: *** [zBoot/zSystem] Error 1
slippss:/usr/src/linux# exit
Script done on Sun Jan 30 14:20:42 1994

My original intention was to get SLIP running but I thought maybe I would
get newer versions first, have a go at building from source and then run
SLIP, but I got stuck here :-( (I dont think p12 had the SLIP driver
compiled, but am not sure)

It seems to that the kernel is already built, but the compression is
running into problem.  Have no idea what to do (tried some random things
like making a symbolic link in /lib to point to /usr/bin/ld).

Any help/comments/ideas ?

Thanks !

Pragnesh Sampat

[ps: it took me around 7 hours or so to get to that point.  I was running X
(have 4Mb Ram, 386DX/33 machine with no 387) Is it normal/reasonable ??)

--

 
 
 

Help! Kernel build problems (My own, am sure)

Post by Pragnesh Samp » Thu, 03 Feb 1994 10:56:10


Hi,

I am just following up on my questions.  I got the problem solved thanks
to help from this group. (Many people responded to me directly)

Thanks all.

--


 
 
 

1. Make problems, I am sure this should work!

I am trying to get make to realise that when I edit the .h files, that
it should re-compile the files which make up a library ( in ar format ).

I have tried everything I can think of, does anyone have an ideas?

Here is a cut down version of my Makefile, it compiles everything
fine, and all the 'other' macros are set to correct values.

--- cut here --- file: Makefile
LIB             = $(LIB_DIR)/libRutil.a
LIB_OBJS        = $(LIB)(strings.o)
HDRS            = strings.h common.h

# general rule for making a binary
bin:    $(BIN)

# general rule for making libraries
lib:    $(LIB)

# inference rule for compiling source
.c.o:
        $(CC) $(CFLAGS) $(INCL_DIRS) $(LIB_DIRS) $(LIBS) -c $<

# compile the binary by linking all the object files
$(BIN): $(HDRS) $(BIN_OBJS)

# make the library
$(LIB): $(HDRS) $(LIB_OBJS)

.c.a:
        $(CC) $(CFLAGS) $(INCL_DIRS) $(LIB_DIRS) $(LIBS) -c $<

        rm -f $*.o
--- cut here ---

I have also tries putting $(HDRS) on the .c.o and .c.a rules, but to
no avail.

thanx in advance for ANY suggestions!

-----------------------------------------------------------------

Philips Public Telecommunications Systems    Phone: +61 3 8813731
Melbourne, Australia                           Fax: +61 3 8813577

2. measuring uptime on Win2000

3. I want to build my own kernel...

4. Missing libraries

5. How to build a lilo bootable floopy diskette with my own kernel?

6. Problem Unmounting CD-Rom

7. Solaris 2.7 need to disable a driver and I am not sure how.

8. Accton Network cards EN1207F EN2220A EN2242

9. want to buy a dream machine but i am not sure

10. FAQ I am sure but I don't get it ...!

11. FTP Slow to Connect - And I am pretty sure my reverse DNS is working

12. help - building my own package

13. Building Etherboot port: Problems, or am I missing something?