This is a threading bug. While applying gdb to the problem, I noticed
that (a) the thing that was NULL was prot_tag and (b) prot_tag was
fiddled with in some rb_thread_* functions, so I tried building with
threading disabled, and it built fine (at least 'debian/rules build';
'debian/rules binary' failed because Ruby/Tk doesn't work when Ruby is
built without pthreads but Tk is built with pthreads).
Obviously this isn't actually a viable workaround due to the Ruby/Tk
problem and the fact that building without pthreads almost certainly
changes libruby's ABI, but it does indicate where to start looking. mono
had a similar problem, and we worked around it for a while with
something along the lines of:
#ifdef __powerpc__
#include <sched.h>
#endif
#ifdef __powerpc__
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
CPU_SET(0, &cpuset);
sched_setaffinity(0, sizeof(cpuset), &cpuset);
#endif
** Changed in: ruby1.8 (Ubuntu)
Importance: Untriaged => Medium
Status: Unconfirmed => Confirmed
--
fails to build on ppc
https://launchpad.net/bugs/61861
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs