tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Successful compilation of toolchain on ubuntu, but failed compilation of netbsd on ubuntu using that toolchain
Hi there!
IRC nick on freenode #NetBSD: Alba
This is my first mail, apologizes if i unintentionally skipped some formality or some process.
Thanks in advance!
But the least I think I could do now is describe how did I come up with the following error.
1. I downloaded NetBSD 5.1.2
2. I ran Ubuntu 12.04
3. After that, I extracted NetBSD 5.1.2
4. From the errors I got during configuration phase, I did 3 things (install zlib, change permission for missing.sh to executable, install g++)
5. That allowed me to run "sudo ./build.sh -m i386 tools" successfully
6. With the toolchain built, I proceeded to: 31.4. Crosscompiling the kernel with build.sh
7. After I ran "./build.sh -u -m i386 kernel=MYKERNEL"
, I got the following error which I will continue trying to resolve tmr:
*** buffer overflow detected ***: /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb76eedd5]
/lib/i386-linux-gnu/libc.so.6(+0xfebaa)[0xb76edbaa]
/lib/i386-linux-gnu/libc.so.6(+0xfe208)[0xb76ed208]
/lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0xb7660461]
/lib/i386-linux-gnu/libc.so.6(_IO_padn+0xc9)[0xb7653f79]
/lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x3282)[0xb7632a72]
/lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0xb76ed2d9]
/lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0xb76ed1ef]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x804de56]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x804fef0]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x8056fbb]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x804aee5]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x804bfb1]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb76084d3]
/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar[0x80493f1]
======= Memory map: ========
08048000-080a9000 r-xp 00000000 08:01 3151079 /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar
080a9000-080aa000 r--p 00061000 08:01 3151079 /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar
080aa000-080ab000 rw-p 00062000 08:01 3151079 /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar
080ab000-080af000 rw-p 00000000 00:00 0
08100000-08142000 rw-p 00000000 00:00 0 [heap]
b75bf000-b75db000 r-xp 00000000 08:01 8127412 /lib/i386-linux-gnu/libgcc_s.so.1
b75db000-b75dc000 r--p 0001b000 08:01 8127412 /lib/i386-linux-gnu/libgcc_s.so.1
b75dc000-b75dd000 rw-p 0001c000 08:01 8127412 /lib/i386-linux-gnu/libgcc_s.so.1
b75ee000-b75ef000 rw-p 00000000 00:00 0
b75ef000-b778e000 r-xp 00000000 08:01 8127391 /lib/i386-linux-gnu/libc-2.15.so
b778e000-b7790000 r--p 0019f000 08:01 8127391 /lib/i386-linux-gnu/libc-2.15.so
b7790000-b7791000 rw-p 001a1000 08:01 8127391 /lib/i386-linux-gnu/libc-2.15.so
b7791000-b7794000 rw-p 00000000 00:00 0
b77a4000-b77a7000 rw-p 00000000 00:00 0
b77a7000-b77a8000 r-xp 00000000 00:00 0 [vdso]
b77a8000-b77c8000 r-xp 00000000 08:01 8127371 /lib/i386-linux-gnu/ld-2.15.so
b77c8000-b77c9000 r--p 0001f000 08:01 8127371 /lib/i386-linux-gnu/ld-2.15.so
b77c9000-b77ca000 rw-p 00020000 08:01 8127371 /lib/i386-linux-gnu/ld-2.15.so
bfc1c000-bfc3f000 rw-p 00000000 00:00 0 [stack]
Aborted (core dumped)
*** Failed target: libcompat.a
*** Failed command: /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar cq libcompat.a `NM=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-nm NM=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-nm MKTEMP=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nbmktemp /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nblorder compat_exec.o compat_util.o kern_exit_43.o kern_info_43.o kern_resource_43.o kern_sig_43.o tty_43.o uipc_syscalls_43.o vfs_syscalls_43.o vm_43.o kern_info_09.o kern_xxx_12.o vfs_syscalls_12.o vm_12.o kern_sig_13.o sysv_ipc_14.o sysv_msg_14.o sysv_shm_14.o sysv_sem_14.o vfs_syscalls_20.o vfs_syscalls_30.o uipc_syscalls_30.o uipc_syscalls_40.o kern_ipc_10.o | /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nbtsort -q`
*** Error code 134
Stop.
nbmake: stopped in /home/jorge/netbsd/5.1.2/usr/src/sys/arch/i386/compile/obj/MYKERNEL/lib/compat
*** Failed target: /home/jorge/netbsd/5.1.2/usr/src/sys/arch/i386/compile/obj/MYKERNEL/lib/compat/libcompat.a
*** Failed command: cd /home/jorge/netbsd/5.1.2/usr/src/sys/arch/i386/compile/obj/MYKERNEL/lib/compat && /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nbmake -f /home/jorge/netbsd/5.1.2/usr/src/sys/compat/common/Makefile COMPATDIR=/home/jorge/netbsd/5.1.2/usr/src/sys/compat/common CC=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-gcc CFLAGS=\ -ffreestanding\ -fno-zero-initialized-in-bss\ \ -O2\ -std=gnu99\ -fno-strict-aliasing\ \ \ -Werror\ -Wall\ -Wno-main\ -Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\ -Wstrict-prototypes\ -Wswitch\ -Wshadow\ -Wcast-qual\ -Wwrite-strings\ -Wno-unreachable-code\ -Wno-sign-compare\ -Wno-pointer-sign\ -Wno-attributes\ -Wextra\ -Wno-unused-parameter\ \ -Werror\ -march=i486\ -mtune=pentiumpro AS=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-as AFLAGS=\ -x\ assembler-with-cpp\ -traditional-cpp\ -D_LOCORE\ -Wa,-fatal-warnings\ \ -march=i486\ -mtune=pentiumpro AR=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ar NM=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-nm LORDER=NM=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-nm\ MKTEMP=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nbmktemp\ /home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nblorder TSORT=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/nbtsort\ -q RANLIB=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ranlib LD=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-ld STRIP=/home/jorge/netbsd/5.1.2/usr/src/tooldir.Linux-3.2.0-29-generic-pae-i686/bin/i386--netbsdelf-strip MACHINE=i386 MACHINE_ARCH=i386 COMPATCPPFLAGS=-Di386\ -I../../.\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/../common/include\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/arch\ -I/home/jorge/netbsd/5.1.2/usr/src/sys\ -nostdinc\ -DLKM\ -DMAXUSERS=64\ -D_KERNEL\ -D_KERNEL_OPT\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/lib/libkern/../../../common/lib/libc/quad\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/lib/libkern/../../../common/lib/libc/string\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/external/isc/atheros_hal/dist\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/external/isc/atheros_hal/ic\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/../common/include\ -I/home/jorge/netbsd/5.1.2/usr/src/sys/dist/ipf LINTFLAGS=-bcehnxzFS libcompat.a
*** Error code 1
Stop.
nbmake: stopped in /home/jorge/netbsd/5.1.2/usr/src/sys/arch/i386/compile/obj/MYKERNEL
ERROR: Failed to make all in /home/jorge/netbsd/5.1.2/usr/src/sys/arch/i386/compile/obj/MYKERNEL
*** BUILD ABORTED ***
Home |
Main Index |
Thread Index |
Old Index