unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
* Build error of 5.1.0 due to RString
@ 2016-11-07 17:13 Olivier FAURAX
  2016-11-07 20:39 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier FAURAX @ 2016-11-07 17:13 UTC (permalink / raw)
  To: unicorn-public

Hello,

I'm new to Ruby & Unicorn, and I get a build error trying to compile 
unicorn 5.1.0.

It is about a RString that has not some members, so perhaps an API has 
been modified somewhere.
I tried with unicorn 5.2.0, and I get the same error.

Thanks in advance
Olivier

$ uname -a
Linux git.example.com 3.16.0-76-generic #98~14.04.1-Ubuntu SMP Fri Jun 
24 17:04:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ ruby --version
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]

$ gem install unicorn -v '5.1.0' -i vendor/bundle/ruby/2.1.0 --verbose
GET https://api.rubygems.org/specs.4.8.gz
200 OK
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=unicorn
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=raindrops
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=kgio
200 OK
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/.CHANGELOG.old
...
[long list of unicorn-5.1.0 files]
...
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/unicorn.gemspec
Building native extensions.  This could take a while...
/opt/bitnami/ruby/bin/ruby extconf.rb
checking for SIZEOF_OFF_T in ruby.h... yes
checking for SIZEOF_SIZE_T in ruby.h... yes
checking for SIZEOF_LONG in ruby.h... yes
checking for rb_str_set_len() in ruby.h... no
checking for rb_hash_clear() in ruby.h... no
checking for gmtime_r() in time.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling httpdate.c
compiling unicorn_http.c
In file included from unicorn_http.rl:8:0:
ext_help.h: In function ‘rb_18_str_set_len’:
ext_help.h:18:15: error: ‘struct RString’ has no member named ‘len’
    RSTRING(str)->len = len;
                ^
ext_help.h:19:15: error: ‘struct RString’ has no member named ‘ptr’
    RSTRING(str)->ptr[len] = '\0';
                ^
make: *** [unicorn_http.o] Error 1
ERROR:  Error installing unicorn:
         ERROR: Failed to build gem native extension.

     Building has failed. See above output for more information on the 
failure.
make failed, exit code 2

Gem files will remain installed in 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0 
for inspection.
Results logged to 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unicorn-5.1.0/gem_make.out

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build error of 5.1.0 due to RString
  2016-11-07 17:13 Build error of 5.1.0 due to RString Olivier FAURAX
@ 2016-11-07 20:39 ` Eric Wong
  2016-11-08  8:56   ` Olivier FAURAX
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2016-11-07 20:39 UTC (permalink / raw)
  To: Olivier FAURAX; +Cc: unicorn-public

Olivier FAURAX <olivier.faurax@anyces.com> wrote:
> It is about a RString that has not some members, so perhaps an API has been
> modified somewhere.

<snip>

> /opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/unicorn.gemspec
> Building native extensions.  This could take a while...
> /opt/bitnami/ruby/bin/ruby extconf.rb
> checking for SIZEOF_OFF_T in ruby.h... yes
> checking for SIZEOF_SIZE_T in ruby.h... yes
> checking for SIZEOF_LONG in ruby.h... yes

OK, ruby.h is there, so development headers exist...

> checking for rb_str_set_len() in ruby.h... no
> checking for rb_hash_clear() in ruby.h... no

These last two lines do not look right.  Can you show us your
mkmf.log file?  The output you originally posted is not enough
as it doesn't show the long compiler options and paths used.

Perhaps a library file is missing for static linking,
since these function checks require.

I'm not familiar with bitnami and how it builds/installs
Ruby, so maybe it's missing libruby*static.a or looking
in the wrong place somehow.

<snip> The failing code should've never been compiled
in the first place and should probably be removed.
However, the rb_hash_clear() detection is still necessary...

