Open alanz opened 4 years ago
cabal -w ghc-8.4.4
is failing with:
Configuring library for ghc-lib-parser-8.10.1.20200523..
Preprocessing library for ghc-lib-parser-8.10.1.20200523..
In file included from /usr/include/_G_config.h:15:0,
from /usr/include/libio.h:31,
from /usr/include/stdio.h:74,
from /opt/ghc/8.4.4/lib/ghc-8.4.4/include/rts/Flags.h:16,
from /opt/ghc/8.4.4/lib/ghc-8.4.4/include/Rts.h:191,
from InfoTable.hsc:8:
InfoTable.hsc: In function ‘main’:
/opt/ghc/8.4.4/lib/ghc-8.4.4/template-hsc.h:75:24: error: ‘struct StgInfoTable_’ has no member named ‘srt’
(long) offsetof (t, f));
^
InfoTable.hsc:41:5: note: in expansion of macro ‘hsc_peek’
/opt/ghc/8.4.4/lib/ghc-8.4.4/template-hsc.h:79:24: error: ‘StgInfoTable {aka struct StgInfoTable_}’ has no member named ‘srt’
(long) offsetof (t, f));
^
InfoTable.hsc:59:5: note: in expansion of macro ‘hsc_poke’
compiling dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c -o dist/build/GHC/Exts/Heap/InfoTable_hsc_make.o -fno-stack-protector -fno-stack-protector -fuse-ld=gold -D__GLASGOW_HASKELL__=804 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iincludes -Ighc-lib/stage0/lib -Ighc-lib/stage0/compiler/build -Icompiler -Idist/build/includes -Idist/build/ghc-lib/stage0/lib -Idist/build/ghc-lib/stage0/compiler/build -Idist/build/compiler -DTHREADED_RTS -DTHREADED_RTS -DGHC_IN_GHCI -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.4.4/lib/ghc-8.4.4/process-1.6.3.0/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/unix-2.7.2.2/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/time-1.8.0.2/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/include -I/opt/ghc/8.4.4/lib/ghc-8.4.4/include/
cabal: Failed to build ghc-lib-parser-8.10.1.20200523 (which is required by
hlint-3.1.4). See the build log above for details.
So it seems the cabal.project constraint was to make cabal avoid ghc-lib-parser-8.10.1.20200523 I would have done better to leave a comment when i added the constraint
cabal index 2020-06-01T18:54:28Z stack-8.8.3.yaml to lts-15.14 stack.yaml to nightly-2020-06-01