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

Compiling fails linux #113

Closed
jprider63 opened this issue Jun 4, 2014 · 4 comments
Closed

Compiling fails linux #113

jprider63 opened this issue Jun 4, 2014 · 4 comments

Comments

@jprider63
Copy link

Installation fails with:

$ cabal install postgresql-simple
Resolving dependencies...
Configuring postgresql-simple-0.4.2.2...
Building postgresql-simple-0.4.2.2...
Preprocessing library postgresql-simple-0.4.2.2...
[ 1 of 32] Compiling Database.PostgreSQL.Simple.TypeInfo.Types ( src/Database/PostgreSQL/Simple/TypeInfo/Types.hs, dist/build/Database/PostgreSQL/Simple/TypeInfo/Types.o )
[ 2 of 32] Compiling Database.PostgreSQL.Simple.Time.Implementation ( src/Database/PostgreSQL/Simple/Time/Implementation.hs, dist/build/Database/PostgreSQL/Simple/Time/Implementation.o )
[ 3 of 32] Compiling Database.PostgreSQL.Simple.Time.Internal ( src/Database/PostgreSQL/Simple/Time/Internal.hs, dist/build/Database/PostgreSQL/Simple/Time/Internal.o )
[ 4 of 32] Compiling Database.PostgreSQL.Simple.SqlQQ ( src/Database/PostgreSQL/Simple/SqlQQ.hs, dist/build/Database/PostgreSQL/Simple/SqlQQ.o )
[ 5 of 32] Compiling Database.PostgreSQL.Simple.Time ( src/Database/PostgreSQL/Simple/Time.hs, dist/build/Database/PostgreSQL/Simple/Time.o )
[ 6 of 32] Compiling Database.PostgreSQL.Simple.TypeInfo.Static ( src/Database/PostgreSQL/Simple/TypeInfo/Static.hs, dist/build/Database/PostgreSQL/Simple/TypeInfo/Static.o )
[ 7 of 32] Compiling Database.PostgreSQL.Simple.BuiltinTypes ( src/Database/PostgreSQL/Simple/BuiltinTypes.hs, dist/build/Database/PostgreSQL/Simple/BuiltinTypes.o )
[ 8 of 32] Compiling Database.PostgreSQL.Simple.Arrays ( src/Database/PostgreSQL/Simple/Arrays.hs, dist/build/Database/PostgreSQL/Simple/Arrays.o )
[ 9 of 32] Compiling Database.PostgreSQL.Simple.Types ( src/Database/PostgreSQL/Simple/Types.hs, dist/build/Database/PostgreSQL/Simple/Types.o )
[10 of 32] Compiling Database.PostgreSQL.Simple.TypeInfo.Macro ( src/Database/PostgreSQL/Simple/TypeInfo/Macro.hs, dist/build/Database/PostgreSQL/Simple/TypeInfo/Macro.o )
[11 of 32] Compiling Database.PostgreSQL.Simple.ToField[boot] ( src/Database/PostgreSQL/Simple/ToField.hs-boot, dist/build/Database/PostgreSQL/Simple/ToField.o-boot )
[12 of 32] Compiling Database.PostgreSQL.Simple.ToRow[boot] ( src/Database/PostgreSQL/Simple/ToRow.hs-boot, dist/build/Database/PostgreSQL/Simple/ToRow.o-boot )
[13 of 32] Compiling Database.PostgreSQL.Simple.ToField ( src/Database/PostgreSQL/Simple/ToField.hs, dist/build/Database/PostgreSQL/Simple/ToField.o )
[14 of 32] Compiling Database.PostgreSQL.Simple.ToRow ( src/Database/PostgreSQL/Simple/ToRow.hs, dist/build/Database/PostgreSQL/Simple/ToRow.o )
[15 of 32] Compiling Database.PostgreSQL.Simple.Ok ( src/Database/PostgreSQL/Simple/Ok.hs, dist/build/Database/PostgreSQL/Simple/Ok.o )
[16 of 32] Compiling Database.PostgreSQL.Simple.Internal ( src/Database/PostgreSQL/Simple/Internal.hs, dist/build/Database/PostgreSQL/Simple/Internal.o )
[17 of 32] Compiling Database.PostgreSQL.Simple.LargeObjects ( src/Database/PostgreSQL/Simple/LargeObjects.hs, dist/build/Database/PostgreSQL/Simple/LargeObjects.o )
[18 of 32] Compiling Database.PostgreSQL.Simple.Notification ( src/Database/PostgreSQL/Simple/Notification.hs, dist/build/Database/PostgreSQL/Simple/Notification.o )
[19 of 32] Compiling Database.PostgreSQL.Simple.Errors ( src/Database/PostgreSQL/Simple/Errors.hs, dist/build/Database/PostgreSQL/Simple/Errors.o )
[20 of 32] Compiling Database.PostgreSQL.Simple.FromField[boot] ( src/Database/PostgreSQL/Simple/FromField.hs-boot, dist/build/Database/PostgreSQL/Simple/FromField.o-boot )
[21 of 32] Compiling Database.PostgreSQL.Simple.FromRow[boot] ( src/Database/PostgreSQL/Simple/FromRow.hs-boot, dist/build/Database/PostgreSQL/Simple/FromRow.o-boot )
[22 of 32] Compiling Database.PostgreSQL.Simple.Compat ( src/Database/PostgreSQL/Simple/Compat.hs, dist/build/Database/PostgreSQL/Simple/Compat.o )
[23 of 32] Compiling Database.PostgreSQL.Simple.Transaction ( src/Database/PostgreSQL/Simple/Transaction.hs, dist/build/Database/PostgreSQL/Simple/Transaction.o )
[24 of 32] Compiling Database.PostgreSQL.Simple[boot] ( src/Database/PostgreSQL/Simple.hs-boot, dist/build/Database/PostgreSQL/Simple.o-boot )
[25 of 32] Compiling Database.PostgreSQL.Simple.TypeInfo ( src/Database/PostgreSQL/Simple/TypeInfo.hs, dist/build/Database/PostgreSQL/Simple/TypeInfo.o )
[26 of 32] Compiling Database.PostgreSQL.Simple.FromField ( src/Database/PostgreSQL/Simple/FromField.hs, dist/build/Database/PostgreSQL/Simple/FromField.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package binary-0.7.2.1 ... linking ... done.
Loading package byteable-0.1.1 ... linking ... done.
Loading package cryptohash-0.11.4 ... linking ... done.
Loading package text-0.11.3.1 ... linking ... done.
Loading package hashable-1.1.2.5 ... linking ... done.
Loading package network-info-0.2.0.3 ... linking ... done.
Loading package old-locale-1.0.0.5 ... linking ... done.
Loading package time-1.4.0.1 ... linking ... done.
Loading package random-1.0.1.1 ... linking ... done.
Loading package uuid-1.3.3 ... linking ... done.
Loading package postgresql-libpq-0.9.0.1 ... linking ... ghc: /mc2homes/jprider/.cabal/lib/postgresql-libpq-0.9.0.1/ghc-7.6.3/HSpostgresql-libpq-0.9.0.1.o: unknown symbol `PQescapeIdentifier'
ghc: unable to load package `postgresql-libpq-0.9.0.1'
Failed to install postgresql-simple-0.4.2.2
cabal: Error: some packages failed to install:
postgresql-simple-0.4.2.2 failed during the building phase. The exception was:
ExitFailure 1

Do you have any suggestions? I'll look into older versions.

@jprider63
Copy link
Author

FYI, version 0.3.5.0 works while 0.3.6.0 fails with the same error. Also, I have cabal version 1.16.0 installed.

@jprider63
Copy link
Author

This appears to be a postgresql-libpq issue.

lpsmith/postgresql-libpq#18

@lpsmith
Copy link
Owner

lpsmith commented Jun 4, 2014

Many thanks for the report! It was obvious to me what the problem was, but it also suggests that this might be the same problem as #111. So with a little luck you may help solve that problem.

@lpsmith
Copy link
Owner

lpsmith commented Jun 9, 2014

And, it turns out that the information you provided in this report did help solve 111. Thanks again!

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

2 participants