2.4.1, 2.4.2 don't compile with new 'ld' interface on i386

From: Seth Arnold (sarnold@willamette.edu)
Date: Thu Mar 08 2001 - 05:53:02 EST


Greetings! :)

I was presented with the following error when attempting to compile
kernel 2.4.2 and 2.4.1:

[...]
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[2]: Entering directory `/home/sarnold/Local/Linux.2.4.1/arch/i386/boot'
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
gcc -E -D__KERNEL__ -I/home/sarnold/Local/Linux.2.4.1/include -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA bootsect.S -o bbootsect.s
as -o bbootsect.o bbootsect.s
bbootsect.s: Assembler messages:
bbootsect.s:253: Warning: indirect lcall without `*'
ld -m elf_i386 -Ttext 0x0 -s -oformat binary bbootsect.o -o bbootsect
ld: cannot open binary: No such file or directory
make[2]: *** [bbootsect] Error 1
make[2]: Leaving directory `/home/sarnold/Local/Linux.2.4.1/arch/i386/boot'
make[1]: *** [bzImage] Error 2
make[1]: Leaving directory `/home/sarnold/Local/Linux.2.4.1'
make: *** [stamp-build] Error 2

Debian bug report #87037 [0] gives many details on the situation.
Upstream for 'ld' has changed -oformat to --oformat. I am probably not
the only person to try compiling the kernel with a new ld (and I
understand older versions of 'ld' support --oformat) so if 2.4.3 could
incorporate the following patch I have created (and tested *only on my
one single machine*) then many people will be spared the trouble I went
through. (Well, not that bad. :)

(Noting that I renamed the original Makefile in arch/i386/boot/Makefile to
Makefile.orig before making the diff; it may not apply cleanly, but I
hope it is obvious ... chances are good other Makefiles will need to be
modified but this is one *I* ran into. It is an exercise to find any
others. :)

[0]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=87037

-- 
Earthlink: The #1 provider of unsolicited bulk email to the Internet.


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 15 2001 - 21:00:07 EST