-
Notifications
You must be signed in to change notification settings - Fork 701
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
mktemp: illegal option -- p #6689
Comments
It appears it is this https://github.com/haskell/cabal/blob/master/cabal-install/bootstrap.sh#L61 But it probably is not fatal. So we should maybe silence stderr for the first invocation? It wasn't clear whether this was a silent unhandled error or expected from the log. |
I made related issue #6700 I think it's ok that |
@phadej yes, the new ghcup will allow compiling both ghc and cabal-install from source. It just invokes bootstrap.sh: https://github.com/hasufell/ghcup-hs/blob/master/lib/GHCup.hs#L653 How would you bootstrap it otherwise? |
I really don't know. By using existing EDIT: If someone implements (and would assist maintaining) #6616 then we could get more bindists. That would be great. Yet, to compile GHC using By the way, when |
Yeah, this is tracked in https://gitlab.haskell.org/haskell/ghcup/issues/131#note_265002 too
I'm in the process of making the first release and have difficulties creating mac binaries (using travis for that currently, which is buggy) and testing them. So probably soon. The idea is for no one to notice :P |
Will you also provide binaries for say, FreeBSD? If you use gitlab.haskell.org infrastructure, could you comment on #6616 about how it looks for |
Yes, I already have. I built dynamic FreeBSD binaries in a VM, fully static linux binaries via docker alpine and mac via travis infrastructure. It's a bit messy, but those were the quickest ways I could come up with. Travis is giving me the sh**s though. I might look into gitlab CI soon too, I think. |
bootstrap.sh does not exist anymore, so i am gonna close it optimistically, betting the new bootstrap.py does not suffer the issue 😄 |
Describe the bug
I would appear that the bootstrap script contains some linuxisms.
One of which being that the
-p
option is passed tomktemp
on the FreeBSD platform, whilstits usage message states:
To Reproduce
ghcup -c compile cabal -v 3.2.0.0 -b $HOME/.ghcup/bin/ghc-8.6.3
Expected behavior
I expect it to work.
System information
uname -a
: FreeBSD leto 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd6cabal-bootstrap.log
The text was updated successfully, but these errors were encountered: