Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

gem install bool is broken #51

Open
tom025 opened this issue Jan 4, 2015 · 1 comment
Open

gem install bool is broken #51

tom025 opened this issue Jan 4, 2015 · 1 comment

Comments

@tom025
Copy link

tom025 commented Jan 4, 2015

gem install bool -v 1.0.20 fails with ruby version 2.1.5 on Mac OS 10.10

Install output

======= compiling with clang
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling ast.c
compiling ext.c
compiling lexer.c
lexer.c:74:18: error: unused variable 'lexer_first_final' [-Werror,-Wunused-const-variable]
static const int lexer_first_final = 3;
                 ^
lexer.c:76:18: error: unused variable 'lexer_en_main' [-Werror,-Wunused-const-variable]
static const int lexer_en_main = 3;
                 ^
2 errors generated.
make: *** [lexer.o] Error 1

make failed, exit code 2

This happens when using either clang or gcc-4.8.

This can be overcome simply by appending the install command with -- -with-cflags=-w to ignore unused constants when compiling the gem.

I am not sure how to fix this myself without just removing the flag from ruby/ext/bool_ext/extconf.rb.

@aslakhellesoy
Copy link
Contributor

Thanks @tom025. The purpose of this lib was to prototype a new architecture for Gherkin. It looks like we're going to use a different approach (see the gherkin3 repo) so we might not even use bool. If we decide to ditch bool I'd still like to have a simple parser that can parse boolean expressions for tags, but we can do that with something much simpler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants