OpenWrt Forum Archive

Topic: Error whlie compiling

The content of this topic has been archived on 7 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi i get the following Error if i tried to compile kamikazetrunk from the Sources.
Can someone help ?
make[1]: Entering directory `/home/sascha/kamikaze'
make[2]: Entering directory `/home/sascha/kamikaze'
++ mkdir -p /home/sascha/kamikaze/staging_dir/armeb
++ cd /home/sascha/kamikaze/staging_dir/armeb
++ mkdir -p bin lib include stamp
++ mkdir -p /home/sascha/kamikaze/staging_dir/host
++ cd /home/sascha/kamikaze/staging_dir/host
++ mkdir -p bin lib include stamp
mkdir -p /home/sascha/kamikaze/build_dir/host/stamp /home/sascha/kamikaze/build_dir/armeb/stamp
install -m0644 /home/sascha/kamikaze/tools/include/*.h /home/sascha/kamikaze/staging_dir/host/include/
touch /home/sascha/kamikaze/staging_dir/armeb/.prepared
make[3]: Entering directory `/home/sascha/kamikaze/tools/sed'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/sed'
make[3]: Entering directory `/home/sascha/kamikaze/tools/sed'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/sed'
make[3]: Entering directory `/home/sascha/kamikaze/tools/sstrip'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/sstrip'
make[3]: Entering directory `/home/sascha/kamikaze/tools/sstrip'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/sstrip'
make[3]: Entering directory `/home/sascha/kamikaze/tools/ipkg-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/ipkg-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/ipkg-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/ipkg-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/genext2fs'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/genext2fs'
make[3]: Entering directory `/home/sascha/kamikaze/tools/genext2fs'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/genext2fs'
make[3]: Entering directory `/home/sascha/kamikaze/tools/lzma'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/lzma'
make[3]: Entering directory `/home/sascha/kamikaze/tools/lzma'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/lzma'
make[3]: Entering directory `/home/sascha/kamikaze/tools/squashfs'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/squashfs'
make[3]: Entering directory `/home/sascha/kamikaze/tools/squashfs'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/squashfs'
make[3]: Entering directory `/home/sascha/kamikaze/tools/mtd-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/mtd-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/mtd-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/mtd-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/mkimage'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/mkimage'
make[3]: Entering directory `/home/sascha/kamikaze/tools/mkimage'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/mkimage'
make[3]: Entering directory `/home/sascha/kamikaze/tools/firmware-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/firmware-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/firmware-utils'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/firmware-utils'
make[3]: Entering directory `/home/sascha/kamikaze/tools/patch-cmdline'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/patch-cmdline'
make[3]: Entering directory `/home/sascha/kamikaze/tools/patch-cmdline'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/patch-cmdline'
make[3]: Entering directory `/home/sascha/kamikaze/tools/pkg-config'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/pkg-config'
make[3]: Entering directory `/home/sascha/kamikaze/tools/pkg-config'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/pkg-config'
make[3]: Entering directory `/home/sascha/kamikaze/tools/automake'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/automake'
make[3]: Entering directory `/home/sascha/kamikaze/tools/automake'
make[3]: Leaving directory `/home/sascha/kamikaze/tools/automake'
make[3]: Entering directory `/home/sascha/kamikaze/tools/dtc'
make -C /home/sascha/kamikaze/build_dir/armeb/dtc
make[4]: Entering directory `/home/sascha/kamikaze/build_dir/armeb/dtc'
bison -d dtc-parser.y
"dtc-parser.y", line 21: junk after `%%' in definition section
"dtc-parser.y", line 21: no input grammar
*** glibc detected *** bison: double free or corruption (!prev): 0x0805b4b0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x401b47cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0x401b7e30]
/lib/tls/i686/cmov/libc.so.6(fclose+0x134)[0x401a3844]
bison[0x804eb1f]
bison[0x805586b]
bison[0x805596b]
bison[0x8050047]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0x40162ebc]
bison(__gxx_personality_v0+0x59)[0x8048db1]
======= Memory map: ========
08048000-0805a000 r-xp 00000000 08:18 3103364    /usr/bin/bison
0805a000-0805b000 rw-p 00011000 08:18 3103364    /usr/bin/bison
0805b000-0807c000 rw-p 0805b000 00:00 0          [heap]
40000000-40019000 r-xp 00000000 08:18 393237     /lib/ld-2.5.so
40019000-4001b000 rw-p 00019000 08:18 393237     /lib/ld-2.5.so
4001b000-40022000 rw-p 4001b000 00:00 0
40023000-40024000 rw-p 40023000 00:00 0
4002f000-4010e000 r-xp 00000000 08:18 3099162    /usr/lib/libstdc++.so.6.0.8
4010e000-40111000 r--p 000de000 08:18 3099162    /usr/lib/libstdc++.so.6.0.8
40111000-40113000 rw-p 000e1000 08:18 3099162    /usr/lib/libstdc++.so.6.0.8
40113000-40119000 rw-p 40113000 00:00 0
40119000-4013e000 r-xp 00000000 08:18 396519     /lib/tls/i686/cmov/libm-2.5.so
4013e000-40140000 rw-p 00024000 08:18 396519     /lib/tls/i686/cmov/libm-2.5.so
40140000-4014b000 r-xp 00000000 08:18 393278     /lib/libgcc_s.so.1
4014b000-4014c000 rw-p 0000a000 08:18 393278     /lib/libgcc_s.so.1
4014c000-4014d000 rw-p 4014c000 00:00 0
4014d000-40288000 r-xp 00000000 08:18 396511     /lib/tls/i686/cmov/libc-2.5.so
40288000-40289000 r--p 0013b000 08:18 396511     /lib/tls/i686/cmov/libc-2.5.so
40289000-4028b000 rw-p 0013c000 08:18 396511     /lib/tls/i686/cmov/libc-2.5.so
4028b000-4028f000 rw-p 4028b000 00:00 0
40300000-40321000 rw-p 40300000 00:00 0
40321000-40400000 ---p 40321000 00:00 0
bfea2000-bfeb7000 rw-p bfea2000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
set -e; echo '  CHK version_gen.h'; mkdir -p ./;        (echo "#define DTC_VERSION \"DTC 1.1.0\""; ) < Makefile > version_gen.h.tmp; if [ -r version_gen.h ] && cmp -s version_gen.h version_gen.h.tmp; then rm -f version_gen.h.tmp; else echo '       UPD version_gen.h'; mv -f version_gen.h.tmp version_gen.h; fi;
        CHK version_gen.h
make[4]: Leaving directory `/home/sascha/kamikaze/build_dir/armeb/dtc'
make[3]: *** [/home/sascha/kamikaze/build_dir/armeb/dtc/.built] Error 2
make[3]: Leaving directory `/home/sascha/kamikaze/tools/dtc'
make[2]: *** [tools/dtc/compile] Error 2
make[2]: Leaving directory `/home/sascha/kamikaze'
make[1]: *** [/home/sascha/kamikaze/staging_dir/armeb/stamp/.tools_install] Error 2
make[1]: Leaving directory `/home/sascha/kamikaze'
make: *** [world] Fehler 2

okay !
i have installed the needed packages again and now it sems to be work !
Great ! Thanks

The discussion might have continued from here.