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

postgrest fails to build on 10.14 #31609

Closed
DomT4 opened this issue Aug 30, 2018 · 7 comments
Closed

postgrest fails to build on 10.14 #31609

DomT4 opened this issue Aug 30, 2018 · 7 comments
Labels
10.14 Mojave is specifically affected outdated PR was locked due to age stale No recent activity upstream issue An upstream issue report is needed

Comments

@DomT4
Copy link
Member

DomT4 commented Aug 30, 2018

Build log ( /private/tmp/postgrest-20180830-68685-14421wf/postgrest-0.5.0.0/.cabal-sandbox/logs/ghc-8.2.2/hasql-transaction-0.5.2-COmdZSwycTpDSqmOWTIV7x.log ):
cabal: Entering directory '/private/tmp/cabal-tmp-69101/hasql-transaction-0.5.2'
Configuring hasql-transaction-0.5.2...
clang: warning: -Wl,-headerpad_max_install_names: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/opt/ghc@8.2/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/opt/icu4c/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/opt/openssl/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/opt/readline/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries' [-Wunused-command-line-argument]
Preprocessing library for hasql-transaction-0.5.2..
Building library for hasql-transaction-0.5.2..
[1 of 8] Compiling Hasql.Transaction.Private.Prelude ( library/Hasql/Transaction/Private/Prelude.hs, dist/dist-sandbox-34a56b32/build/Hasql/Transaction/Private/Prelude.o )
[2 of 8] Compiling Hasql.Transaction.Private.Model ( library/Hasql/Transaction/Private/Model.hs, dist/dist-sandbox-34a56b32/build/Hasql/Transaction/Private/Model.o )
[3 of 8] Compiling Hasql.Transaction.Private.SQL ( library/Hasql/Transaction/Private/SQL.hs, dist/dist-sandbox-34a56b32/build/Hasql/Transaction/Private/SQL.o )
[4 of 8] Compiling Hasql.Transaction.Private.Queries ( library/Hasql/Transaction/Private/Queries.hs, dist/dist-sandbox-34a56b32/build/Hasql/Transaction/Private/Queries.o )

library/Hasql/Transaction/Private/Queries.hs:6:1: error:
    Could not find module ‘Hasql.Query’
    Use -v to see a list of the files searched for.
  |
6 | import qualified Hasql.Query as A
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/private/tmp/cabal-tmp-69101/hasql-transaction-0.5.2'
Installed hasql-pool-0.5
Installed lens-4.17
cabal: Error: some packages failed to install:
hasql-transaction-0.5.2-COmdZSwycTpDSqmOWTIV7x failed during the building
phase. The exception was:
ExitFailure 1
@DomT4 DomT4 added the 10.14 Mojave is specifically affected label Aug 30, 2018
@SConaway
Copy link
Contributor

SConaway commented Sep 3, 2018

@stale
Copy link

stale bot commented Sep 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Sep 24, 2018
@fxcoudert fxcoudert removed the stale No recent activity label Sep 30, 2018
@athas
Copy link
Contributor

athas commented Oct 2, 2018

I suspect that these issues occur because of upstream changes in Hackage compared to when the formula was first tested. This is because the (Haskell-level) package dependencies are not fixed at formula-creation-time, and change independently of Homebrew itself.

@athas
Copy link
Contributor

athas commented Oct 2, 2018

Yes, this is exactly the case. The package hasql-transaction-0.5.2 declares a dependency on version 1.* of hasql, but actually depends on a module that was removed in hasql-1.3.0. (On Hackage, the first two components are major version numbers.) I'm surprised Haskell programs on Homebrew don't break more often due to stuff like this. Maybe because most installations are bottled anyway?

@fxcoudert fxcoudert added the upstream issue An upstream issue report is needed label Oct 17, 2018
@fxcoudert
Copy link
Member

This was reported upstream, and fixed, but it will have to wait until a new release is made: dimitri/pgloader#832

@stale
Copy link

stale bot commented Nov 7, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Nov 7, 2018
@fxcoudert
Copy link
Member

No movement upstream.

@lock lock bot added the outdated PR was locked due to age label Dec 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
10.14 Mojave is specifically affected outdated PR was locked due to age stale No recent activity upstream issue An upstream issue report is needed
Projects
None yet
Development

No branches or pull requests

4 participants