Re: bug in ghc 9.6 ?
Hello, I don't have an answer, nor I do speak haskell, but hkl has been segfaulting during build (s390x only) with older ghc in Ubuntu,
and so far I couldn't find any reason/fix for that issue
https://launchpadlibrarian.net/745152493/buildlog_ubuntu-oracular-s390x.hkl_5.0.0.3462-1build1_BUILDING.txt.gz
/usr/bin/cabal \
--config-file=empty-config-file \
build \
-fuseHklDev \
--disable-shared \
--enable-optimization \
--enable-static \
--extra-include-dirs=/<<PKGBUILDDIR>> \
--extra-include-dirs=/<<PKGBUILDDIR>>/binoculars-ng/binoculars \
--extra-lib-dirs=/<<PKGBUILDDIR>>/hkl/.libs \
--extra-lib-dirs=/<<PKGBUILDDIR>>/binoculars-ng/binoculars/.libs \
--offline
make[4]: *** [Makefile:833: binoculars-ng] Segmentation fault (core dumped)
I tried some approaches, to call cabal manually, but none worked (even disabling optimization) and qemu-s390x is not able
to allow me to gdb it...
Maybe new ghc spotted the bug in Debian too, while older one was just segfaulting under some particular optimization arch.
G.
Il mercoledì 9 ottobre 2024 alle ore 13:18:14 CEST, PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> ha scritto:
Hello I am preparing the hkl package whcih contain an haskell program (binoculars-ng)
when I try to recompile it with ghc 9.6 on Deban unstable I get this error message.
[35 of 35] Compiling Hkl ( src/Hkl.hs, /home/picca/src/repo.or.cz/hkl/binoculars-ng/dist-newstyle/build/x86_64-linux/ghc-9.6.6/hkl-0.1.0.2/build/Hkl.o, /home/picca/src/repo.or.cz/hkl/binoculars-ng/dist-newstyle/build/x86_64-linux/ghc-9.6.6/hkl-0.1.0.2/build/Hkl.dyn_o )
panic! (the 'impossible' happened)
GHC version 9.6.6:
Data.Binary.Get.runGet at position 8: Invalid magic number "/* GNU l"
CallStack (from HasCallStack):
error, called at libraries/binary/src/Data/Binary/Get.hs:345:5 in binary-0.8.9.1:Data.Binary.Get
So my question is how can I help solve this issue ?
thanks for your help
Fred
to reproduce on Debian unstable
sudo apt build-dep hkl
git clone https://repo.or.cz/hkl
cd hkl
./autogen.sh
./configure
make
Reply to:
- References:
- bug in ghc 9.6 ?
- From: PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>