l4-hurd
[Top][All Lists]
Advanced

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

more fun bugs in the build processes...


From: Alfred M. Szmidt
Subject: more fun bugs in the build processes...
Date: Fri, 16 Jan 2004 11:09:34 +0100 (MET)

Christopher Nelson spurred my curiousity a bit, so I tried to get
hurd-l4 going on GNU/Hurd for kicks while waiting for libc to compile.
Not really sure how to clean this bit up, since it is quite system
specific.

In [hurd-l4]/laden/Makefile we have:

routines_objects := $(shell $(NM) --print-armap @STATIC_GLIBC@ 2>/dev/null \
        | $(SED) -n -e $(routines_subexp) | $(SORT) -u)

which won't work on GNU/Hurd, since the static library is a linker
script, and nm barfs on that; which will cause a silent error to go
passed unnoticed resuling in a bunch of undefined symbols since it
can't extract them.

hurd:/home/ams/hurd/hurd-l4# nm --print-armap /lib/libc.a
nm: /lib/libc.a: File format not recognized
hurd:/home/ams/hurd/hurd-l4# 

cd /home/ams/hurd/hurd-l4/
make
[...snip...]
Making all in laden
make[2]: Entering directory `/home/ams/hurd/hurd-l4/laden'
gcc  -g -O2   -o laden -u_start -e_start -N -nostdlib -Ttext=0x180000 
ia32-crt0.o laden-ia32-cmain.o laden-ia32-output.o laden-output-vga.o 
laden-output-serial.o laden-ia32-shutdown.o laden-output.o laden-output-none.o 
laden-shutdown.o laden-loader.o laden-laden.o laden-kip-fixup.o -lgcc 
../libc-parts/libc-parts.a 
laden-output-serial.o(.text+0x1f): In function `serial_init':
/home/ams/hurd/hurd-l4/laden/output-serial.c:76: undefined reference to `strlen'
laden-output-serial.o(.text+0x3e):/home/ams/hurd/hurd-l4/laden/output-serial.c:76:
 undefined reference to `memcpy'
laden-output-serial.o(.text+0x4f):/home/ams/hurd/hurd-l4/laden/output-serial.c:77:
 undefined reference to `strtok'
laden-output-serial.o(.text+0xc4):/home/ams/hurd/hurd-l4/laden/output-serial.c:104:
 undefined reference to `strtok'
laden-output.o(.text+0x46): In function `output_init':
/home/ams/hurd/hurd-l4/laden/output.c:60: undefined reference to `strlen'
laden-output.o(.text+0x5b):/home/ams/hurd/hurd-l4/laden/output.c:61: undefined 
reference to `strncmp'
laden-loader.o(.text+0x401): In function `loader_remove_region':
/home/ams/hurd/hurd-l4/laden/loader.c:166: undefined reference to `strcmp'
laden-loader.o(.text+0x8ec): In function `loader_elf_load':
/home/ams/hurd/hurd-l4/laden/loader.c:307: undefined reference to `memcpy'
laden-loader.o(.text+0x92e):/home/ams/hurd/hurd-l4/laden/loader.c:311: 
undefined reference to `memset'
laden-kip-fixup.o(.text+0x17d): In function `kip_fixup':
/home/ams/hurd/hurd-l4/laden/kip-fixup.c:68: undefined reference to `memcpy'
collect2: ld returned 1 exit status
make[2]: *** [laden] Error 1
make[2]: Leaving directory `/home/ams/hurd/hurd-l4/laden'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ams/hurd/hurd-l4'
make: *** [all] Error 2

Compilation exited abnormally with code 2 at Fri Jan 16 19:13:18






reply via email to

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