Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1806109 - [s390x] FTBFS: ghc-lib-parser fails to build
Summary: [s390x] FTBFS: ghc-lib-parser fails to build
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc-ghc-lib-parser
Version: 34
Hardware: s390x
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-22 07:08 UTC by Jens Petersen
Modified: 2021-02-09 16:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Jens Petersen 2020-02-22 07:08:02 UTC
Description of problem:
Recent hlint releases > 2.1.17 require the new ghc-lib-parser library.
However currently it fails to build on s390x.

Version-Release number of selected component (if applicable):
ghc-8.6.5-102.fc32.s390x
hlint-2.1.26-1.fc32
ghc-lib-parser-8.8.0.20190424
ghc-lib-parser-8.8.2.20200205

How reproducible:
100%

Steps to Reproduce:
1. Build hlint in f32

Actual results:
Configuring ghc-lib-parser-8.8.0.20190424...
+ '[' -x Setup ']'
+ LANG=C.utf8
+ ./Setup build
Preprocessing library for ghc-lib-parser-8.8.0.20190424..
In file included from /usr/lib64/ghc-8.6.5/include/Stg.h:319,
                 from /usr/lib64/ghc-8.6.5/include/Rts.h:29,
                 from InfoTable.hsc:8:
/usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘write_barrier’:
/usr/lib64/ghc-8.6.5/include/stg/SMP.h:200:2: error: #error memory barriers unimplemented on this architecture
  200 | #error memory barriers unimplemented on this architecture
      |  ^~~~~
/usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘store_load_barrier’:
/usr/lib64/ghc-8.6.5/include/stg/SMP.h:222:2: error: #error memory barriers unimplemented on this architecture
  222 | #error memory barriers unimplemented on this architecture
      |  ^~~~~
/usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘load_load_barrier’:
/usr/lib64/ghc-8.6.5/include/stg/SMP.h:245:2: error: #error memory barriers unimplemented on this architecture
  245 | #error memory barriers unimplemented on this architecture
      |  ^~~~~
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__=806 -Dlinux_BUILD_OS=1 -Ds390x_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Ighc-lib/generated -Ighc-lib/stage0/compiler/build -Ighc-lib/stage1/compiler/build -Icompiler -Icompiler/utils -Idist/build/ghc-lib/generated -Idist/build/ghc-lib/stage0/compiler/build -Idist/build/ghc-lib/stage1/compiler/build -Idist/build/compiler -Idist/build/compiler/utils -DTHREADED_RTS -DSTAGE=2 -DTHREADED_RTS -DGHCI -DGHC_IN_GHCI -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/usr/lib64/ghc-8.6.5/process-1.6.5.0/include -I/usr/lib64/ghc-8.6.5/unix-2.7.2.2/include -I/usr/lib64/ghc-8.6.5/time-1.8.0.2/include -I/usr/lib64/ghc-8.6.5/bytestring-0.10.8.2/include -I/usr/lib64/ghc-8.6.5/base-4.12.0.0/include -I/usr/lib64/ghc-8.6.5/integer-gmp-1.0.2.0/include -I/usr/lib64/ghc-8.6.5/include -I/usr/lib64/ghc-8.6.5/include/

Expected results:
Not error

Additional info:
Reported upstream in https://github.com/digital-asset/ghc-lib/issues/184

Comment 2 Ben Cotton 2020-08-11 15:26:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 3 Jens Petersen 2020-09-01 08:11:22 UTC
Same with ghc-8.8.4

Comment 4 Ben Cotton 2021-02-09 16:15:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.


Note You need to log in before you can comment on or make changes to this bug.