Open nomeata opened 2 years ago
Ok, seems to be related to glibc, according to https://github.com/NixOS/nixpkgs/issues/19095, although that was fixed a while in the past
More digging reveals it’s related to nix’s hardening features. By building in an environment with hardening disabled, i.e.
$ cat shell.nix
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
nativeBuildInputs = [
bashInteractive
];
buildInputs = [
glibc
ghc
pkg-config
glib
librsvg
gtk3
];
hardeningDisable = ["all"];
}
(based on https://github.com/NixOS/nixpkgs/issues/101979#issuecomment-876057292) I can build.
I run into this also on Ubuntu 20.04.3
Fixing cpp-options solves it for me (as in https://github.com/gtk2hs/svgcairo/pull/12)
I am trying to build
svgcairo
and I am running into this problem. This is on NixOS; I do not know yet if this is related to the issue: