Skip to content

ghc-pkg error: package.conf.d/$pkg.conf does not exist

This happens occasionally during gitlab/ci.sh test_hadrian .

Failure example:

Error: hadrian: ghc-pkg dump failed: dieVerbatim: user error (Error: hadrian:
'/opt/ghc/9.4.3/bin/ghc-pkg' exited with an error:
ghc-pkg-9.4.3: _build/stage0/inplace/package.conf.d/mtl-2.3.1.conf:
getModificationTime:getFileStatus: does not exist (No such file or directory)
)

It is not always the same file, but otherwise the errors look the same.

This happens a lot and seems unrelated to the code being validated, so I will add it to the retry bot.

It happens on Windows, Linux, and Macs:

select count(*),  json ->> '$.runner.description'
from job
where job_id in (
    select rowid from job_trace where trace match '"ghc-pkg dump failed: dieVerbatim: user error"'
)
group by  json ->> '$.runner.description'

---

count(*)  json ->> '$.runner.description'                   
--------  --------------------------------------------------
11                                                          
1         aarch64-darwin-1_aarch64-darwin-1_a1a3a7139d97    
1         aarch64-darwin-3_aarch64-darwin-3_855e630771e1    
2         aarch64-linux-2.zw3rk_aarch64-linux-2_379242e21d29
5         aarch64-linux-2.zw3rk_aarch64-linux-2_97f12874a58d
3         maurer.smart-cactus.org_maurer_ddb6d703d90e       
4         x86-64-win-2.zw3rk.com                            
1         x86_64-linux-2.zw3rk_x86_64-linux-2_d292a225d2eb  
1         x86_64-linux-3.zw3rk_x86_64-linux-3_db038e4e1623  
3         x86_64-linux-4.zw3rk_x86_64-linux-4_db038e4e1623  
1         x86_64-linux-5.zw3rk_x86_64-linux-5_db038e4e1623  
1         x86_64-linux-7.zw3rk_x86_64-linux-7_db038e4e1623  

Examples from the last 2-3 months:

Edited by Bryan R
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information