I'm getting below error on a multi-arch build with the Dockerfile from this repo:
docker buildx build --platform linux/arm64,linux/amd64 .
Seems to be only on the arm64 architecture - saw some hints on haskell/cabal#7950 but haven't been able to solve this
#0 261.3 Installing library in /opt/ghc/8.10.7/lib/ghc-8.10.7/ghc-8.10.7
#0 263.4 "/opt/ghc/8.10.7/lib/ghc-8.10.7/bin/ghc-pkg" --force --global-package-db "/opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d" update rts/dist/package.conf.install
#0 265.6 ghc-pkg: Couldn't open database /opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d for modification: {handle: /opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)
#0 265.6 make[1]: *** [ghc.mk:985: install_packages] Error 1
#0 265.6 make: *** [Makefile:51: install] Error 2
Any options to pass in configure flags?
I'm getting below error on a multi-arch build with the Dockerfile from this repo:
docker buildx build --platform linux/arm64,linux/amd64 .Seems to be only on the
arm64architecture - saw some hints on haskell/cabal#7950 but haven't been able to solve this#0 261.3 Installing library in /opt/ghc/8.10.7/lib/ghc-8.10.7/ghc-8.10.7#0 263.4 "/opt/ghc/8.10.7/lib/ghc-8.10.7/bin/ghc-pkg" --force --global-package-db "/opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d" update rts/dist/package.conf.install#0 265.6 ghc-pkg: Couldn't open database /opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d for modification: {handle: /opt/ghc/8.10.7/lib/ghc-8.10.7/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)#0 265.6 make[1]: *** [ghc.mk:985: install_packages] Error 1#0 265.6 make: *** [Makefile:51: install] Error 2Any options to pass in configure flags?