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

Installation of package persistent-sqlite fails in windows with ld error #441

Closed
rubenmoor opened this issue Aug 5, 2015 · 4 comments
Closed
Labels

Comments

@rubenmoor
Copy link
Contributor

Trying either one of the following commands in my Win7 system fails.

$ stack install persistent-sqlite
$ cabal install persistent-sqlite

The error is some rather opaque ld related thing.

Resolving dependencies...
Configuring persistent-sqlite-2.2...
Building persistent-sqlite-2.2...
Failed to install persistent-sqlite-2.2
Build log ( C:\Users\TR@FI_02\AppData\Roaming\cabal\logs\persistent-sqlite-2.2.log ):
Building persistent-sqlite-2.2...
Preprocessing library persistent-sqlite-2.2...
[1 of 2] Compiling Database.Sqlite  ( Database\Sqlite.hs, dist\build\Database\Sqlite.o )
C:\Users\TR@FI_02\AppData\Local\Temp\ghc4324_0\ghc4324_9.ldscript: file not recognized: File format not recognized
collect2: ld returned 1 exit status

I ran into the issue under different circumstances

  • occurs on two different windows machines, both running Win7
  • occurs for persistent-sqlite version 2.2 and 2.1.4.2
  • occurs for ghc version 7.10.1, 7.8.4
@snoyberg
Copy link
Member

snoyberg commented Aug 5, 2015

Does this problem occur with other packages with embedded C code (yaml is one such example)?

@rubenmoor
Copy link
Contributor Author

I was not able to reproduce the ld fail on another windows machine and must conclude that there is something odd about my office pcs (they also have MS Visual Studio installed ... and maybe ld is messed up by other programs?).

I could not reproduce the ld fail installing yaml.

@gregwebs
Copy link
Member

Perhaps @joeyh is familiar with this

@parsonsmatt
Copy link
Collaborator

Closing; if you experience this again or are able to reproduce, feel free to re-open!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants