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

fdLock: invalid argument on i386 linux cabal 3.4.0.0 via ghcup #7313

Closed
tomjaguarpaw opened this issue Mar 4, 2021 · 7 comments
Closed

fdLock: invalid argument on i386 linux cabal 3.4.0.0 via ghcup #7313

tomjaguarpaw opened this issue Mar 4, 2021 · 7 comments

Comments

@tomjaguarpaw
Copy link
Member

I'm seeing the dreaded fdLock: invalid argument.

To Reproduce

$ ~/.ghcup/bin/cabal-3.4.0.0 v2-update
Downloading the latest package list from hackage.haskell.org
fdLock: invalid argument (Invalid argument)

(I got my cabal-3.4.0.0 via ./i386-linux-ghcup install cabal 3.4.0.0.)

Anyone else seeing this?

@tomjaguarpaw
Copy link
Member Author

I can confirm that this problem also occurs on cabal-3.4.0.0 built from source.

@phadej
Copy link
Collaborator

phadej commented Mar 31, 2021

What's your

  • kernel version
  • glibc version

EDIT: this might be duplicate of haskellari/lukko#15 and #6602

@tomjaguarpaw
Copy link
Member Author

% uname -a
Linux henry 4.19.0-13-686 #1 SMP Debian 4.19.160-2 (2020-11-28) i686 GNU/Linux
% dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libc6:i386     2.29-3       i386         GNU C Library: Shared libraries

@tomjaguarpaw
Copy link
Member Author

I believe it is a duplicate! Should we close this issue then?

@phadej
Copy link
Collaborator

phadej commented Apr 1, 2021

Yes, I'd say this is lukko issue (15). I have no plans to work on it though (I have no machines to test).

EDIT: I still recommend -ofd-locking for 32bit Linux. I don't know how official cabal-install-3.4.0.0 bindist is compiled (I didn't make it).

@tomjaguarpaw
Copy link
Member Author

I can confirm that it works if I compile with

cabal-3.2.0.0 v2-install cabal-install-3.4.0.0 --constraint 'lukko -ofd-locking' ...

Perhaps the bindist should be updated to fix this.

@hasufell
Copy link
Member

hasufell added a commit to haskell/ghcup-hs that referenced this issue May 21, 2021
hasufell added a commit to hasufell/cabal that referenced this issue Oct 9, 2021
hasufell added a commit to hasufell/cabal that referenced this issue Oct 9, 2021
emilypi pushed a commit that referenced this issue Oct 9, 2021
* Use cabal-install version 3.6.2.0

* Remove M1 workaround

* Drop network constraint

* Fix building static executables

* Add FreeBSD12 release builds (#7733)

* Fix linux build

* Create properly named tarballs

* Only pass --enable-executable-static on alpine

* Fix windows build

* Use cabal.project.release

* Run split-sections selectively, fixing arm/aarch builds

* Add retries for windows and armv7

* Fix 32bit arches

See #7313 (comment)

* Adjust paths
573 added a commit to 573/aarch64-linux-ld-issue155722-reproduce that referenced this issue Feb 2, 2022
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

No branches or pull requests

3 participants