L4Env Compilation Error at "Multiboot-SMP" on Gentoo

Adam Lackorzynski adam at os.inf.tu-dresden.de
Wed Jul 13 12:00:29 CEST 2005


On Tue Jul 12, 2005 at 20:07:15 -0700, Kenji Miyamoto wrote:
> This is where the error starts:
> make[3]: Entering directory `/l4-linux/usr/src/l4linux-2.6/oskit/examples'
> ld -Ttext 100000  -L../lib \
>         -o multiboot-smp ../lib/multiboot.o multiboot-smp.o             \
>         -lsmp -lkern -lmc -llmm ../lib/crtn.o
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libgcc.a
> ../lib/libsmp.a(boot.o)(.text+0x29): In function `_SMP_TRAMP_START_':
> : relocation truncated to fit: R_386_16 _SMP_TRAMP_32_ENTRY_
> make[3]: *** [multiboot-smp] Error 1

This somehow happens with more recent gcc/binutils. I've commited the
following 'fix' (will be in the public CVS by tomorrow):

--- /home/cvs/oskit/examples/x86/GNUmakerules	1 Oct 2003 16:30:21 -0000	1.3
+++ /home/cvs/oskit/examples/x86/GNUmakerules	13 Jul 2005 09:57:28 -0000	1.4
@@ -20,7 +20,8 @@
 ifndef _oskit_libkern_makerules_
 _oskit_libkern_makerules_ = yes
 
-TARGETS = multiboot multiboot-gdb multiboot-smp fdev_test part_read
+TARGETS = multiboot multiboot-gdb fdev_test part_read
+#TARGETS += multiboot-smp
 
 all: $(TARGETS)
 


Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list