vic / mk-darwin-system

Small Nix utility to create an M1 aarch64-darwin (nixFlakes + nix-darwin + home-manager) system.
Apache License 2.0
71 stars 7 forks source link

Zlib linking to x86-64 #15

Closed arjinfo closed 2 years ago

arjinfo commented 2 years ago

Steps to reproduce

nix flake init -t 'github:vic/mk-darwin-system#minimal'
nix run . -- check
nix log /nix/store/7zvr2mnwyzlsa58ghfhz4is2hvqn6q78-xml-conduit-1.9.1.1.drv

Result

@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/kjhw9vvra9fg1gxcs3mnzb4bilh4abqz-xml-conduit-1.9.1.1.tar.gz
source root is xml-conduit-1.9.1.1
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file xml-conduit-1.9.1.1/xml-conduit.cabal
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/setup-package.conf.d -j8 -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/Main.o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
Linking Setup ...
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/vc20pprk5hhlbk0askbz4zr6xx6874gx-xml-conduit-1.9.1.1-doc/share/doc/xml-conduit-1.9.1.1 --with-gcc=clang --package-db=/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/package.conf.d --ghc-options=-j8 --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 --extra-include-dirs=/nix/store/cir5w76g2q5n7vbv5xzpmzlyl2j27gm2-libcxx-11.1.0-dev/include --extra-lib-dirs=/nix/store/v9h8pygmf5ld2p5fnnmcdnp073pnc3yj-libcxx-11.1.0/lib --extra-include-dirs=/nix/store/ajba7f9g3ijwjwrnshksyj21y3a57j4d-libcxxabi-11.1.0-dev/include --extra-lib-dirs=/nix/store/3hy11n7jlvd01fsxy43iipahhv5qv691-libcxxabi-11.1.0/lib --extra-lib-dirs=/nix/store/8draafqraz9q64i7lhg0wrs924gcgdqs-compiler-rt-libc-11.1.0/lib --extra-lib-dirs=/nix/store/vfx838xb8y5iifbpcj03fljagms0xvkc-ncurses-6.2/lib --extra-lib-dirs=/nix/store/92yf002wz1a2lz83pgx59hb8ng376wig-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/hrmakx4jpq7b3zaj5cmsyclnrxfji8hb-gmp-6.2.1/lib --extra-include-dirs=/nix/store/hhydbralhhhfclxqr51kjpbv2gvz4g31-libiconv-50/include --extra-lib-dirs=/nix/store/hhydbralhhhfclxqr51kjpbv2gvz4g31-libiconv-50/lib --extra-lib-dirs=/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/lib --extra-include-dirs=/nix/store/lgfxw2bhqkxck5jypck629i0lxdci1br-llvm-9.0.1-dev/include --extra-lib-dirs=/nix/store/lgfxw2bhqkxck5jypck629i0lxdci1br-llvm-9.0.1-dev/lib --extra-include-dirs=/nix/store/n8gpggkdshjngzpjzh13bmn737mkd4jl-ncurses-6.2-dev/include --extra-lib-dirs=/nix/store/n8gpggkdshjngzpjzh13bmn737mkd4jl-ncurses-6.2-dev/lib --extra-lib-dirs=/nix/store/iw70b3ibzcndm60kz8zvhc499g0h2l5s-ncurses-6.2/lib --extra-include-dirs=/nix/store/ryvpgxxfr15gdj8mz9n4adczxb775cv9-zlib-1.2.11-dev/include --extra-lib-dirs=/nix/store/ryvpgxxfr15gdj8mz9n4adczxb775cv9-zlib-1.2.11-dev/lib --extra-lib-dirs=/nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib --extra-lib-dirs=/nix/store/dyhrpw4rhvc5pcq2v6j8s69b503fnbd4-llvm-9.0.1-lib/lib --extra-framework-dirs=/nix/store/k244b16r780gbzb63qwikg0p99gv33jm-apple-framework-CoreFoundation-11.0.0/Library/Frameworks --extra-include-dirs=/nix/store/p4k9fz4ym4f4kchy75sk8gwcd8fkndx4-libobjc-11.0.0/include --extra-lib-dirs=/nix/store/p4k9fz4ym4f4kchy75sk8gwcd8fkndx4-libobjc-11.0.0/lib
Using Parsec parser
Configuring xml-conduit-1.9.1.1...
Dependency attoparsec >=0.10: using attoparsec-0.13.2.5
Dependency base ==4.*: using base-4.14.3.0
Dependency blaze-html >=0.5: using blaze-html-0.9.1.2
Dependency blaze-markup >=0.5: using blaze-markup-0.8.2.8
Dependency bytestring >=0.10.2: using bytestring-0.10.12.0
Dependency conduit ==1.3.*: using conduit-1.3.4.2
Dependency conduit-extra ==1.3.*: using conduit-extra-1.3.5
Dependency containers >=0.2: using containers-0.6.5.1
Dependency data-default-class -any: using data-default-class-0.1.2.0
Dependency deepseq >=1.1.0.0: using deepseq-1.4.4.0
Dependency resourcet ==1.2.*: using resourcet-1.2.4.3
Dependency text >=0.7: using text-1.2.4.1
Dependency transformers >=0.2 && <0.6: using transformers-0.5.6.2
Dependency xml-types >=0.3.4 && <0.4: using xml-types-0.3.8
Dependency HUnit -any: using HUnit-1.6.2.0
Dependency base -any: using base-4.14.3.0
Dependency blaze-markup -any: using blaze-markup-0.8.2.8
Dependency bytestring -any: using bytestring-0.10.12.0
Dependency conduit -any: using conduit-1.3.4.2
Dependency conduit-extra -any: using conduit-extra-1.3.5
Dependency containers -any: using containers-0.6.5.1
Dependency hspec >=1.3: using hspec-2.7.10
Dependency resourcet -any: using resourcet-1.2.4.3
Dependency text -any: using text-1.2.4.1
Dependency transformers -any: using transformers-0.5.6.2
Dependency xml-conduit -any: using xml-conduit-1.9.1.1
Dependency xml-types >=0.3.1: using xml-types-0.3.8
Dependency base -any: using base-4.14.3.0
Dependency doctest >=0.8: using doctest-0.17
Dependency xml-conduit -any: using xml-conduit-1.9.1.1
Source component graph:
    component lib
    component test:doctest dependency lib
    component test:unit dependency lib