Thanks for reporting this.  You might want to loop in somebody
familiar with bitnami to poke around, too.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:+Build+error+of+5.1.0+due+to+RString
  2016-11-07 20:39 ` Eric Wong
@ 2016-11-08  8:56   ` Olivier FAURAX
  2016-11-08  9:43     ` Build error of 5.1.0 due to RString Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier FAURAX @ 2016-11-08  8:56 UTC (permalink / raw)
  To: e; +Cc: olivier.faurax, unicorn-public

Thanks for the support!

Here is the mkmf.log:
$ cat 
./vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unicorn-5.1.0/mkmf.log
have_macro: checking for SIZEOF_OFF_T in ruby.h... -------------------- yes

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -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 -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 -m64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4: /*top*/
5: #ifndef SIZEOF_OFF_T
6: # error
7: |:/ === SIZEOF_OFF_T undefined === /:|
8: #endif
/* end */

--------------------

have_macro: checking for SIZEOF_SIZE_T in ruby.h... -------------------- yes

"gcc -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 -m64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4: /*top*/
5: #ifndef SIZEOF_SIZE_T
6: # error
7: |:/ === SIZEOF_SIZE_T undefined === /:|
8: #endif
/* end */

--------------------

have_macro: checking for SIZEOF_LONG in ruby.h... -------------------- yes

"gcc -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 -m64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4: /*top*/
5: #ifndef SIZEOF_LONG
6: # error
7: |:/ === SIZEOF_LONG undefined === /:|
8: #endif
/* end */

--------------------

have_func: checking for rb_str_set_len() in ruby.h... 
-------------------- no

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt 
-lm   -lc"
/usr/bin/ld: /opt/bitnami/ruby/lib/libruby-static.a(string.o): 
unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
  1: #include "ruby.h"
  2:
  3: #include <ruby.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 
((*)()))rb_str_set_len; return 0; }
/* end */

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt 
-lm   -lc"
conftest.c: In function ‘t’:
conftest.c:15:1: error: too few arguments to function ‘rb_str_set_len’
  int t(void) { rb_str_set_len(); return 0; }
  ^
In file included from 
/opt/bitnami/ruby/include/ruby-2.1.0/ruby/ruby.h:1702:0,
                  from /opt/bitnami/ruby/include/ruby-2.1.0/ruby.h:33,
                  from conftest.c:1:
/opt/bitnami/ruby/include/ruby-2.1.0/ruby/intern.h:747:6: note: declared 
here
  void rb_str_set_len(VALUE, long);
       ^
checked program was:
/* begin */
  1: #include "ruby.h"
  2:
  3: #include <ruby.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) { rb_str_set_len(); return 0; }
/* end */

--------------------

have_func: checking for rb_hash_clear() in ruby.h... -------------------- no

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt 
-lm   -lc"
/usr/bin/ld: /opt/bitnami/ruby/lib/libruby-static.a(hash.o): 
unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
  1: #include "ruby.h"
  2:
  3: #include <ruby.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 
((*)()))rb_hash_clear; return 0; }
/* end */

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt 
-lm   -lc"
conftest.c: In function ‘t’:
conftest.c:15:1: error: too few arguments to function ‘rb_hash_clear’
  int t(void) { rb_hash_clear(); return 0; }
  ^
In file included from 
/opt/bitnami/ruby/include/ruby-2.1.0/ruby/ruby.h:1702:0,
                  from /opt/bitnami/ruby/include/ruby-2.1.0/ruby.h:33,
                  from conftest.c:1:
/opt/bitnami/ruby/include/ruby-2.1.0/ruby/intern.h:504:7: note: declared 
here
  VALUE rb_hash_clear(VALUE);
        ^
checked program was:
/* begin */
  1: #include "ruby.h"
  2:
  3: #include <ruby.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) { rb_hash_clear(); return 0; }
/* end */

--------------------

have_func: checking for gmtime_r() in time.h... -------------------- yes

"gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux 
-I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward 
-I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0 
-I/bitnami/megastack-linux-x64/output/sqlite/include 
-I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl 
-I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include 
-fPIC -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick 
-O3 conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib 
-L. -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/sqlite/lib 
-L/bitnami/megastack-linux-x64/output/python/lib 
-L/opt/bitnami/common/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib 
-L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector 
-rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib 
-L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt 
-lm   -lc"
checked program was:
/* begin */
  1: #include "ruby.h"
  2:
  3: #include <time.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 ((*)()))gmtime_r; 
return 0; }
/* end */

--------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build error of 5.1.0 due to RString
  2016-11-08  8:56   ` Olivier FAURAX
@ 2016-11-08  9:43     ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2016-11-08  9:43 UTC (permalink / raw)
  To: Olivier FAURAX; +Cc: unicorn-public

Olivier FAURAX <olivier.faurax@anyces.com> wrote:
> Thanks for the support!
> 
> Here is the mkmf.log:
> $ cat ./vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unicorn-5.1.0/mkmf.log

No problem, trimming out irrelevant parts...

> have_func: checking for rb_str_set_len() in ruby.h... --------------------
> no
> 
> "gcc -o conftest -I/opt/bitnami/ruby/include/ruby-2.1.0/x86_64-linux
> -I/opt/bitnami/ruby/include/ruby-2.1.0/ruby/backward
> -I/opt/bitnami/ruby/include/ruby-2.1.0 -I. -DAI_ADDRCONFIG=0
> -I/bitnami/megastack-linux-x64/output/sqlite/include
> -I/opt/bitnami/common/include -I/opt/bitnami/common/include/sasl
> -I/opt/bitnami/common/include   -fPIC -I/opt/bitnami/common/include -fPIC
> -I/opt/bitnami/common/include -I/opt/bitnami/common/include -fPIC
> -I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick
> -I/bitnami/megastack-linux-x64/output/ImageMagick/include/ImageMagick -O3
> conftest.c  -L. -L/opt/bitnami/ruby/lib -Wl,-R/opt/bitnami/ruby/lib -L.
> -L/opt/bitnami/common/lib -L/opt/bitnami/common/lib
> -L/bitnami/megastack-linux-x64/output/sqlite/lib
> -L/bitnami/megastack-linux-x64/output/python/lib -L/opt/bitnami/common/lib
> -L/bitnami/megastack-linux-x64/output/ImageMagick/lib
> -L/bitnami/megastack-linux-x64/output/ImageMagick/lib -fstack-protector
> -rdynamic -Wl,-export-dynamic  -m64   -Wl,-R -Wl,/opt/bitnami/ruby/lib
> -L/opt/bitnami/ruby/lib -lruby-static  -lpthread -lrt -lgmp -ldl -lcrypt -lm
> -lc"
> /usr/bin/ld: /opt/bitnami/ruby/lib/libruby-static.a(string.o): unrecognized
> relocation (0x2a) in section `.text'
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status

As I suspected, something is wrong with the install or build
of Ruby itself (not unicorn).

Does Bitnami build your Ruby installation or do you build and
install Ruby in your local environment using Bitnami?

It could be they used a buggy version of binutils
(or you have a buggy version installed locally).

Can you ask the Bitnami folks for help?

Thanks.


[ Btw, with the '+' in your Subject: line, was it from following
  the mailto: link on the https://bogomips.org/unicorn-public/
  mail archive links?
  The archive code might need to switch to %20 for escaping spaces... ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 17:13 Build error of 5.1.0 due to RString Olivier FAURAX
2016-11-07 20:39 ` Eric Wong
2016-11-08  8:56   ` Olivier FAURAX
2016-11-08  9:43     ` Build error of 5.1.0 due to RString Eric Wong

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git