Project

General

Profile

Bug #8852

Synology build of ruby-2.0.0-p247 is failing

Added by Steve Sparks about 3 years ago. Updated about 3 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
ruby -v:
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
[ruby-core:56965]

Description

Looks like something is missing... _stack_chk_faillocal

Gist output of "rvm --debug install ruby"

https://gist.github.com/stevesparks/eebabfbcc23884b29c24

History

#2 [ruby-core:56971] Updated by Nobuyoshi Nakada about 3 years ago

  • Status changed from Open to Feedback
  • Assignee deleted (Nobuyoshi Nakada)

Probably a third party's issue?

#3 [ruby-core:56997] Updated by Michal Papis about 3 years ago

What does it mean third party's issue - who do you think should be investigating it?

Can you explain what to investigate, this is really edge case (Synology platform) with limited availability, how would one start debugging it?

#4 [ruby-core:57016] Updated by Marcel Dopita about 3 years ago

It cross compiles fine with following patch https://github.com/SynoCommunity/spksrc/blob/fad915904222094328425c2855f4fa193731ba84/cross/ruby/patches/fix-thread-stack.patch from from SynoCommunity.
It's currently reverted but I tested it and it works with 2.0.0-p247 as well.

#5 [ruby-core:57028] Updated by Nobuyoshi Nakada about 3 years ago

It seems r40476.

Could you try the trunk?

#6 [ruby-core:57044] Updated by Marcel Dopita about 3 years ago

moneytoo (Marcel Dopita) wrote:

It cross compiles fine with following patch https://github.com/SynoCommunity/spksrc/blob/fad915904222094328425c2855f4fa193731ba84/cross/ruby/patches/fix-thread-stack.patch from from SynoCommunity.
It's currently reverted but I tested it and it works with 2.0.0-p247 as well.

Sorry, I was not exactly right - this patch is valid only for 2.0.0-p0 as it's already fixed 2.0.0-p247. The only fix should be:

Desactivate fstack-protect because we couldn't link to libspp on synology

sed -i -e 's/x$$stack_protector/x$$stack_protector_broken/g' $(WORK_DIR)/$(PKG_DIR)/configure

#7 [ruby-core:57062] Updated by Steve Sparks about 3 years ago

Sorry, I am a Ruby newb, using RVM to handle the build details. I should do what, where?

#8 [ruby-core:57065] Updated by Steve Sparks about 3 years ago

Okay, I fiddled with the 'configure' file so that stack_protector came out broken. It quieted those entries but then died on our old friend

_sync_val_compareand_swap_4

... suggestions?

#9 [ruby-core:57077] Updated by Marcel Dopita about 3 years ago

Well, the detection of atomic operations is working fine with Synology toolchain for me. I guess you should be able to override atomic builtins in configure.

#10 Updated by Steve Sparks about 3 years ago

Would you mind telling me which gcc you're using?

#11 [ruby-core:57083] Updated by Marcel Dopita about 3 years ago

I'm running arch 88f6281 so the toolchain includes GCC 4.2.1. If you're stuck, just give spksrc a shot to check the Ruby configure.log etc.

Also available in: Atom PDF