Public bug reported: This bug is the result of a StackOverflow question [1], in which the poster attempted to use the Ubuntu byacc package in order to manually build libxkbcommon [2]. The libxkbcommon source includes a version of the xkbcomp utility which in turn includes a grammar description (in src/xkbcomp/parser.y) which claims to be compatible with both bison and byacc. That grammar description uses custom %destructors, a bison extension also available in recent versions of byacc.
According to the byacc package Changelog [3], the package was modified on 10 May 2014 (version 20140422-1) to enable the btyacc extension. This extension is required to support the %destructor declarations. The extension is enabled by specifying --enable-btyacc on the ./configure command. However, the subsequent package version 20140715-1 does not enable that extension. See below. [1]: https://stackoverflow.com/questions/50794051/ubuntu-byacc-btyacc-syntax-error [2]: https://github.com/xkbcommon/libxkbcommon [3]: http://changelogs.ubuntu.com/changelogs/pool/universe/b/byacc/byacc_20140715-1build1/changelog ----- $ dpkg -l byacc Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================- =========================================================== ii byacc 20140715-1 amd64 public domain Berkeley LALR Yacc parser generator $ /usr/bin/byacc -B /usr/bin/byacc: w - -B flag unsupported, reconfigure with --enable-btyacc ** Affects: byacc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1776270 Title: byacc package does not have support for %destructor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byacc/+bug/1776270/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs