pxqr / base32-bytestring

Efficient base32 codec for bytestrings.
http://hackage.haskell.org/package/base32-bytestring
BSD 3-Clause "New" or "Revised" License
1 stars 14 forks source link

Get rid of `bits-extras` dependency #2

Open pxqr opened 10 years ago

pxqr commented 10 years ago

bits-extras package uses gcc intrinsics, find more portable way to do byteswapping.

cgag commented 8 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.

enzoh commented 8 years ago

This dependency just broke our codebase. The package is no longer being maintained. Please remove it. Thanks!

expipiplus1 commented 7 years ago

@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?

patrickmn commented 7 years ago

+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)
exarkun commented 6 years ago

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.

Unisay commented 6 years ago
/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)
AleXoundOS commented 5 years ago

I experience the same issue.

mightybyte commented 5 years ago

This issue is causing problems for me too. Would be great to get the fix merged.