Summary: | dev-lang/ruby-2.1.6-r1 on armv6 - bignum.o: In function `bary_pack': bignum.c:(.text+0x4198): undefined reference to `__builtin_bswap16' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Gorbach <michael> |
Component: | [OLD] Development | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | arm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info |
Description
Michael Gorbach
2015-08-04 20:04:01 UTC
Created attachment 408310 [details]
build.log
Created attachment 408312 [details]
emerge --info
Note that this emerge --info was taken after I removed the ruby21 value in RUBY_TARGETS and re-masked ruby21 (to work around this build failure). @arm: any advice on how to handle this? (In reply to Hans de Graaff from comment #4) > @arm: any advice on how to handle this? I don't have armv6 only armv7. __builtin_bswap16() should be provided by <linux/swab.h>. make sure that file is included in bignum.c and that __HAVE_BUILTIN_BSWAP16__ gets defined somewhere. (In reply to Anthony Basile from comment #5) > (In reply to Hans de Graaff from comment #4) > > @arm: any advice on how to handle this? > > I don't have armv6 only armv7. __builtin_bswap16() should be provided by > <linux/swab.h>. make sure that file is included in bignum.c and that > __HAVE_BUILTIN_BSWAP16__ gets defined somewhere. I should add that I'm assuming this is a glibc system from your toolchain tuple in comment #0. but just in case, if you're using uclibc, note that swab.h has problems in uclibc. I sent the fix upstream and it was accepted by uclibc-ng. the original uclibc is somewhat dead these days. Could you try with ruby 2.1.9 instead? 2.1.6-r1 is no longer available and this problem may have been fixed in the meantime. |