Skip to content

dev-lang/ghc-9.8.4 does not build when /bin/sh -> dash #1726

Open
@amano-kenji

Description

@amano-kenji

From build.log, I found

libraries/ghc-prim/cbits/atomic.c:175:10: error:
     note: ‘__sync_fetch_and_nand’ changed semantics in GCC 4.4
175 |   return __sync_fetch_and_nand((volatile StgWord8 *) x, (StgWord8) val);
    |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |
175 |   return __sync_fetch_and_nand((volatile StgWord8 *) x, (StgWord8) val);
    |          ^
Error: hadrian: Missing dependency on a foreign library:
* Missing (or bad) C library: NONE
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions