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

Compilation fails on 1.8.7-head (rvm) - warnings treated as errors #42

Closed
aslakhellesoy opened this issue Jan 16, 2010 · 3 comments
Closed

Comments

@aslakhellesoy
Copy link
Contributor

Sample output:

$ rvm 1.8.7-head
$ rake clean compile

(snip)

gcc -I. -I/Users/aslakhellesoy/.rvm/ruby-1.8.7-head/include/ruby-1.9.1/i386-darwin9.8.0 -I/Users/aslakhellesoy/.rvm/ruby-1.8.7-head/include/ruby-1.9.1/ruby/backward -I/Users/aslakhellesoy/.rvm/ruby-1.8.7-head/include/ruby-1.9.1 -I../../../../ext/gherkin_lexer_ar -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long  -pipe -O0 -Wall -Werror  -o gherkin_lexer_ar.o -c ../../../../ext/gherkin_lexer_ar/gherkin_lexer_ar.c
cc1: warnings being treated as errors
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl: In function ‘CLexer_scan’:
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:215: warning: comparison between signed and unsigned
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:215: warning: comparison between signed and unsigned
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:376: warning: comparison between signed and unsigned
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:377: warning: comparison between signed and unsigned
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:378: warning: comparison between signed and unsigned
{standard input}:5568:non-relocatable subtraction expression, "_rb_eGherkinLexerError" minus "L00000000005$pb"
{standard input}:5568:symbol: "_rb_eGherkinLexerError" can't be undefined in a subtraction expression
gmake: *** [gherkin_lexer_ar.o] Error 1
rake aborted!
Command failed with status (2): [gmake...]

Instead of allowing warnings I think it's safest to fix this. Not sure why the other rubies don't error out.

@aslakhellesoy
Copy link
Contributor Author

Mike or Greg - could you take a look at this?

@ghnatiuk
Copy link
Contributor

2c58ca5 should fix it.

I showed the same errors on 1.9.1 using the same compilation flags, actually.

@aslakhellesoy
Copy link
Contributor Author

Thanks Greg!

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

No branches or pull requests

2 participants