bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-3.79.1


From: winfried szukalski
Subject: make-3.79.1
Date: Wed, 28 Mar 2001 10:20:17 +0000

Dear gnu :)

last weekend I compiled glibc-2.2.2 and gcc-2.95.3 on

  Linux 2.4.2 #5 Tue Mar 27 20:39:04 UTC 2001 i586 unknown

But beforehand I had to install binutils-2.11.90.0.1 and 
make-3.79.1 . The compilation of glibc and gcc were successful.

Then I wanted to compile the linux kernel 2.4.2 . This failed:
~~~~~~~~~~~~~~~~~~~~~~~~~
bbootsect.s: Assembler messages:
bbootsect.s:253: Warning: indirect lcall without `*'
ld: cannot open binary: No such file or directory
make[1]: *** [bbootsect] Error 1
make: *** [bzImage] Error 2

~~~~~~~~~~~~~~~~~~~~~~~~~
Checking the options 'ld' handles, I did the following changes:

~~~~~~~~~~~~~~~~~~~~~~~~~
--- arch/i386/boot/Makefile.orig   Mon Dec 20 22:43:39 1999
+++ arch/i386/boot/Makefile    Tue Mar 27 18:54:18 2001
@@ -43,7 +43,7 @@
    $(HOSTCC) $(HOSTCFLAGS) -o $@ $< -I$(TOPDIR)/include

 bootsect: bootsect.o
-   $(LD) -Ttext 0x0 -s -oformat binary -o $@ $<
+   $(LD) -Ttext 0x0 -s --oformat=binary -o $@ $<

 bootsect.o: bootsect.s
    $(AS) -o $@ $<
@@ -52,7 +52,7 @@
    $(CPP) $(CPPFLAGS) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@


 bbootsect: bbootsect.o
-   $(LD) -Ttext 0x0 -s -oformat binary $< -o $@
+   $(LD) -Ttext 0x0 -s --oformat=binary $< -o $@

 bbootsect.o: bbootsect.s
    $(AS) -o $@ $<
@@ -61,7 +61,7 @@
    $(CPP) $(CPPFLAGS) -D__BIG_KERNEL__ -traditional $(SVGA_MODE) $(RAMDISK) $< 
-o $@

 setup: setup.o
-   $(LD) -Ttext 0x0 -s -oformat binary -e begtext -o $@ $<
+   $(LD) -Ttext 0x0 -s --oformat=binary -e begtext -o $@ $<

 setup.o: setup.s
    $(AS) -o $@ $<
@@ -70,7 +70,7 @@
    $(CPP) $(CPPFLAGS) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@

 bsetup: bsetup.o
-   $(LD) -Ttext 0x0 -s -oformat binary -e begtext -o $@ $<
+   $(LD) -Ttext 0x0 -s --oformat=binary -e begtext -o $@ $<

 bsetup.o: bsetup.s
    $(AS) -o $@ $<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Now I could compile:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ld -m elf_i386 -Ttext 0x0 -s --oformat=binary -e begtext -o bsetup bsetup.o
make[2]: Entering directory `/usr/src/linux-2.4.2/arch/i386/boot/compressed'
tmppiggy=_tmp_$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
objcopy -O binary -R .note -R .comment -S /usr/src/linux/vmlinux $tmppiggy; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) 
input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
ld -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T 
$tmppiggy.lnk; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c head.S
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS -c misc.c
ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.4.2/arch/i386/boot/compressed'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build 
tools/build.c -I/usr/src/linux/include
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux 
compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (3, 66)
Boot sector 512 bytes.
Setup is 4496 bytes.
System is 883 kB
make[1]: Leaving directory `/usr/src/linux-2.4.2/arch/i386/boot'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But the following command 'make install' triggered the compilation
of the kernel once more.

I had used make-3.78.1 before. These complications are new. And unusual.
I suppose a bug in make-3.79.1 .

winfried



reply via email to

[Prev in Thread] Current Thread [Next in Thread]