Skip to content

Update for Bison 3.8+ #10

@kkiningh

Description

@kkiningh

I'd like to update to a more recent version of Bison (3.8 or later.) I've made a small attempt to update them myself here, but this fails with errors related to gnulib.

~/Workspace/rules_bison$ bazel test //tests:genrule_test           
WARNING: Download from https://mirror.bazel.build/github.com/coreutils/gnulib/archive/7818455627c5e54813ac89924b8b67d0bc869146.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: Analyzed target //tests:genrule_test (0 packages loaded, 0 targets configured).
INFO: Found 1 target and 0 test targets...
ERROR: /private/var/tmp/_bazel_kkiningh/9d4359696dfa5ef018618c8abc478887/external/bison_v3.8.2/gnulib/BUILD.bazel:171:11: Compiling gnulib/lib/asnprintf.c [for host] failed: (Aborted): wrapped_clang failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG '-DNS_BLOCK_ASSERTIONS=1' ... (remaining 35 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/bison_v3.8.2/gnulib/lib/asnprintf.c:17:
external/bison_v3.8.2/gnulib/config-darwin/config.h:2:10: fatal error: 'gnulib/lib/config.in.h' file not found
#include "gnulib/lib/config.in.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Error in child process '/usr/bin/xcrun'. 1
Target //tests:genrule_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.392s, Critical Path: 0.31s
INFO: 11 processes: 11 internal.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Any chance the rules could be updated? Or guidance on how to fix the gnulib rules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions