Basic 256 Bison Compile Error in Ubuntu
I have downloaded Basic 256 Source code from sourceforge.net. I took the LEX Folder copied it into different location and compiled it as
bison -d basicParse.y
I have got the below Error. I don't know how to fix it.
basicParse.y:380 parser name defined to default :"parse"
basicParse.y:1231: warning: type clash ('' 'number') on default action
basicParse.y:1232: warning: type clash ('' 'number') on default action
basicParse.y:1233: warning: type clash ('' 'number') on default action
basicParse.y:1234: warning: type clash ('' 'number') on default action
basicParse.y:1235: warning: type clash ('' 'number') on default action
basicParse.y:1236: warning: type clash ('' 'number') on default action
basicParse.y:1237: warning: type clash ('' 'number') on default action
basicParse.y:1238: warning: type clash ('' 'number') on default action
basicParse.y:1239: warning: type clash ('' 'number') on default action
basicParse.y:1240: warning: type clash ('' 'number') on default action
basicParse.y:1241: warning: type clash ('' 'number') on default action
basicParse.y:1384: warning: type clash ('' 'number') on default action
basicParse.y:1385: warning: type clash ('' 'number') on default action
basicParse.y:1386: warning: type clash ('' 'number') on default action
basicParse.y:1387: warning: type clash ('' 'number') on default action
basicParse.y:1388: warning: type clash ('' 'number') on default action
basicParse.y:2571: warning: type clash ('' 'floatnum') on default action
basicParse.y:2572: warning: type clash ('' 'string') on default action
basicParse.y contains 3 shift/reduce conflicts.
"basicParse.y", line 3452: maximum table size (32767) exceeded
"basicParse.y", line 3452: maximum table size (32767) exceeded
*** glibc detected *** bison: double free or corruption (!prev): 0x095d24b0 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x73e42)[0x401e1e42]
/lib/i386-linux-gnu/libc.so.6(fclose+0x154)[0x401d1384]
bison[0x804eb1f]
bison[0x804fe9a]
bison[0x8052bb3]
bison[0x8052cf0]
bison[0x8052e78]
bison[0x8052ef6]
bison[0x805007e]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x401874d3]
bison(__gxx_personality_v0+0x59)[0x8048db1]
======= Memory map: ========
08048000-0805a000 r-xp 00000000 08:01 3813560 /usr/bin/bison
0805a000-0805b000 rw-p 00011000 08:01 3813560 /usr/bin/bison
095d2000-096f0000 rw-p 00000000 00:00 0 [heap]
40000000-40020000 r-xp 00000000 08:01 2753419 /lib/i386-linux-gnu/ld-2.15.so
40020000-40021000 r--p 0001f000 08:01 2753419 /lib/i386-linux-gnu/ld-2.15.so
40021000-40022000 rw-p 00020000 08:01 2753419 /lib/i386-linux-gnu/ld-2.15.so
40022000-40023000 r-xp 00000000 00:00 0 [vdso]
40023000-40026000 rw-p 00000000 00:00 0
40027000-4002a000 rw-p 00000000 00:00 0
4002b000-4002c000 rw-p 00000000 00:00 0
4003b000-40118000 r-xp 00000000 08:01 3814236 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
40118000-4011c000 r--p 000dc000 08:01 3814236 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
4011c000-4011d000 rw-p 000e0000 08:01 3814236 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
4011d000-40124000 rw-p 00000000 00:00 0
40124000-4014e000 r-xp 00000000 08:01 2753471 /lib/i386-linux-gnu/libm-2.15.so
4014e000-4014f000 r--p 00029000 08:01 2753471 /lib/i386-linux-gnu/libm-2.15.so
4014f000-40150000 rw-p 0002a000 08:01 2753471 /lib/i386-linux-gnu/libm-2.15.so
40150000-40151000 rw-p 00000000 00:00 0
40151000-4016c000 r-xp 00000000 08:01 2752535 /lib/i386-linux-gnu/libgcc_s.so.1
4016c000-4016d000 r--p 0001a000 08:01 2752535 /lib/i386-linux-gnu/libgcc_s.so.1
4016d000-4016e000 rw-p 0001b000 08:01 2752535 /lib/i386-linux-gnu/libgcc_s.so.1
4016e000-4030d000 r-xp 00000000 08:01 2753439 /lib/i386-linux-gnu/libc-2.15.so
4030d000-4030f000 r--p 0019f000 08:01 2753439 /lib/i386-linux-gnu/libc-2.15.so
4030f000-40310000 rw-p 001a1000 08:01 2753439 /lib/i386-linux-gnu/libc-2.15.so
40310000-40315000 rw-p 00000000 00:00 0
bff71000-bff92000 rw-p 00000000 00:00 0 [stack]
make: *** [all] Aborted (core dumped)
|