-
Notifications
You must be signed in to change notification settings - Fork 20
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
Linecache19 fails to compile with 1.9.3-head #8
Comments
Works fine for me. Are you using the --with-ruby-include=/ parameter? |
I'm using RVM, bundler and ruby 1.9.3, no flags, same problem as above. ruby 1.9.3dev (2011-06-22 trunk 32202) [x86_64-darwin10.7.0] |
wrong way: cat ./ruby-1.9.2-p180/include/ruby-1.9.1/ruby-1.9.2-p180/vm_core.h |
I think the problem is back for 1.9.3-preview1. @mark-moseley can you update ruby preview YAML so as, linecache works on 1.9.3 (if thats the problem afaik). |
i'm seeing the same issue on 1.9.3preview1 |
Had to use the --with-ruby-include "gem install linecache19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-preview1" |
It compiles with I am getting similar error for ruby-debug on |
Bhavin, your error suspiciously looks like, as if it got compiled against wrong version of ruby or something. |
nopes.. I have compiled it against right version. Here's the dump of my command sequence. |
Ditto, ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin11.0.0] |
Having the same issue on rvm 1.9.3-preview1 :( |
|
Actually now that I think about it I used this to install linecache |
If you're using bundler, you can set it up to handle this whenever the ruby version changes (if you want to stay on the bleeding edge):
And as a bonus, if you're also using perftools:
(Note, I am also getting the "Symbol not found: _ruby_current_thread" error whenever actually trying to load ruby-debug or linecache) |
@nevir : Thats true. I can compile and install these gems without any issue after setting |
I'm going to try and see if this resolves the symbol not found error. |
I'm also facing the "fatal error: vm_core.h: No such file or directory" issue. My log was basically the same as OP's. It had this: checked program was: |
The Markdown in @joeperic's comment seems broken, should read: #include "ruby.h"
#include <vm_core.h> |
Yes, thank you janv |
I did something similar to bhavinkamani and it worked. This seems to work: 'gem install linecache19 -- --with-ruby-include=[directory for ruby source]' |
So, 1.9.3-RC1 is out. I just tried to require linecache19 and this problem still exists :( But the problem is being worked on, the discussion is here: |
fwiw, I've combined solutions from @nevir (setting --with-ruby-include options) and @masterkain (using gcc rather than llvm), and it compiles but still fails with the |
Same error here for: |
Installing gem via bundler. |
Error |
Patch to fix symbol visibility @ ruby/ruby#47 |
https://github.com/windwiny/linecache To install from source code
|
ruby 1.9.3dev (2011-05-29 trunk 31764) [i686-linux]
vm_core seems no more
dblock@dblock-magenta:
/source/Gravity/dblock2$ cat ./ruby-1.9.2-p180/include/ruby-1.9.1/ruby-1.9.2-p180/vm_core.h/source/Gravity/dblock2$ cat /home/dblock/.rvm/gems/ruby-head/gems/linecache19-0.5.12/ext/trace_nums/mkmf.logcat: ./ruby-1.9.2-p180/include/ruby-1.9.1/ruby-1.9.2-p180/vm_core.h: No such file or directory
dblock@dblock-magenta:
have_header: checking for vm_core.h... -------------------- no
"gcc -o conftest -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1/i686-linux -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1/ruby/backward -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/dblock/.rvm/rubies/ruby-head/lib -Wl,-R/home/dblock/.rvm/rubies/ruby-head/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/home/dblock/.rvm/rubies/ruby-head/lib -L/home/dblock/.rvm/rubies/ruby-head/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main() {return 0;}
/ end */
"gcc -E -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1/i686-linux -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1/ruby/backward -I/home/dblock/.rvm/rubies/ruby-head/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -o conftest.i"
conftest.c:3:21: fatal error: vm_core.h: No such file or directory
compilation terminated.
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include <vm_core.h>
/ end */
The text was updated successfully, but these errors were encountered: