For some reason I can’t get Bison-2.7 to run on MacOS 10.13. As I’ve posted in the past, I need the older version of bison (for the time being) for our older grammar files.
Anyone understand why this is happening? The same version of bison running on 10.10 is just fine. Configured and built with the following, to ensure that I get the local version of gcc, not the /opt/local/bin version. Not that this makes a whit of difference in the final result. PATH=/usr/bin:$PATH ./configure -prefix=/opt/local/bison-2.7 PATH=/usr/bin:$PATH make -j It crashes with the following stack trace: lldb ./src/bison (lldb) r --version Process 54032 launched: './src/bison' (x86_64) Process 54032 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x00007fff7bfe2eb6 libsystem_kernel.dylib`__abort_with_payload + 10 libsystem_kernel.dylib`__abort_with_payload: -> 0x7fff7bfe2eb6 <+10>: jae 0x7fff7bfe2ec0 ; <+20> 0x7fff7bfe2eb8 <+12>: movq %rax, %rdi 0x7fff7bfe2ebb <+15>: jmp 0x7fff7bfdaae9 ; cerror_nocancel 0x7fff7bfe2ec0 <+20>: retq Target 0: (bison) stopped. (lldb) where error: 'where' is not a valid command. error: Unrecognized command 'where'. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT * frame #0: 0x00007fff7bfe2eb6 libsystem_kernel.dylib`__abort_with_payload + 10 frame #1: 0x00007fff7bfdd2b8 libsystem_kernel.dylib`abort_with_payload_wrapper_internal + 89 frame #2: 0x00007fff7bfdd2e5 libsystem_kernel.dylib`abort_with_payload + 9 frame #3: 0x00007fff7bef3ecc libsystem_c.dylib`_os_crash_fmt + 182 frame #4: 0x00007fff7bf2a8a8 libsystem_c.dylib`__vfprintf + 16526 frame #5: 0x00007fff7bf4f059 libsystem_c.dylib`__v2printf + 473 frame #6: 0x00007fff7bf3434b libsystem_c.dylib`_vsnprintf + 415 frame #7: 0x00007fff7bf343a8 libsystem_c.dylib`vsnprintf_l + 41 frame #8: 0x00007fff7bf25318 libsystem_c.dylib`snprintf + 180 frame #9: 0x0000000100045824 bison`vasnprintf(resultbuf=<unavailable>, lengthp=<unavailable>, format=<unavailable>, args=<unavailable>) at vasnprintf.c:0 [opt] frame #10: 0x0000000100046a60 bison`rpl_vfprintf(fp=0x00007fffb45271a8, format=<unavailable>, args=<unavailable>) at vfprintf.c:43 [opt] frame #11: 0x0000000100043a20 bison`_rpl_printf(format=<unavailable>) at printf.c:36 [opt] frame #12: 0x0000000100007796 bison`getargs [inlined] version at getargs.c:428 [opt] frame #13: 0x0000000100007781 bison`getargs(argc=2, argv=0x00007ffeefbff638) at getargs.c:645 [opt] frame #14: 0x000000010000c6c5 bison`main(argc=2, argv=0x00007ffeefbff638) at main.c:80 [opt] frame #15: 0x00007fff7be93015 libdyld.dylib`start + 1 frame #16: 0x00007fff7be93015 libdyld.dylib`start + 1 (lldb)