From: Doug Forster <doug.forster@gmail.com>
To: raindrops-public@bogomips.org
Subject: raindrops fails to install with ruby 2.2.2
Date: Thu, 9 Jul 2015 15:47:22 -0600 [thread overview]
Message-ID: <CAFFOtrdUVz0nc8c4a-B3zXGr=0b2XZwm1WN0NZudxgbqp8Aubw@mail.gmail.com> (raw)
Problem seems to be the removal of rb_thread_blocking_region in ruby.
System Info:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux-musl]
alpine linux
apk --update add ruby ruby-dev build-base
Build output:
/ # gem install unicorn
Fetching: raindrops-0.14.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing unicorn:
ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150709-14-j1t8nj.rb extconf.rb
checking for mmap() in sys/mman.h... yes
checking for munmap() in sys/mman.h... yes
checking for mremap() in sys/mman.h... yes
checking for getpagesize() in unistd.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_io_blocking_region()... yes
checking for GCC 4+ atomic builtins... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling linux_tcp_info.c
linux_tcp_info.c:5:23: fatal error: linux/tcp.h: No such file or directory
#include <linux/tcp.h>
^
compilation terminated.
Makefile:237: recipe for target 'linux_tcp_info.o' failed
make: *** [linux_tcp_info.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/usr/lib/ruby/gems/2.2.0/gems/raindrops-0.14.0 for inspection.
Results logged to
/usr/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/raindrops-0.14.0/gem_make.out
Other file:
/ # cat
/usr/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/raindrops-0.14.0/mkmf.log
have_func: checking for mmap() in sys/mman.h... -------------------- yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -Os -fomit-frame-pointer -fno-omit-frame-pointer
-fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,--as-needed
-fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -ldl
-lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -Os -fomit-frame-pointer -fno-omit-frame-pointer
-fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,--as-needed
-fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -ldl
-lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/mman.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))mmap; return 0;
}
/* end */
--------------------
have_func: checking for munmap() in sys/mman.h... -------------------- yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -Os -fomit-frame-pointer -fno-omit-frame-pointer
-fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,--as-needed
-fstack-protector -rdynamic -Wl,-export-dynamic -lruby -lpthread -ldl
-lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/mman.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))munmap; return
0; }
/* end */
--------------------
have_func: checking for mremap() in sys/mman.h... -------------------- yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -Os -fomit-frame-pointer
-fno-omit-frame-pointer -fno-strict-aliasing -fPIC conftest.c -L.
-L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/mman.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))mremap; return
0; }
/* end */
--------------------
have_func: checking for getpagesize() in unistd.h... --------------------
yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <unistd.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))getpagesize;
return 0; }
/* end */
--------------------
have_func: checking for rb_thread_blocking_region()... --------------------
no
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:13:57: error: 'rb_thread_blocking_region' undeclared (first use
in this function)
int t(void) { void ((*volatile p)()); p = (void
((*)()))rb_thread_blocking_region; return 0; }
^
conftest.c:13:57: note: each undeclared identifier is reported only once
for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void
((*)()))rb_thread_blocking_region; return 0; }
/* end */
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
/tmp/ccEklkdf.o: In function `t':
conftest.c:(.text+0x7): undefined reference to `rb_thread_blocking_region'
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { rb_thread_blocking_region(); return 0; }
/* end */
--------------------
have_func: checking for rb_thread_io_blocking_region()...
-------------------- yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function 't':
conftest.c:13:57: error: 'rb_thread_io_blocking_region' undeclared (first
use in this function)
int t(void) { void ((*volatile p)()); p = (void
((*)()))rb_thread_io_blocking_region; return 0; }
^
conftest.c:13:57: note: each undeclared identifier is reported only once
for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void
((*)()))rb_thread_io_blocking_region; return 0; }
/* end */
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { rb_thread_io_blocking_region(); return 0; }
/* end */
--------------------
checking for GCC 4+ atomic builtins... -------------------- yes
"gcc -o conftest -I/usr/include/ruby-2.2.0/x86_64-linux-musl
-I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -Os
-fomit-frame-pointer -D_GNU_SOURCE -D_BSD_SOURCE -Os
-fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fPIC
conftest.c -L. -L/usr/lib -L. -Wl,--as-needed -fstack-protector -rdynamic
-Wl,-export-dynamic -lruby -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char * const argv[]) {
4: unsigned long i = 0;
5: __sync_lock_test_and_set(&i, 0);
6: __sync_lock_test_and_set(&i, 1);
7: __sync_bool_compare_and_swap(&i, 0, 1);
8: __sync_add_and_fetch(&i, argc);
9: __sync_sub_and_fetch(&i, argc);
10: return 0;
11: }
/* end */
--------------------
next reply other threads:[~2015-07-09 21:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 21:47 Doug Forster [this message]
2015-07-14 20:18 ` raindrops fails to install with ruby 2.2.2 Eric Wong
2015-07-14 20:23 ` Hleb Valoshka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/raindrops/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFFOtrdUVz0nc8c4a-B3zXGr=0b2XZwm1WN0NZudxgbqp8Aubw@mail.gmail.com' \
--to=doug.forster@gmail.com \
--cc=raindrops-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/raindrops.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).