Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbenv install 1.9.3-p385 fails #287

Closed
kenhan opened this issue Feb 12, 2013 · 7 comments
Closed

rbenv install 1.9.3-p385 fails #287

kenhan opened this issue Feb 12, 2013 · 7 comments

Comments

@kenhan
Copy link

kenhan commented Feb 12, 2013

on 10.8.2

BUILD FAILED

Inspect or clean up the working tree at /var/folders/4c/kgtmw3011dn_ckkjmh1s09yc0000gn/T/ruby-build.20130212084115.29377
Results logged to /var/folders/4c/kgtmw3011dn_ckkjmh1s09yc0000gn/T/ruby-build.20130212084115.29377.log

Last 10 log lines:
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;
~~~~~~ ~~~^~~~~~~~~~~
1 error generated.
make: *** [regparse.o] Error 1
make: *** Waiting for unfinished jobs....

@jeremy
Copy link
Member

jeremy commented Feb 12, 2013

Dupe of #281, #285, #286, etc :)

@jeremy jeremy closed this as completed Feb 12, 2013
@kenhan
Copy link
Author

kenhan commented Feb 14, 2013

Thanks for responding. But when I followed the dupe issues, I'm not sure what the solution to the failed build is. Shouldn't a closing an issue mean that rbenv no longer has the problem?

@jeremy
Copy link
Member

jeremy commented Feb 14, 2013

brew install apple-gcc then install. It's an issue with this patchlevel of 1.9.3, unfortunately.

@sferik
Copy link
Contributor

sferik commented Feb 14, 2013

I believe the actually commands you want are:

brew tap homebrew/dupes
brew install apple-gcc42

@jeremy
Copy link
Member

jeremy commented Feb 14, 2013

Thanks @sferik 😁

@kevinSuttle
Copy link

Yep you need apple-gcc42. There is no apple-gcc formula in Homebrew.

@jeremy
Copy link
Member

jeremy commented Feb 25, 2013

Setting CFLAGS=-Wno-error=shorten-64-to-32 fixes this too.

geoffharcourt pushed a commit to geoffharcourt/laptop that referenced this issue Dec 1, 2013
Avoid errors like:

    st.c:520:35: error: implicit conversion loses integer precision:
    'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
    i = table->num_entries++; ~ ~~~~~~~~~~~~~~~~~~^~

rbenv/ruby-build#287
ronald05arias pushed a commit to ronald05arias/environment that referenced this issue Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants