Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of bits-extras dependency #2

Open
pxqr opened this issue Aug 12, 2014 · 8 comments · May be fixed by #5
Open

Get rid of bits-extras dependency #2

pxqr opened this issue Aug 12, 2014 · 8 comments · May be fixed by #5

Comments

@pxqr
Copy link
Owner

pxqr commented Aug 12, 2014

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

@cgag
Copy link

cgag commented Dec 4, 2015

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
Copy link

enzoh commented May 6, 2016

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

@expipiplus1
Copy link

@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
Copy link

patrickmn commented Jun 7, 2017

+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)

@FilWisher FilWisher linked a pull request Mar 13, 2018 that will close this issue
@exarkun
Copy link

exarkun commented May 31, 2018

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
Copy link

Unisay commented Sep 5, 2018

/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
Copy link

I experience the same issue.

@mightybyte
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants