Therubyracer, libv8 errors on ARM7 (raspberry PI-2) on Arch linux

317 views
Skip to first unread message

bassie

unread,
Apr 3, 2015, 7:33:02 PM4/3/15
to trac...@googlegroups.com
I tried to install Tracks 2.2.3 on ARM7 (Raspberry PI-2), but I am stuck.

Creating the package ($makepkg -s)  exits with error:
linking shared-object v8/init.so
/usr/bin/ld: /home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools                   /gyp/libv8_base.a(api.o): relocation R_ARM_MOVW_ABS_NC against `_ZN2v823Persi                   stentHandleVisitor21VisitPersistentHandleENS_10PersistentINS_5ValueEEEt' cannot be used when making a shared object; recompile with -fPIC
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1  /gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_ba                   se.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:214: recipe for target 'init.so' failed
make: *** [init.so] Error 1

make failed, exit code 2

Gem files will remain installed in /home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/gems/therubyracer-0.12.1 for inspection.
Results logged to /home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/extensions/armv7l-linux/1.9.1/therubyracer-0.12.1/gem_make                   .out
An error occurred while installing therubyracer (0.12.1), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.1'` succeeds before bundling.
==> ERROR: A failure occurred in build().
    Aborting...

Output of /home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/extensions/armv7l-linux/1.9.1/therubyracer-0.12.1/gem_make.out :
...
compiling backref.cc
compiling accessor.cc
compiling constants.cc
linking shared-object v8/init.so
/usr/bin/ld: /home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a(api.o): relocation R_ARM_MOVW_ABS_NC against `_ZN2v823PersistentHandleVisitor21VisitPersistentHandleENS_10PersistentINS_5ValueEEEt' can not be used when making a shared object; recompile with -fPIC
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:214: recipe for target 'init.so' failed
make: *** [init.so] Error 1

make failed, exit code 2

---------
I tried
$gem install therubyracer -v '0.12.1', with output:
Building native extensions.  This could take a while...
Successfully installed therubyracer-0.12.1
Parsing documentation for therubyracer-0.12.1
Done installing documentation for therubyracer after 5 seconds
1 gem installed

Then I did again $makepkg -s, but still get the same error as mentioned above.

Any help is appreciated!

Dan Rice

unread,
Apr 3, 2015, 7:54:03 PM4/3/15
to trac...@googlegroups.com
Instead of therubyracer you can try nodejs, which is available as an Arch package. Just comment out therubyracer from the Gemfile before running `bundle install`.

--
You received this message because you are subscribed to the Google Groups "TracksApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tracksapp+...@googlegroups.com.
To post to this group, send email to trac...@googlegroups.com.
Visit this group at http://groups.google.com/group/tracksapp.
For more options, visit https://groups.google.com/d/optout.

bassie

unread,
Apr 4, 2015, 2:42:02 AM4/4/15
to trac...@googlegroups.com
Thanks Dan for you prompt response!
I will try and report back

Bas

Op zaterdag 4 april 2015 01:33:02 UTC+2 schreef bassie:

bassie

unread,
Apr 4, 2015, 11:24:24 AM4/4/15
to trac...@googlegroups.com
Hi,

I tried your suggestion, and I got it working (bundle install did gave some warnings).
I could login into my tracks.
I could add myself as a user.
But, when I tried to add an action, I got an internal server error (see below).
I don't see a tracks log file (log dir is empty).
How could I repair this?

Cache digest for todos/_todo.html: f6b1f1676905500ed5685760722d24b6
Read fragment views/todos/1-20150404151825/20150404/todo/false/f6b1f1676905500ed5685760722d24b6 0.6ms
  Rendered todos/_todo.html.erb (106.5ms)
  Rendered contexts/_context.html.erb (330.5ms)
  Rendered todos/index.html.erb within layouts/application (356.2ms)
Completed 500 Internal Server Error in 498.2ms

ActionView::Template::Error (undefined method `name' for nil:NilClass):
    39:         <%= tag_list(todo) %>
    40:         <%= deferred_due_date(todo) %>
    41:         <%= project_and_context_links( todo, parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %>
    42:         <%= collapsed_notes_image(todo) unless todo.notes.blank? %>
    43:         <%= collapsed_successors_image(todo) if todo.has_pending_successors %>
    44:       </div>
    45:     </div>
  app/models/todo.rb:219:in `has_pending_successors'
  app/views/todos/_todo.html.erb:42:in `block in _app_views_todos__todo_html_erb__260200334_28633368'
  app/views/todos/_todo.html.erb:13:in `_app_views_todos__todo_html_erb__260200334_28633368'
  app/views/contexts/_context.html.erb:23:in `block in _app_views_contexts__context_html_erb___455907443_29358948'
  app/views/contexts/_context.html.erb:5:in `_app_views_contexts__context_html_erb___455907443_29358948'
  app/views/todos/index.html.erb:6:in `_app_views_todos_index_html_erb___517293245_29226720'



Op zaterdag 4 april 2015 01:33:02 UTC+2 schreef bassie:
I tried to install Tracks 2.2.3 on ARM7 (Raspberry PI-2), but I am stuck.

bassie

unread,
Apr 4, 2015, 11:31:05 AM4/4/15
to trac...@googlegroups.com
Here the complete log since startup of Tracks:

[baswi@homeserver2 TracksApp-tracks-f98d32c]$ bundle exec rails server -e production
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activesupport-3.2.19/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
=> Booting WEBrick
=> Rails 3.2.19 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2015-04-04 17:17:30] INFO  WEBrick 1.3.1
[2015-04-04 17:17:30] INFO  ruby 2.2.1 (2015-02-26) [armv7l-linux-eabihf]
[2015-04-04 17:17:30] INFO  WEBrick::HTTPServer#start: pid=14526 port=3000
Started GET "/" for 192.168.1.63 at 2015-04-04 17:17:36 +0200
Processing by TodosController#index as HTML
Redirected to http://192.168.1.13:3000/login
Filter chain halted as :login_or_feed_token_required rendered or redirected
Completed 302 Found in 21.2ms (ActiveRecord: 2.7ms)
Started GET "/login" for 192.168.1.63 at 2015-04-04 17:17:37 +0200
Processing by LoginController#login as HTML
Redirected to http://192.168.1.13:3000/signup
Completed 302 Found in 1092.0ms (ActiveRecord: 1.6ms)
Started GET "/signup" for 192.168.1.63 at 2015-04-04 17:17:38 +0200
Processing by UsersController#new as HTML
  Rendered shared/_flash.html.erb (3.8ms)
  Rendered users/new.html.erb within layouts/login (86.2ms)
  Rendered shared/_footer.html.erb (8.6ms)
Completed 200 OK in 237.8ms (Views: 165.3ms | ActiveRecord: 1.6ms)
Started POST "/users" for 192.168.1.63 at 2015-04-04 17:17:51 +0200
Processing by UsersController#create as HTML
  Parameters: {"utf8"=>"â", "authenticity_token"=>"ktJAJpDz2tj/4KodxPY1TZen/d99QjOLR0pytsujfSk=", "user"=>{"login"=>"baswi", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
Binary data inserted for `string` type on column `crypted_password`
Redirected to http://192.168.1.13:3000/
Completed 302 Found in 1681.9ms (ActiveRecord: 249.3ms)
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:53: warning: circular argument reference - reflection
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:57: warning: circular argument reference - reflection
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:61: warning: circular argument reference - reflection
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:80: warning: circular argument reference - reflection
Started GET "/" for 192.168.1.63 at 2015-04-04 17:17:53 +0200
Processing by TodosController#index as HTML
  Rendered collection (0.0ms)
  Rendered todos/_todo.html.erb (0.0ms)
  Rendered todos/_completed.html.erb (56.6ms)
  Rendered todos/_new_todo_form.html.erb (51.9ms)
  Rendered todos/_new_multi_todo_form.html.erb (20.8ms)
  Rendered shared/_add_new_item_form.html.erb (190.7ms)
  Rendered sidebar/sidebar.html.erb (44.7ms)
  Rendered todos/index.html.erb within layouts/application (333.5ms)
  Rendered shared/_flash.html.erb (0.4ms)
  Rendered shared/_footer.html.erb (3.9ms)
Completed 200 OK in 725.9ms (Views: 459.0ms | ActiveRecord: 30.4ms)
Started GET "/contexts.autocomplete?_source_view=todo&_tag_name=&term=default" for 192.168.1.63 at 2015-04-04 17:18:21 +0200
Processing by ContextsController#index as AUTOCOMPLETE
  Parameters: {"_source_view"=>"todo", "_tag_name"=>"", "term"=>"default"}
  Rendered text template (0.0ms)
Completed 200 OK in 62.6ms (Views: 23.6ms | ActiveRecord: 3.6ms)
Started POST "/todos" for 192.168.1.63 at 2015-04-04 17:18:24 +0200
Processing by TodosController#create as JS
  Parameters: {"utf8"=>"â", "authenticity_token"=>"\"ktJAJpDz2tj/4KodxPY1TZen/d99QjOLR0pytsujfSk=\"", "default_project_name"=>"", "default_context_name"=>"", "new_todo_starred"=>"false", "todo"=>{"description"=>"acite11817", "notes"=>"", "due"=>"06/04/2015", "show_from"=>""}, "project_name"=>"p1", "context_name"=>"default", "initial_tag_list"=>"", "tag_list"=>"", "predecessor_input"=>"", "predecessor_list"=>"", "_source_view"=>"todo", "0"=>"_", "1"=>"s", "2"=>"o", "3"=>"u", "4"=>"r", "5"=>"c", "6"=>"e", "7"=>"_", "8"=>"v", "9"=>"i", "10"=>"e", "11"=>"w", "12"=>"=", "13"=>"t", "14"=>"o", "15"=>"d", "16"=>"o", "17"=>"&", "18"=>"_", "19"=>"t", "20"=>"a", "21"=>"g", "22"=>"_", "23"=>"n", "24"=>"a", "25"=>"m", "26"=>"e", "27"=>"="}
Completed 500 Internal Server Error in 1325.9ms

NoMethodError (undefined method `name' for nil:NilClass):
  app/controllers/todos_controller.rb:156:in `create'


/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activesupport-3.2.19/lib/active_support/time_with_zone.rb:71: warning: Comparable#== will no more rescue exceptions of #<=> in the next release.
/home/baswi/build_apps/tracks/src/TracksApp-tracks-f98d32c/.bundle/ruby/2.2.0/gems/activesupport-3.2.19/lib/active_support/time_with_zone.rb:71: warning: Return nil in #<=> if the comparison is inappropriate or avoid such comparison.
Started GET "/" for 192.168.1.63 at 2015-04-04 17:18:55 +0200
Processing by TodosController#index as HTML
Couldn't find template for digesting: ings/ing.html
Cache digest for contexts/_context.html: b9ee296a92fbc373dd6b97ac54e01e92
Read fragment views/contexts/1-20150404151825/todo/20150404//b9ee296a92fbc373dd6b97ac54e01e92 0.6ms

Cache digest for todos/_todo.html: f6b1f1676905500ed5685760722d24b6
Read fragment views/todos/1-20150404151825/20150404/todo/false/f6b1f1676905500ed5685760722d24b6 0.6ms
  Rendered todos/_todo.html.erb (106.5ms)
  Rendered contexts/_context.html.erb (330.5ms)
  Rendered todos/index.html.erb within layouts/application (356.2ms)
Completed 500 Internal Server Error in 498.2ms

ActionView::Template::Error (undefined method `name' for nil:NilClass):
    39:         <%= tag_list(todo) %>
    40:         <%= deferred_due_date(todo) %>
    41:         <%= project_and_context_links( todo, parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %>
    42:         <%= collapsed_notes_image(todo) unless todo.notes.blank? %>
    43:         <%= collapsed_successors_image(todo) if todo.has_pending_successors %>
    44:       </div>
    45:     </div>
  app/models/todo.rb:219:in `has_pending_successors'
  app/views/todos/_todo.html.erb:42:in `block in _app_views_todos__todo_html_erb__260200334_28633368'
  app/views/todos/_todo.html.erb:13:in `_app_views_todos__todo_html_erb__260200334_28633368'
  app/views/contexts/_context.html.erb:23:in `block in _app_views_contexts__context_html_erb___455907443_29358948'
  app/views/contexts/_context.html.erb:5:in `_app_views_contexts__context_html_erb___455907443_29358948'
  app/views/todos/index.html.erb:6:in `_app_views_todos_index_html_erb___517293245_29226720'


Op zaterdag 4 april 2015 01:33:02 UTC+2 schreef bassie:
I tried to install Tracks 2.2.3 on ARM7 (Raspberry PI-2), but I am stuck.

Dan Rice

unread,
Apr 4, 2015, 2:54:14 PM4/4/15
to trac...@googlegroups.com
I see you switched Rubies between your first email and this one. Tracks 2.2 is not tested with Ruby 2.2 -- perhaps try Ruby 1.9.3. You can also try the release candidate of Tracks 2.3, which supports newer Rubies.

--

bassie

unread,
Apr 4, 2015, 3:10:32 PM4/4/15
to trac...@googlegroups.com
You're right.
I just downgraded ruby, via rvm to ruby 1.9.3, and now everything is working correctly!!

Thanks for your help.

Bas


Op zaterdag 4 april 2015 01:33:02 UTC+2 schreef bassie:
I tried to install Tracks 2.2.3 on ARM7 (Raspberry PI-2), but I am stuck.
Reply all
Reply to author
Forward
0 new messages