NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.1k forks source link

hercules-ci-cnix-store fails to build on aarch64-darwin #179151

Closed lovesegfault closed 2 years ago

lovesegfault commented 2 years ago

Describe the bug

haskellPackages.hercules-ci-cnix-store fails to build on M1 macs.

Steps To Reproduce

Steps to reproduce the behavior:

  1. git checkout 46ae6833a2103fab58b63045114a14ca43883466
  2. nix-build -A haskellPackages.hercules-ci-cnix-store
  3. Failure

Expected behavior

Build succeeds.

Screenshots

@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/vsy96khf40byhxsa6awkwxw5vdb196v6-hercules-ci-cnix-store-0.3.2.0.tar.gz
source root is hercules-ci-cnix-store-0.3.2.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file hercules-ci-cnix-store-0.3.2.0/test/data/regular.drv
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-hercules-ci-cnix-store-0.3.2.0.drv-0/tmp.IPQvLhDmzi/setup-package.conf.d -j10 -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /private/tmp/nix-build-hercules-ci-cnix-store-0.3.2.0.drv-0/tmp.IPQvLhDmzi/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/9zab9ly8f6vz35s90scix55nch2ay167-hercules-ci-cnix-store-0.3.2.0-doc/share/doc/hercules-ci-cnix-store-0.3.2.0 --with-gcc=clang --package-db=/private/tmp/nix-build-hercules-ci-cnix-store-0.3.2.0.drv-0/tmp.IPQvLhDmzi/package.conf.d --ghc-options=-j10 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-options=-haddock --extra-lib-dirs=/nix/store/vxbwrv0b8x5xaxdaqpxhpjz1jcb8c8f4-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/vwyv7w4a8xd14zz3g58l5dxyf1wv7r4m-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/zkf6xcallkm4dz8i9dk33cir4grhb6vw-gmp-with-cxx-6.2.1/lib --extra-include-dirs=/nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/include --extra-lib-dirs=/nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib --extra-include-dirs=/nix/store/aaghhirvphc90jkhv2wnh1afp35mzv61-libcxx-11.1.0-dev/include --extra-lib-dirs=/nix/store/5qhflbwym4arxkyg47arplrw14vw02h8-libcxx-11.1.0/lib --extra-include-dirs=/nix/store/57pflwzcx1sd2q0pdyc0xr8n95ay5ri9-libcxxabi-11.1.0-dev/include --extra-lib-dirs=/nix/store/jiv9n0v7jlcy5mxl0dhcnkxq2crm73vl-libcxxabi-11.1.0/lib --extra-lib-dirs=/nix/store/jwzxnwr7yhssjsj16zl2gkb94bp230p7-compiler-rt-libc-11.1.0/lib --extra-include-dirs=/nix/store/hmbwplsl3v5mdpc74fagn7hrg4j9bhy4-boost-1.79.0-dev/include --extra-lib-dirs=/nix/store/hmbwplsl3v5mdpc74fagn7hrg4j9bhy4-boost-1.79.0-dev/lib --extra-lib-dirs=/nix/store/bxq1jnm7419zynx9fjskamak8lgw70qj-boost-1.79.0/lib --extra-include-dirs=/nix/store/0f8wh4fjbxpvsdgjjfsaq319jnblirwj-nix-2.7.0-dev/include --extra-lib-dirs=/nix/store/0f8wh4fjbxpvsdgjjfsaq319jnblirwj-nix-2.7.0-dev/lib --extra-include-dirs=/nix/store/05srqs8vva0jaj1qh75bkfpx3s47x09z-boehm-gc-8.0.6-dev/include --extra-lib-dirs=/nix/store/05srqs8vva0jaj1qh75bkfpx3s47x09z-boehm-gc-8.0.6-dev/lib --extra-lib-dirs=/nix/store/n1gb0rj11ffc7bjsinijl42b89dlhvkv-boehm-gc-8.0.6/lib --extra-include-dirs=/nix/store/dd2753fvzla20akb5702852zqh38iphv-nlohmann_json-3.10.5/include --extra-lib-dirs=/nix/store/dd2753fvzla20akb5702852zqh38iphv-nlohmann_json-3.10.5/lib --extra-lib-dirs=/nix/store/msw1vg41pg3zac4mici7w6ybwxsx03dp-nix-2.7.0/lib --extra-framework-dirs=/nix/store/c63jzpas2cy6h62vjzn9q2pf4g8l3703-apple-framework-CoreFoundation-11.0.0/Library/Frameworks --extra-include-dirs=/nix/store/1vw47kfajfymskfdnilpaby2gg39rbiy-libobjc-11.0.0/include --extra-lib-dirs=/nix/store/1vw47kfajfymskfdnilpaby2gg39rbiy-libobjc-11.0.0/lib
Using Parsec parser
Configuring hercules-ci-cnix-store-0.3.2.0...
Flags chosen: nix-2_4=True, nix-2_5=True
Dependency base >=4.7 && <5: using base-4.15.1.0
Dependency bytestring: using bytestring-0.10.12.1
Dependency conduit: using conduit-1.3.4.2
Dependency containers: using containers-0.6.4.1
Dependency inline-c: using inline-c-0.9.1.6
Dependency inline-c-cpp >=0.5.0.0: using inline-c-cpp-0.5.0.0
Dependency protolude: using protolude-0.3.2
Dependency template-haskell: using template-haskell-2.17.0.0
Dependency unix: using unix-2.7.2.2
Dependency unliftio-core: using unliftio-core-0.2.0.1
Dependency vector: using vector-0.12.3.1
Dependency base: using base-4.15.1.0
Dependency bytestring: using bytestring-0.10.12.1
Dependency containers: using containers-0.6.4.1
Dependency exceptions: using exceptions-0.10.4
Dependency hercules-ci-cnix-store: using hercules-ci-cnix-store-0.3.2.0
Dependency hspec: using hspec-2.8.5
Dependency inline-c: using inline-c-0.9.1.6
Dependency inline-c-cpp: using inline-c-cpp-0.5.0.0
Dependency protolude: using protolude-0.3.2
Dependency temporary: using temporary-1.3
Dependency text: using text-1.2.5.0
Dependency nix-store >=2.4 && <2.9: using version 2.7.0
Dependency nix-main >=2.4 && <2.9: using version 2.7.0
Source component graph:
    component lib
    component test:hercules-ci-cnix-store-tests dependency lib
