yesodweb / yesodweb/persistent

persistent-sqlite-2.8.1.2 test suite does not link

Open
#803 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.