Open pxqr opened 10 years ago
IMO accept any slowdown from using he toBE functions from System.Endian. I see there are two seperate forks of this where people independently did this. I was about to do it myself, I will probably just use one of theirs instead. For me it's because it doesn't work on DragonflyBSD.
This dependency just broke our codebase. The package is no longer being maintained. Please remove it. Thanks!
@xtian, @anton-dessiatov. Would either of you be willing to open a PR with your fix for this issue.
@pxqr Is this library still going to be maintained on Hackage?
+1 (GHC 8.0.1):
(Internal.o):(.text+0x54f): undefined reference to `bswap32'
(Internal.o):(.text+0x1210): undefined reference to `bswap64'
(Internal.o):(.text+0x135b): undefined reference to `bswap32'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
I just ran in to this issue on Ubuntu 17.10 so it looks like I'm going to use a different Base32 library instead. Of course I only discovered the problem after writing some application code which now I get to rewrite. It would be great to have this fixed.
/home/yura/projects/.../.stack-work/install/x86_64-linux-tinfo6/lts-12.7/8.4.3/lib/x86_64-linux-ghc-8.4.3/base32-bytestring-0.2.1.0-LhMNhIqORpoG99v2PgY064/libHSbase32-bytestring-0.2.1.0-LhMNhIqORpoG99v2PgY064.a(Internal.o)(.text+0x10b0): error: undefined reference to 'bswap32'
collect2: error: ld returned 1 exit status
`gcc' failed in phase 'Linker'. (Exit code: 1)
I experience the same issue.
This issue is causing problems for me too. Would be great to get the fix merged.
bits-extras
package uses gcc intrinsics, find more portable way to do byteswapping.