unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Olivier FAURAX <olivier.faurax@anyces.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Build error of 5.1.0 due to RString
Date: Tue, 8 Nov 2016 09:43:58 +0000	[thread overview]
Message-ID: <20161108094358.GA25172@starla> (raw)
In-Reply-To: <02994a55-9c07-a3c5-f06b-a4c15551a67e@anyces.com>

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... ]

      reply	other threads:[~2016-11-08  9:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Eric Wong [this message]

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: http://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161108094358.GA25172@starla \
    --to=e@80x24.org \
    --cc=olivier.faurax@anyces.com \
    --cc=unicorn-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

	http://yhbt.net/unicorn.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).