l4-hackers Digest, Vol 61, Issue 16

fang zhengshu fangzhsh07 at gmail.com
Wed May 21 04:37:29 CEST 2008


hi ,

>
> >
> -Wl,-T,/home/l4/tudos/l4/pkg/bootstrap/server/src/ARCH-amd64/boot32/bootstrap32.ld,--gc-sections
> boot.o32 boot_idt.o32 boot_cpu.o32 boot_kernel.o32 load_elf.o32
> minilibc_support.o32 bootstrap32.bin
> /home/l4/tudos/build/pkg/bootstrap/server/src/ARCH-amd64/libc32/OBJ-amd64_k8/libc32.a
> -lgcc
> >         /usr/bin/ld: i386 architecture of input file `boot.o32' is
> >         incompatible with i386:x86-64 output
>
> Does it help if you add -m32 to the CC32 line in
> /home/l4/tudos/l4/pkg/bootstrap/server/src/Makefile? like this:
> CC32             = $(filter-out -m64, $(CC)) -m32


 I have done it after add -m32,and the old error was handled.But when I
compile l4 again , there is another error :
---------------------------------------
PWD=/home/l4/tudos/l4/pkg/ipcmon make -C ipcmon all -o lib -o include -o idl
make[2]: Entering directory `/home/l4/tudos/l4/pkg/ipcmon'
test -f server/broken -o -f server/obsolete ||        \
        if [ -f server/Makefile ] ; then
PWD=/home/l4/tudos/l4/pkg/ipcmon/server make -C server  ; fi
make[3]: Entering directory `/home/l4/tudos/l4/pkg/ipcmon/server'
test -f src/broken -o -f src/obsolete ||        \
        if [ -f src/Makefile ] ; then
PWD=/home/l4/tudos/l4/pkg/ipcmon/server/src make -C src  ; fi
make[4]: Entering directory `/home/l4/tudos/l4/pkg/ipcmon/server/src'
PWD=/home/l4/tudos/build/pkg/ipcmon/server/src/OBJ-amd64_k8-l4v2 make  -C
/home/l4/tudos/build/pkg/ipcmon/server/src/OBJ-amd64_k8-l4v2 -f Makefile
make[5]: Entering directory
`/home/l4/tudos/build/pkg/ipcmon/server/src/OBJ-amd64_k8-l4v2'
  ==> Linking ipcmon
LD_PRELOAD=/home/l4/tudos/build/tool/gendep/libgendep.so
GENDEP_TARGET=ipcmon GENDEP_BINARY=ld  GENDEP_BINARY_ALT1=ld ld -m
elf_x86_64 -o ipcmon /home/l4/tudos/build/lib/amd64_k8/crt0.o components.o
capdescriptor.o capmanager.o blacklist.o whitelist.o ipcmon-server.o -n
-Ttext=0x1000000 --hash-style=sysv  -L/home/l4/tudos/build/lib/amd64_k8/l4v2
-L/home/l4/tudos/build/lib/amd64_k8 -L/home/l4/tudos/build/lib
-L/home/l4/tudos/lib/amd64_k8/l4v2 -L/home/l4/tudos/lib/amd64_k8
-L/home/l4/tudos/lib  -T/home/l4/tudos/build/lib/amd64_k8/main_stat.ld
-lparsecmdline -static -lgeneric_ts -ll4env -ll4rm -ldm_generic -ldm_mem
-lthread -lsemaphore -llogserver_capsule -lnames -ll4util_root -ll4util
-lroot -ll4env -ll4env_err -ll4rm -ldm_generic -ldm_mem -lthread -lslab
-ll4sys -luc_c++ -lc++start.o
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libsupc++.a -lmain -lcxx_base -nostdlib
-luc_c -luclibc_support -u mmap_anon -lc_be_simple_mem -lc_be_mmap
-lc_be_mmap_util -lc_be_l4env_start_stop -lc_be_minimal_log_io
-luc_be_simple_sleep -ll4env -llogserver_capsule -ll4rm -ldm_generic
-ldm_mem -lthread -lgeneric_ts -lsigma0 -luc_c
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc_eh.a
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a  -luc_c -ll4sys -ll4util
-luc_be_minimal_io -Ttext=0x1000000 --warn-common -gc-sections
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libsupc++.a(eh_alloc.o): In function
`__static_initialization_and_destruction_0(int, int)':
(.text._Z41__static_initialization_and_destruction_0ii+0xa2): undefined
reference to `__stack_chk_fail'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libsupc++.a(cp-demangle.o): In function
`d_demangle':
(.text+0x4232): undefined reference to `__stack_chk_fail'
make[5]: *** [ipcmon] error 1
make[5]: Leaving directory
`/home/l4/tudos/build/pkg/ipcmon/server/src/OBJ-amd64_k8-l4v2'
make[4]: *** [/home/l4/tudos/build/pkg/ipcmon/server/src/OBJ-amd64_k8-l4v2]
error 2
make[4]: Leaving directory `/home/l4/tudos/l4/pkg/ipcmon/server/src'
make[3]: *** [src] error 2
make[3]: Leaving directory `/home/l4/tudos/l4/pkg/ipcmon/server'
make[2]: *** [server] error 2
make[2]: Leaving directory `/home/l4/tudos/l4/pkg/ipcmon'
make[1]: *** [ipcmon.bin] error 2
make[1]: Leaving directory `/home/l4/tudos/l4/pkg'
make: *** [pkg] error 2
l4 at fwnc:~/tudos/l4$
---------------------------------------
I come across the stack problem last week when I reinstall
grub-0.97-os.7,and handle it by add CFLAGS=-fno-stack-protector.So I think
it's the same question,and add
CFLAGS =-fno-stack-protector in pkg/ipcmon/server/src/Makefile
but the problem cann't be handled.
Could you please give some advice?
much thanks!


fang,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20080521/6086e6b2/attachment.html>


More information about the l4-hackers mailing list