Opened 6 years ago

Closed 4 years ago

Last modified 3 years ago

#7389 closed bug (fixed)

can't link postgresql-libpq on windows

Reported by: eflister Owned by:
Priority: normal Milestone: 8.0.1
Component: GHCi Version: 7.4.1
Keywords: Cc: hvr
Operating System: Windows Architecture: x86_64 (amd64)
Type of failure: Runtime crash Test Case:
Blocked By: #3658 Blocking:
Related Tickets: #9907 Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

i follow the instructions here:

and when cabal tries to link, i get:

Loading package postgresql-libpq- ... ghc.exe: Unknown PEi386 section name `.idata$4' (while processing: c:/PROGRA~2/POSTGR~1/9.1/lib\libpq.a)
ghc.exe: panic! (the 'impossible' happened)
  (GHC version 7.4.1 for i386-unknown-mingw32):
        loadArchive "c:/PROGRA~2/POSTGR~1/9.1/lib\\libpq.a": failed

Please report this as a GHC bug:

Change History (8)

comment:1 Changed 6 years ago by eflister

Component: Build SystemGHCi

hmm, could be same as: #7103

comment:2 Changed 6 years ago by igloo

Description: modified (diff)
difficulty: Unknown

comment:3 Changed 6 years ago by igloo

Blocked By: 3658 added
Milestone: 7.8.1

Thanks for the report.

I'm a little confused about why the ghc linker is being used in this case, but the error comes from it, so it must be.

In any case, this therefore ought to be fixed by #3658.

comment:4 Changed 5 years ago by thoughtpolice


Moving to 7.10.1

comment:5 Changed 4 years ago by thomie

Blocked By: 5987 added
Cc: hvr added

comment:6 Changed 4 years ago by thoughtpolice


Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:7 Changed 4 years ago by Phyx-

Blocked By: 5987 removed
Resolution: fixed
Status: newclosed

Already fixed in 7.10.1 by #9907

comment:8 Changed 3 years ago by thoughtpolice


Milestone renamed

Note: See TracTickets for help on using tickets.