[DRE-maint] Bug#642266: Bug#642266: Bug#642266: please help with #642266
terceiro at debian.org
Wed Jan 11 23:14:16 UTC 2012
tags 642266 + pending
Jurij Smakov escreveu isso aí:
> Right, it's a different issue. 'Illegal instruction' error is
> generated when the test code hits 'ta 6' instruction, which
> is generated due to the following code in libtest/NumberTest.c:
> #ifdef __sparc
> #define fix_mem_access __asm("ta 6")
> #define fix_mem_access
> This instruction means 'software trap 6', which normally invokes some
> action in the kernel from userspace (kind of like 'int' instruction
> on x86). According to a cursory search, this trap is Solaris-specific,
> and its effect is to turn on the unaligned trap handler. In Linux
> userspace unaligned traps are not handled (they just cause program
> termination), so the #ifdef should be adjusted to only trigger on
> Solaris/sparc. This may have unintended side effects (if the tests
> have intentional unaligned accesses, for example), but I've confirmed
> that with the attached patch applied the package builds successfully.
> Note that I have no way to test it on Solaris, but judging by examples
> it should do the trick.
Brilliant! With your patch the package builds fine (including passing
the entire test suite on both Ruby 1.8 and 1.9).
Thank you very much for your help with this. :-)
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: Digital signature
More information about the Pkg-ruby-extras-maintainers