Hi
I am running into compilation tasks for a bosh release for diego
https://github.com/cloudfoundry-incubator/diego-release
bosh create release --force
Results in the errors below. I have the newest version on ruby. The log message says that try, but it results in the same error message.
gem install eventmachine -v '1.0.3'
---------
> compiling binder.cpp
> compiling cmain.cpp
> compiling ed.cpp
> compiling em.cpp
> em.cpp:827:9: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'?
> return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);
> ^~~~~~~~
> rb_thread_fd_select
> ./em.h:25:20: note: expanded from macro 'EmSelect'
> #define EmSelect rb_thread_select
> ^
> /usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here
> int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
> ^
> em.cpp:827:32: error: cannot initialize a parameter of type 'rb_fdset_t *' with an rvalue of type 'fd_set *'
> return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);
> ^~~~~~~~
> /usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/intern.h:454:42: note: passing argument to parameter here
> int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
> ^
> em.cpp:946:6: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'?
> EmSelect (0, NULL, NULL, NULL, &tv);
> ^~~~~~~~
> rb_thread_fd_select
> ./em.h:25:20: note: expanded from macro 'EmSelect'
> #define EmSelect rb_thread_select
> ^
> /usr/local/Cellar/ruby/2.2.0/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here
> int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
> ^
> 3 errors generated.
> make: *** [em.o] Error 1
>
> make failed, exit code 2
>
> Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.3 for inspection.
> Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/eventmachine-1.0.3/gem_make.out
> An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue.
> Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
'cloud_controller_ng' pre-packaging failed
Thanks,
Rajesh