Configured component graph:
    component hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include conduit-1.3.4.2-25HSg02oz5pBCzkBX9bs12
        include containers-0.6.4.1
        include inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        include inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        include protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        include template-haskell-2.17.0.0
        include unix-2.7.2.2
        include unliftio-core-0.2.0.1-HjGpVpPktr5Bc3kYrL6LtS
        include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
    component hercules-ci-cnix-store-0.3.2.0-JP97K5zZWpy7v4Yeaiwfmj-hercules-ci-cnix-store-tests
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include containers-0.6.4.1
        include exceptions-0.10.4
        include hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        include hspec-2.8.5-15yd26Khcrc433s3iLylfP
        include inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        include inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        include protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        include temporary-1.3-B3GwOKioSjS3sORESGslUK
        include text-1.2.5.0
Linked component graph:
    unit hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include conduit-1.3.4.2-25HSg02oz5pBCzkBX9bs12
        include containers-0.6.4.1
        include inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        include inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        include protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        include template-haskell-2.17.0.0
        include unix-2.7.2.2
        include unliftio-core-0.2.0.1-HjGpVpPktr5Bc3kYrL6LtS
        include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
        Hercules.CNix=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix,Hercules.CNix.Encapsulation=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Encapsulation,Hercules.CNix.Exception=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Exception,Hercules.CNix.Settings=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Settings,Hercules.CNix.Std.Set=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Std.Set,Hercules.CNix.Std.String=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Std.String,Hercules.CNix.Std.String.Context=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Std.String.Context,Hercules.CNix.Std.String.Instances=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Std.String.Instances,Hercules.CNix.Std.Vector=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Std.Vector,Hercules.CNix.Store=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Store,Hercules.CNix.Store.Context=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Store.Context,Hercules.CNix.Store.Instances=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Store.Instances,Hercules.CNix.Util=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Util,Hercules.CNix.Verbosity=hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX:Hercules.CNix.Verbosity
    unit hercules-ci-cnix-store-0.3.2.0-JP97K5zZWpy7v4Yeaiwfmj-hercules-ci-cnix-store-tests
        include base-4.15.1.0
        include bytestring-0.10.12.1
        include containers-0.6.4.1
        include exceptions-0.10.4
        include hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        include hspec-2.8.5-15yd26Khcrc433s3iLylfP
        include inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        include inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        include protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        include temporary-1.3-B3GwOKioSjS3sORESGslUK
        include text-1.2.5.0