Configured component graph:
    component xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        include attoparsec-0.13.2.5-2Y2uFe9qofi7P2GNaHA8y5
        include base-4.14.3.0
        include blaze-html-0.9.1.2-2KEf81XDc2d6v9PJRHlFeL
        include blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        include bytestring-0.10.12.0
        include conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        include conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        include containers-0.6.5.1
        include data-default-class-0.1.2.0-4OJAKciMHbRGHw1F8M9yGO
        include deepseq-1.4.4.0
        include resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        include text-1.2.4.1
        include transformers-0.5.6.2
        include xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
    component xml-conduit-1.9.1.1-62od8srV4Cc3Uz06ZjOSaI-doctest
        include base-4.14.3.0
        include doctest-0.17-1i0ozhaWP4O4T0klmhls6Q
        include xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
    component xml-conduit-1.9.1.1-4N4eeX2JaW3F0Bhcx6PSk1-unit
        include HUnit-1.6.2.0-7DKjurhu5hr9jKXrIpNRxV
        include base-4.14.3.0
        include blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        include bytestring-0.10.12.0
        include conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        include conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        include containers-0.6.5.1
        include hspec-2.7.10-Gg8ePX8q8Gq4VctiwvZteO
        include resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        include text-1.2.4.1
        include transformers-0.5.6.2
        include xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        include xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
Linked component graph:
    unit xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        include attoparsec-0.13.2.5-2Y2uFe9qofi7P2GNaHA8y5
        include base-4.14.3.0
        include blaze-html-0.9.1.2-2KEf81XDc2d6v9PJRHlFeL
        include blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        include bytestring-0.10.12.0
        include conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        include conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        include containers-0.6.5.1
        include data-default-class-0.1.2.0-4OJAKciMHbRGHw1F8M9yGO
        include deepseq-1.4.4.0
        include resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        include text-1.2.4.1
        include transformers-0.5.6.2
        include xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
        Text.XML=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML,Text.XML.Cursor=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML.Cursor,Text.XML.Cursor.Generic=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML.Cursor.Generic,Text.XML.Stream.Parse=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML.Stream.Parse,Text.XML.Stream.Render=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML.Stream.Render,Text.XML.Unresolved=xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2:Text.XML.Unresolved
    unit xml-conduit-1.9.1.1-62od8srV4Cc3Uz06ZjOSaI-doctest
        include base-4.14.3.0
        include doctest-0.17-1i0ozhaWP4O4T0klmhls6Q
        include xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
    unit xml-conduit-1.9.1.1-4N4eeX2JaW3F0Bhcx6PSk1-unit
        include HUnit-1.6.2.0-7DKjurhu5hr9jKXrIpNRxV
        include base-4.14.3.0
        include blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        include bytestring-0.10.12.0
        include conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        include conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        include containers-0.6.5.1
        include hspec-2.7.10-Gg8ePX8q8Gq4VctiwvZteO
        include resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        include text-1.2.4.1
        include transformers-0.5.6.2
        include xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        include xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
