|
From: | gian pendola |
Subject: | error building Mach on 64-bit Gentoo |
Date: | Sat, 31 Dec 2011 18:35:58 -0800 (PST) |
Hello, My host system is Gentoo, 64-bit. Already installed a Hurd image using qemu-KVM, and decided to build Mach from scratch on the Gentoo system. Followed the instructions in: http://www.gnu.org/software/hurd/microkernel/mach/gnumach/building.html (not Debian), I get the following: gcc -m32 -nostdlib -nostartfiles -r -static \ -o clib-routines.o `sed 's/^/-Wl,-u,/' < gnumach-undef` -x c /dev/null -lc -lgcc ld -melf_i386 --defsym _START=0x100000 -T '..'/i386/ldscript -o gnumach gnumach.o clib-routines.o clib-routines.o: In function `strcpy': (.text+0x11ea8): multiple definition of `strcpy' gnumach.o:/root/gnumach/build/../kern/strings.c:118: first defined here clib-routines.o: In function `strncmp': (.text+0x125ac): multiple definition of `strncmp' gnumach.o:/root/gnumach/build/../kern/strings.c:88: first defined here clib-routines.o: In function `strncpy': (.text+0x33868): multiple definition of `strncpy' gnumach.o:/root/gnumach/build/../kern/strings.c:141: first defined here clib-routines.o: In function `time': (.text+0x34b90): multiple definition of `time' gnumach.o:/root/gnumach/build/../i386/i386at/kd.c:1846: first defined here ld: Warning: size of symbol `time' changed from 8 in gnumach.o to 29 in clib-routines.o ld: Warning: type of symbol `time' changed from 1 to 2 in clib-routines.o clib-routines.o: In function `strcmp': (.text+0x11e40): multiple definition of `strcmp' gnumach.o:/root/gnumach/build/../kern/strings.c:60: first defined here clib-routines.o: In function `__new_fclose': (.text+0x6896): undefined reference to `_Unwind_Resume' clib-routines.o: In function `fflush': (.text+0x69c0): undefined reference to `_Unwind_Resume' clib-routines.o: In function `_IO_wfile_underflow': (.text+0x777e): undefined reference to `_Unwind_Resume' clib-routines.o: In function `_IO_new_file_underflow': (.text+0x9259): undefined reference to `_Unwind_Resume' clib-routines.o: In function `_IO_file_fopen': (.text+0xa1b2): undefined reference to `_Unwind_Resume' clib-routines.o:(.text+0x1341e): more undefined references to `_Unwind_Resume' follow clib-routines.o: In function `__backtrace': (.text+0x14ebc): undefined reference to `_Unwind_Backtrace' clib-routines.o: In function `backtrace_helper': null:(.text+0x14f56): undefined reference to `_Unwind_GetIP' null:(.text+0x14f76): undefined reference to `_Unwind_GetGR' null:(.text+0x14f81): undefined reference to `_Unwind_GetCFA' clib-routines.o: In function `__vfprintf_chk': (.text+0x15321): undefined reference to `_Unwind_Resume' clib-routines.o: In function `fputs': (.text+0x31543): undefined reference to `_Unwind_Resume' clib-routines.o: In function `ftell': (.text+0x316f5): undefined reference to `_Unwind_Resume' clib-routines.o: In function `fwrite': (.text+0x318fd): undefined reference to `_Unwind_Resume' clib-routines.o: In function `_IO_getdelim': (.text+0x31b8e): undefined reference to `_Unwind_Resume' clib-routines.o:(.text+0x31fc9): more undefined references to `_Unwind_Resume' follow clib-routines.o:(.eh_frame+0x7b6): undefined reference to `__gcc_personality_v0' clib-routines.o:(.eh_frame+0x8c2): undefined reference to `__gcc_personality_v0' clib-routines.o:(.eh_frame+0xa1a): undefined reference to `__gcc_personality_v0' clib-routines.o:(.eh_frame+0xc1e): undefined reference to `__gcc_personality_v0' clib-routines.o:(.eh_frame+0x339a): undefined reference to `__gcc_personality_v0' clib-routines.o:(.eh_frame+0x3b1e): more undefined references to `__gcc_personality_v0' follow make: *** [gnumach] Error 1 I read that someone else had similar problems because he lacked libc.a in /usr/lib, which I do have. Trying to sort out what's happening, but I just get that it has something to do about statically linking and/or compiler directives. I'm using glibc 2.12.2, gcc 4.5.3. Thanks in advance for any help! Gian Paolo |
[Prev in Thread] | Current Thread | [Next in Thread] |