yesodweb / yesodweb/persistent
persistent-sqlite-2.8.1.2 test suite does not link
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
I see the following build error trying to link the test suite for persistent-sqlite-2.8.1.2 on NixOS with GHC 8.2.2:
Building library for persistent-sqlite-2.8.1.2..
[1 of 2] Compiling Database.Sqlite ( Database/Sqlite.hs, dist/build/Database/Sqlite.o )
[2 of 2] Compiling Database.Persist.Sqlite ( Database/Persist/Sqlite.hs, dist/build/Database/Persist/Sqlite.o )
[1 of 2] Compiling Database.Sqlite ( Database/Sqlite.hs, dist/build/Database/Sqlite.p_o )
[2 of 2] Compiling Database.Persist.Sqlite ( Database/Persist/Sqlite.hs, dist/build/Database/Persist/Sqlite.p_o )
Preprocessing test suite 'test' for persistent-sqlite-2.8.1.2..
Building test suite 'test' for persistent-sqlite-2.8.1.2..
[1 of 1] Compiling Main ( test/Spec.hs, dist/build/test/test-tmp/Main.o )
ghc: /build/persistent-sqlite-2.8.1.2/dist/build/HSpersistent-sqlite-2.8.1.2-5SuMJ92WgtB6QXdWG2V7GH.o: unknown symbol `stat64'
<no location info>: error:
ghc: unable to load package `persistent-sqlite-2.8.1.2'
The complete log file is at https://hydra.nixos.org/build/72520118.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the test-suite link failure on NixOS with GHC 8.2.2 using the build log for persistent-sqlite-2.8.1.2. Inspect test/Spec.hs and the package build configuration, then confirm that the test suite links without the unknown stat64 symbol and that the existing tests run successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, sqlite
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100