Ready component graph:
    definite hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        depends base-4.15.1.0
        depends bytestring-0.10.12.1
        depends conduit-1.3.4.2-25HSg02oz5pBCzkBX9bs12
        depends containers-0.6.4.1
        depends inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        depends inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        depends protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        depends template-haskell-2.17.0.0
        depends unix-2.7.2.2
        depends unliftio-core-0.2.0.1-HjGpVpPktr5Bc3kYrL6LtS
        depends vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
    definite hercules-ci-cnix-store-0.3.2.0-JP97K5zZWpy7v4Yeaiwfmj-hercules-ci-cnix-store-tests
        depends base-4.15.1.0
        depends bytestring-0.10.12.1
        depends containers-0.6.4.1
        depends exceptions-0.10.4
        depends hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
        depends hspec-2.8.5-15yd26Khcrc433s3iLylfP
        depends inline-c-0.9.1.6-5qOiSCoL9Yr1FcuUsmm72j
        depends inline-c-cpp-0.5.0.0-1KsEMulmavg4f2ypaNH63J
        depends protolude-0.3.2-Hqw8MbfmwFM8hxMcw2bzFa
        depends temporary-1.3-B3GwOKioSjS3sORESGslUK
        depends text-1.2.5.0
Using Cabal-3.4.1.0 compiled by ghc-9.0
Using compiler: ghc-9.0.2
Using install prefix:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0
Executables installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/bin
Libraries installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/lib/ghc-9.0.2/aarch64-osx-ghc-9.0.2/hercules-ci-cnix-store-0.3.2.0-63hvv3UxbkR9kIxqAqX1fX
Dynamic Libraries installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/lib/ghc-9.0.2/aarch64-osx-ghc-9.0.2
Private executables installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/libexec/aarch64-osx-ghc-9.0.2/hercules-ci-cnix-store-0.3.2.0
Data files installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/share/aarch64-osx-ghc-9.0.2/hercules-ci-cnix-store-0.3.2.0
Documentation installed in:
/nix/store/9zab9ly8f6vz35s90scix55nch2ay167-hercules-ci-cnix-store-0.3.2.0-doc/share/doc/hercules-ci-cnix-store-0.3.2.0
Configuration files installed in:
/nix/store/by6wq96n6v7vzha5m5v76mck8dnrkf7m-hercules-ci-cnix-store-0.3.2.0/etc
No alex found
Using ar found on system at:
/nix/store/6651yv1y4iv29ag28sj7cs5bkm7jka0c-cctools-binutils-darwin-949.0.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 11.1.0 given by user at:
/nix/store/y1ijzmik13ak5vpb19rqsdkbv2lm2imb-clang-wrapper-11.1.0/bin/clang
Using ghc version 9.0.2 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/ghc
Using ghc-pkg version 9.0.2 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.25.1 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/asd1fxhswhbcm77mr7zc25fr9wb9ihz8-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/ix9brk4ya36pikm2rv17pmdcrg333apm-cctools-binutils-darwin-wrapper-949.0.1/bin/ld
Using pkg-config version 0.29.2 found on system at:
/nix/store/gfwwirrvsl2g3693rmkhb54d3mxyma4m-pkg-config-wrapper-0.29.2/bin/pkg-config
Using runghc version 9.0.2 found on system at:
/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/bin/runghc
Using strip found on system at:
/nix/store/y1ijzmik13ak5vpb19rqsdkbv2lm2imb-clang-wrapper-11.1.0/bin/strip
Using tar found on system at:
/nix/store/smlqcmgmbll8j8dhy0l37215lj4phnsw-gnutar-1.34/bin/tar
No uhc found
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for hercules-ci-cnix-store-0.3.2.0..
Building library for hercules-ci-cnix-store-0.3.2.0..
[ 1 of 14] Compiling Hercules.CNix.Encapsulation ( src/Hercules/CNix/Encapsulation.hs, dist/build/Hercules/CNix/Encapsulation.o, dist/build/Hercules/CNix/Encapsulation.dyn_o )
[ 2 of 14] Compiling Hercules.CNix.Std.Set ( src/Hercules/CNix/Std/Set.hs, dist/build/Hercules/CNix/Std/Set.o, dist/build/Hercules/CNix/Std/Set.dyn_o )
[ 3 of 14] Compiling Hercules.CNix.Std.String.Context ( src/Hercules/CNix/Std/String/Context.hs, dist/build/Hercules/CNix/Std/String/Context.o, dist/build/Hercules/CNix/Std/String/Context.dyn_o )
[ 4 of 14] Compiling Hercules.CNix.Std.Vector ( src/Hercules/CNix/Std/Vector.hs, dist/build/Hercules/CNix/Std/Vector.o, dist/build/Hercules/CNix/Std/Vector.dyn_o )
[ 5 of 14] Compiling Hercules.CNix.Std.String.Instances ( src/Hercules/CNix/Std/String/Instances.hs, dist/build/Hercules/CNix/Std/String/Instances.o, dist/build/Hercules/CNix/Std/String/Instances.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 6 of 14] Compiling Hercules.CNix.Std.String ( src/Hercules/CNix/Std/String.hs, dist/build/Hercules/CNix/Std/String.o, dist/build/Hercules/CNix/Std/String.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 7 of 14] Compiling Hercules.CNix.Store.Context ( src/Hercules/CNix/Store/Context.hs, dist/build/Hercules/CNix/Store/Context.o, dist/build/Hercules/CNix/Store/Context.dyn_o )
[ 8 of 14] Compiling Hercules.CNix.Settings ( src/Hercules/CNix/Settings.hs, dist/build/Hercules/CNix/Settings.o, dist/build/Hercules/CNix/Settings.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 9 of 14] Compiling Hercules.CNix.Exception ( src/Hercules/CNix/Exception.hs, dist/build/Hercules/CNix/Exception.o, dist/build/Hercules/CNix/Exception.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[10 of 14] Compiling Hercules.CNix.Store.Instances ( src/Hercules/CNix/Store/Instances.hs, dist/build/Hercules/CNix/Store/Instances.o, dist/build/Hercules/CNix/Store/Instances.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[11 of 14] Compiling Hercules.CNix.Store ( src/Hercules/CNix/Store.hs, dist/build/Hercules/CNix/Store.o, dist/build/Hercules/CNix/Store.dyn_o )

src/Hercules/CNix/Store.hs:233:28: error:
     warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
          return new StorePath(std::move((*store_inline_c_5)->parseStorePath(std::string(bs_inline_c_6, bs_inline_c_7))));
                               ^
    |
233 |       std::string s($fptr-ptr:(nix::StorePath *sp)->to_string());
    |                            ^

src/Hercules/CNix/Store.hs:233:28: error:
     note: remove std::move call here
          return new StorePath(std::move((*store_inline_c_5)->parseStorePath(std::string(bs_inline_c_6, bs_inline_c_7))));
                               ^~~~~~~~~~                                                                              ~
    |
233 |       std::string s($fptr-ptr:(nix::StorePath *sp)->to_string());
    |                            ^
1 warning generated.
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file

src/Hercules/CNix/Store.hs:233:28: error:
     warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
          return new StorePath(std::move((*store_inline_c_5)->parseStorePath(std::string(bs_inline_c_6, bs_inline_c_7))));
                               ^
    |
233 |       std::string s($fptr-ptr:(nix::StorePath *sp)->to_string());
    |                            ^

src/Hercules/CNix/Store.hs:233:28: error:
     note: remove std::move call here
          return new StorePath(std::move((*store_inline_c_5)->parseStorePath(std::string(bs_inline_c_6, bs_inline_c_7))));
                               ^~~~~~~~~~                                                                              ~
    |
233 |       std::string s($fptr-ptr:(nix::StorePath *sp)->to_string());
    |                            ^
1 warning generated.
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[12 of 14] Compiling Hercules.CNix.Util ( src/Hercules/CNix/Util.hs, dist/build/Hercules/CNix/Util.o, dist/build/Hercules/CNix/Util.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[13 of 14] Compiling Hercules.CNix.Verbosity ( src/Hercules/CNix/Verbosity.hs, dist/build/Hercules/CNix/Verbosity.o, dist/build/Hercules/CNix/Verbosity.dyn_o )

<no location info>: warning: [-Wmissed-extra-shared-lib]
    dlopen(libstdc++.dylib, 0x0005): tried: '/nix/store/c63jzpas2cy6h62vjzn9q2pf4g8l3703-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../haskeline-0.8.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../terminfo-0.4.1.5/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../process-1.6.13.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../hpc-0.6.1.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghci-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-heap-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-boot-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../exceptions-0.10.4/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../template-haskell-2.17.0.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../pretty-1.1.3.6/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-boot-th-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../stm-2.5.0.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../mtl-2.2.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../transformers-0.5.6.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../directory-1.3.6.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../unix-2.7.2.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../time-1.9.3/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../filepath-1.4.2.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../binary-0.8.8.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../containers-0.6.4.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../bytestring-0.10.12.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../deepseq-1.4.5.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../array-0.5.4.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../base-4.15.1.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-bignum-1.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-prim-0.7.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../rts/libstdc++.dylib' (no such file), '/nix/store/c63jzpas2cy6h62vjzn9q2pf4g8l3703-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/libstdc++.dylib' (no such file), 'libstdc++.dylib' (no such file), '/usr/local/lib/libstdc++.dylib' (no such file), '/usr/lib/libstdc++.dylib' (no such file), '/private/tmp/nix-build-hercules-ci-cnix-store-0.3.2.0.drv-0/hercules-ci-cnix-store-0.3.2.0/libstdc++.dylib' (no such file)
    It's OK if you don't want to use symbols from it directly.
    (the package DLL is loaded by the system linker
     which manages dependencies by itself).
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[14 of 14] Compiling Hercules.CNix    ( src/Hercules/CNix.hs, dist/build/Hercules/CNix.o, dist/build/Hercules/CNix.dyn_o )
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/i4g0ax5scjjkqqbpa2xyl6lhvn03i3lw-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
Preprocessing test suite 'hercules-ci-cnix-store-tests' for hercules-ci-cnix-store-0.3.2.0..
Building test suite 'hercules-ci-cnix-store-tests' for hercules-ci-cnix-store-0.3.2.0..
[1 of 6] Compiling Hercules.CNix.Std.SetSpec ( test/Hercules/CNix/Std/SetSpec.hs, dist/build/hercules-ci-cnix-store-tests/hercules-ci-cnix-store-tests-tmp/Hercules/CNix/Std/SetSpec.o, dist/build/hercules-ci-cnix-store-tests/hercules-ci-cnix-store-tests-tmp/Hercules/CNix/Std/SetSpec.dyn_o )

<no location info>: warning: [-Wmissed-extra-shared-lib]
    dlopen(libstdc++.dylib, 0x0005): tried: '/nix/store/c63jzpas2cy6h62vjzn9q2pf4g8l3703-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../haskeline-0.8.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../terminfo-0.4.1.5/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../process-1.6.13.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../hpc-0.6.1.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghci-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-heap-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-boot-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../exceptions-0.10.4/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../template-haskell-2.17.0.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../pretty-1.1.3.6/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-boot-th-9.0.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../stm-2.5.0.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../mtl-2.2.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../transformers-0.5.6.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../directory-1.3.6.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../unix-2.7.2.2/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../time-1.9.3/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../filepath-1.4.2.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../binary-0.8.8.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../containers-0.6.4.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../bytestring-0.10.12.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../deepseq-1.4.5.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../array-0.5.4.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../base-4.15.1.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-bignum-1.1/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../ghc-prim-0.7.0/libstdc++.dylib' (no such file), '/nix/store/5swml0b2n7mcpija31qz4l3rgqrd4zfa-ghc-9.0.2/lib/ghc-9.0.2/bin/../rts/libstdc++.dylib' (no such file), '/nix/store/c63jzpas2cy6h62vjzn9q2pf4g8l3703-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/libstdc++.dylib' (no such file), 'libstdc++.dylib' (no such file), '/usr/local/lib/libstdc++.dylib' (no such file), '/usr/lib/libstdc++.dylib' (no such file), '/private/tmp/nix-build-hercules-ci-cnix-store-0.3.2.0.drv-0/hercules-ci-cnix-store-0.3.2.0/libstdc++.dylib' (no such file)
    It's OK if you don't want to use symbols from it directly.
    (the package DLL is loaded by the system linker
     which manages dependencies by itself).
libc++abi: terminating with uncaught exception of type nix::SysError: error: getting status of /System/Library/LaunchDaemons/com.apple.oahd.plist: Operation not permitted
/nix/store/g1r4v74a1szy8gbng3jm24m7swmccvhp-stdenv-darwin/setup: line 1397: 84036 Abort trap: 6           ./Setup build

Notify maintainers

@roberth

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
roberth commented 2 years ago

The linked commit and master suffer from https://github.com/NixOS/nixpkgs/issues/175875, so let's fix that first and get ghc in the cache: https://github.com/NixOS/nixpkgs/pull/179181

cdepillabout commented 2 years ago

This was fixed in https://github.com/NixOS/nixpkgs/pull/179181.