Ready component graph:
    definite xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        depends attoparsec-0.13.2.5-2Y2uFe9qofi7P2GNaHA8y5
        depends base-4.14.3.0
        depends blaze-html-0.9.1.2-2KEf81XDc2d6v9PJRHlFeL
        depends blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        depends bytestring-0.10.12.0
        depends conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        depends conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        depends containers-0.6.5.1
        depends data-default-class-0.1.2.0-4OJAKciMHbRGHw1F8M9yGO
        depends deepseq-1.4.4.0
        depends resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        depends text-1.2.4.1
        depends transformers-0.5.6.2
        depends xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
    definite xml-conduit-1.9.1.1-62od8srV4Cc3Uz06ZjOSaI-doctest
        depends base-4.14.3.0
        depends doctest-0.17-1i0ozhaWP4O4T0klmhls6Q
        depends xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
    definite xml-conduit-1.9.1.1-4N4eeX2JaW3F0Bhcx6PSk1-unit
        depends HUnit-1.6.2.0-7DKjurhu5hr9jKXrIpNRxV
        depends base-4.14.3.0
        depends blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
        depends bytestring-0.10.12.0
        depends conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
        depends conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
        depends containers-0.6.5.1
        depends hspec-2.7.10-Gg8ePX8q8Gq4VctiwvZteO
        depends resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
        depends text-1.2.4.1
        depends transformers-0.5.6.2
        depends xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
        depends xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1
Executables installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/bin
Libraries installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7/xml-conduit-1.9.1.1-EaKUXH1Omj75m84J5IyPb2
Dynamic Libraries installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7
Private executables installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/libexec/aarch64-osx-ghc-8.10.7/xml-conduit-1.9.1.1
Data files installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/share/aarch64-osx-ghc-8.10.7/xml-conduit-1.9.1.1
Documentation installed in:
/nix/store/vc20pprk5hhlbk0askbz4zr6xx6874gx-xml-conduit-1.9.1.1-doc/share/doc/xml-conduit-1.9.1.1
Configuration files installed in:
/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/etc
No alex found
Using ar found on system at:
/nix/store/nyl3gxdnjzidq7ky3nd65cblah1yfnyb-cctools-binutils-darwin-949.0.1/bin/ar
No c2hs found
No cpphs found
Using doctest version 0.17 found on system at:
/nix/store/3n94sawgwv01pjiljx252da19mg1f65i-doctest-0.17/bin/doctest
Using gcc version 11.1.0 given by user at:
/nix/store/39hmshy4x50snqsrhfrqv2klfdix1cj5-clang-wrapper-11.1.0/bin/clang
Using ghc version 8.10.7 found on system at:
/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/bin/ghc
Using ghc-pkg version 8.10.7 found on system at:
/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 found on system at:
/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/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/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/8l3qajbr0klkm5glngqwbqqy80j0kfyw-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/4sjvijh2aw94ljxbi564kgafwmxda991-cctools-binutils-darwin-wrapper-949.0.1/bin/ld
No pkg-config found
Using runghc version 8.10.7 found on system at:
/nix/store/nl4jgkdrs3lvg3y1v14qkps31r05ai3d-ghc-8.10.7/bin/runghc
Using strip found on system at:
/nix/store/39hmshy4x50snqsrhfrqv2klfdix1cj5-clang-wrapper-11.1.0/bin/strip
Using tar found on system at:
/nix/store/fih00xwmdhwc8zg8inc8hdm9kxf75vi4-gnutar-1.34/bin/tar
No uhc found
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for xml-conduit-1.9.1.1..
Building library for xml-conduit-1.9.1.1..
[1 of 7] Compiling Text.XML.Cursor.Generic ( src/Text/XML/Cursor/Generic.hs, dist/build/Text/XML/Cursor/Generic.o, dist/build/Text/XML/Cursor/Generic.dyn_o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[2 of 7] Compiling Text.XML.Stream.Token ( src/Text/XML/Stream/Token.hs, dist/build/Text/XML/Stream/Token.o, dist/build/Text/XML/Stream/Token.dyn_o )

src/Text/XML/Stream/Token.hs:19:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
19 | import Data.Monoid (mconcat, mempty, (<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[3 of 7] Compiling Text.XML.Stream.Render ( src/Text/XML/Stream/Render.hs, dist/build/Text/XML/Stream/Render.o, dist/build/Text/XML/Stream/Render.dyn_o )

src/Text/XML/Stream/Render.hs:33:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
33 | import           Control.Applicative          ((<$>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Stream/Render.hs:34:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Resource’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Resource’
    To import instances alone, use: import Control.Monad.Trans.Resource()
   |
34 | import           Control.Monad.Trans.Resource (MonadThrow)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Stream/Render.hs:43:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
43 | import           Data.Monoid                  (Monoid, mappend, mempty)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[4 of 7] Compiling Text.XML.Stream.Parse ( src/Text/XML/Stream/Parse.hs, dist/build/Text/XML/Stream/Parse.o, dist/build/Text/XML/Stream/Parse.dyn_o )

src/Text/XML/Stream/Parse.hs:138:1: warning: [-Wunused-imports]
    The import of ‘<$>, Applicative’
    from module ‘Control.Applicative’ is redundant
    |
138 | import           Control.Applicative          (Alternative (empty, (<|>)),
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/Text/XML/Stream/Parse.hs:145:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.IO.Class’ is redundant
      except perhaps to import instances from ‘Control.Monad.IO.Class’
    To import instances alone, use: import Control.Monad.IO.Class()
    |
145 | import           Control.Monad.IO.Class       (liftIO)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Stream/Parse.hs:146:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Class’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Class’
    To import instances alone, use: import Control.Monad.Trans.Class()
    |
146 | import           Control.Monad.Trans.Class    (lift)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Stream/Parse.hs:148:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Resource’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Resource’
    To import instances alone, use: import Control.Monad.Trans.Resource()
    |
148 | import           Control.Monad.Trans.Resource (MonadResource, MonadThrow (..),
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[5 of 7] Compiling Text.XML.Unresolved ( src/Text/XML/Unresolved.hs, dist/build/Text/XML/Unresolved.o, dist/build/Text/XML/Unresolved.dyn_o )

src/Text/XML/Unresolved.hs:47:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
47 | import           Control.Applicative          ((<$>), (<*>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Unresolved.hs:50:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Class’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Class’
    To import instances alone, use: import Control.Monad.Trans.Class()
   |
50 | import           Control.Monad.Trans.Class    (lift)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML/Unresolved.hs:59:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
59 | import           Data.Monoid                  (mconcat)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[6 of 7] Compiling Text.XML         ( src/Text/XML.hs, dist/build/Text/XML.o, dist/build/Text/XML.dyn_o )

src/Text/XML.hs:78:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
78 | import           Control.Applicative          ((<$>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML.hs:82:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Resource’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Resource’
    To import instances alone, use: import Control.Monad.Trans.Resource()
   |
82 | import           Control.Monad.Trans.Resource (MonadThrow, throwM)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML.hs:105:1: warning: [-Wunused-imports]
    The import of ‘Control.Monad.Trans.Class’ is redundant
      except perhaps to import instances from ‘Control.Monad.Trans.Class’
    To import instances alone, use: import Control.Monad.Trans.Class()
    |
105 | import           Control.Monad.Trans.Class    (lift)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Text/XML.hs:115:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
    |
115 | import           Data.Monoid                  (mappend, mempty)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[7 of 7] Compiling Text.XML.Cursor  ( src/Text/XML/Cursor.hs, dist/build/Text/XML/Cursor.o, dist/build/Text/XML/Cursor.dyn_o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
ld: warning: ignoring file /nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib/libz.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Preprocessing test suite 'doctest' for xml-conduit-1.9.1.1..
Building test suite 'doctest' for xml-conduit-1.9.1.1..
[1 of 2] Compiling Build_doctests   ( dist/build/doctest/autogen/Build_doctests.hs, dist/build/doctest/doctest-tmp/Build_doctests.o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
[2 of 2] Compiling Main             ( test/doctest.hs, dist/build/doctest/doctest-tmp/Main.o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
Linking dist/build/doctest/doctest ...
ld: warning: ignoring file /nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib/libz.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Preprocessing test suite 'unit' for xml-conduit-1.9.1.1..
Building test suite 'unit' for xml-conduit-1.9.1.1..
[1 of 1] Compiling Main             ( test/unit.hs, dist/build/unit/unit-tmp/Main.o )
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
'apple-a7' is not a recognized processor for this target (ignoring processor)
Linking dist/build/unit/unit ...
ld: warning: ignoring file /nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib/libz.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
Running 2 test suites...
Test suite doctest: RUNNING...
<command line>: dlopen(/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/lib/links/libz.dylib, 0x0005): tried: '/nix/store/7zjw7rsf7q7mbs0h2drfczkzhfyrkj0z-xml-conduit-1.9.1.1/lib/links/libz.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib/libz.1.2.11.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
-i
-i/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/xml-conduit-1.9.1.1/dist/build/autogen
-i/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/xml-conduit-1.9.1.1/dist/build
-i/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/xml-conduit-1.9.1.1/src
-I/nix/store/cir5w76g2q5n7vbv5xzpmzlyl2j27gm2-libcxx-11.1.0-dev/include
-I/nix/store/ajba7f9g3ijwjwrnshksyj21y3a57j4d-libcxxabi-11.1.0-dev/include
-I/nix/store/hhydbralhhhfclxqr51kjpbv2gvz4g31-libiconv-50/include
-I/nix/store/lgfxw2bhqkxck5jypck629i0lxdci1br-llvm-9.0.1-dev/include
-I/nix/store/n8gpggkdshjngzpjzh13bmn737mkd4jl-ncurses-6.2-dev/include
-I/nix/store/ryvpgxxfr15gdj8mz9n4adczxb775cv9-zlib-1.2.11-dev/include
-I/nix/store/p4k9fz4ym4f4kchy75sk8gwcd8fkndx4-libobjc-11.0.0/include
-package-env=-
-hide-all-packages
-no-user-package-db
-package-db=/private/tmp/nix-build-xml-conduit-1.9.1.1.drv-0/package.conf.d
-package-db=dist/package.conf.inplace
-optP-include
-optPdist/build/autogen/cabal_macros.h
-package-id=attoparsec-0.13.2.5-2Y2uFe9qofi7P2GNaHA8y5
-package-id=base-4.14.3.0
-package-id=blaze-html-0.9.1.2-2KEf81XDc2d6v9PJRHlFeL
-package-id=blaze-markup-0.8.2.8-5nbardTqNnT1FEfXLkFicZ
-package-id=bytestring-0.10.12.0
-package-id=conduit-1.3.4.2-Bav9DO2UMcR1lglRKzjE8a
-package-id=conduit-extra-1.3.5-86pcE7DTnwAskqttiEiU5
-package-id=containers-0.6.5.1
-package-id=data-default-class-0.1.2.0-4OJAKciMHbRGHw1F8M9yGO
-package-id=deepseq-1.4.4.0
-package-id=resourcet-1.2.4.3-FoVDF2S423X81YcQMv6k4
-package-id=text-1.2.4.1
-package-id=transformers-0.5.6.2
-package-id=xml-types-0.3.8-EHDLXpJVSNmLOCOBgCdOPq
-package-id=doctest-0.17-1i0ozhaWP4O4T0klmhls6Q
-package=xml-conduit-1.9.1.1
Text.XML.Stream.Parse
Text.XML.Stream.Render
Text.XML.Unresolved
Text.XML.Cursor
Text.XML.Cursor.Generic
Text.XML
Text.XML.Stream.Token
doctest: fd:5: hGetLine: end of file
Test suite doctest: FAIL
Test suite logged to: dist/test/xml-conduit-1.9.1.1-doctest.log
Test suite unit: RUNNING...
Test suite unit: PASS
Test suite logged to: dist/test/xml-conduit-1.9.1.1-unit.log
1 of 2 test suites (1 of 2 test cases) passed.

see: ld: warning: ignoring file /nix/store/wr1nj65gbsir2sz2770jxz8i116ss3k6-zlib-1.2.11/lib/libz.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 Preprocessing test suite 'doctest' for xml-conduit-1.9.1.1

vic commented 2 years ago

Hey @arjinfo , thanks for reporting, I believe this has been fixed by moving to nixpkgs/nixpkgs-untable instead of using old release 21.11. I believe most packages can be found already built for mac arm instead of you having to build most of them.

Can you please try with that change ?