L4Env compilation error

Adam Lackorzynski adam at os.inf.tu-dresden.de
Thu Feb 17 16:38:45 CET 2005


On Thu Feb 17, 2005 at 09:25:24 -0600, Jayesh Salvi wrote:
> I had my L4Env compiled last weekend, but after that I had to upgrade my
> linux to Fedora Core 3, which changed my compiler version. So I started
> compiling form scratch and I stumbled on this error. I have appended the
> compiler version at the end.
> 
> make[3]: Entering directory `/home/jayesh/oskit/examples'
> 
> gcc -c -MD -DHAVE_CONFIG_H  -DOSKIT -D__KERNEL__ -I. -I../examples/x86
> -I- -I.. -I.. -I../flux/c -I../libfdev_linux/include -nostdinc -g -O2
> -march=i586 -Wall  ../examples/x86/multiboot.c
> 
> ld -Ttext 100000  -L../lib \
> 
>         -o multiboot ../lib/multiboot.o multiboot.o             \
> 
>         -lkern -lmc -llmm ../lib/crtn.o
> /usr/lib/gcc/i386-redhat-linux/3.4.2/libgcc.a
> 
> gcc -c -MD -DHAVE_CONFIG_H  -DOSKIT -D__KERNEL__ -I. -I../examples/x86
> -I- -I.. -I.. -I../flux/c -I../libfdev_linux/include -nostdinc -g -O2
> -march=i586 -Wall  ../examples/x86/multiboot-gdb.c
> 
> ld -Ttext 100000  -L../lib \
> 
>         -o multiboot-gdb ../lib/multiboot.o multiboot-gdb.o
> \
> 
>         -lkern -lmc -llmm ../lib/crtn.o
> /usr/lib/gcc/i386-redhat-linux/3.4.2/libgcc.a
> 
> gcc -c -MD -DHAVE_CONFIG_H  -DOSKIT -D__KERNEL__ -I. -I../examples/x86
> -I- -I.. -I.. -I../flux/c -I../libfdev_linux/include -nostdinc -g -O2
> -march=i586 -Wall  ../examples/x86/multiboot-smp.c
> 
> ld -Ttext 100000  -L../lib \
> 
>         -o multiboot-smp ../lib/multiboot.o multiboot-smp.o
> \
> 
>         -lsmp -lkern -lmc -llmm ../lib/crtn.o
> /usr/lib/gcc/i386-redhat-linux/3.4.2/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_
> 
> [jayesh at orion l4]$ gcc -v
> Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-java-awt=gtk
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Which version of binutils/ld is FC3 using? 2.15 usually works, FC
probably has some beta versions? That could be the problem.

On the other side this are just examples, so you can just skip them.



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