kazu-yamamoto / iproute

IP Routing Table in Haskell
http://www.mew.org/~kazu/proj/iproute/
BSD 3-Clause "New" or "Revised" License
47 stars 28 forks source link

GHCJS compilation fail #51

Open NCrashed opened 3 years ago

NCrashed commented 3 years ago

Fail to compile with GHCJS due network dependency. Possible workaround is cabal flag that disables parts that are depend on network package.

Log:

building '/nix/store/b588qzd6346b74w0lxzxch4dl65hlhvg-cabal2nix-auth-api.drv'...
installing
these derivations will be built:
  /nix/store/dsp7ai92b48clpxqkvr7n52xfy1jzkjk-appar-0.1.8-js-unknown-ghcjs.drv
  /nix/store/m35nyh0i3dhn6ns11ra4q6hrad0nc8yv-network-2.8.0.1-js-unknown-ghcjs.drv
  /nix/store/wqc5jyn82l9719sx78lc3g1wijk63k7k-byteorder-1.0.4-js-unknown-ghcjs.drv
  /nix/store/69r5jxqbz6vmxacpn66fd2gybdg044d0-iproute-1.7.7-js-unknown-ghcjs.drv
  /nix/store/4pwg5q8wif2lh6nlyzvlrafzs6mljkxm-hoogle-local-0.1.drv
  /nix/store/671mpdfxp5nrxpf0r1v5p1mhwpfjbnkm-ghcjs-8.6.0.1-with-packages.drv
building '/nix/store/dsp7ai92b48clpxqkvr7n52xfy1jzkjk-appar-0.1.8-js-unknown-ghcjs.drv'...
building '/nix/store/wqc5jyn82l9719sx78lc3g1wijk63k7k-byteorder-1.0.4-js-unknown-ghcjs.drv'...
building '/nix/store/m35nyh0i3dhn6ns11ra4q6hrad0nc8yv-network-2.8.0.1-js-unknown-ghcjs.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1.
setupCompilerEnvironmentPhase
Build with /nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1.
setupCompilerEnvironmentPhase
Build with /nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1.
unpacking sources
unpacking source archive /nix/store/1f6l44n15c8b25gszanl3pmw43b9q64j-appar-0.1.8.tar.gz
source root is appar-0.1.8
setting SOURCE_DATE_EPOCH to timestamp 1557192460 of file appar-0.1.8/Text/Appar/String.hs
patching sources
unpacking sources
unpacking source archive /nix/store/wws4j0djw9piyh6jrgg5j7si7dwwzijz-byteorder-1.0.4.tar.gz
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
source root is byteorder-1.0.4
setting SOURCE_DATE_EPOCH to timestamp 1366772517 of file byteorder-1.0.4/System/ByteOrder.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
unpacking sources
unpacking source archive /nix/store/hp2shcdrxaakw49d5555vhdq9pxfg90r-network-2.8.0.1.tar.gz
source root is network-2.8.0.1
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file network-2.8.0.1/tests/Spec.hs
patching sources
applying patch /nix/store/yjk6rhygfyzsjdw78x3jhxyy9m5ay3ay-ghcjs-network.patch
patching file Network/Socket.hsc
Hunk #1 succeeded at 486 (offset 7 lines).
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
Linking Setup ...
Linking Setup ...
updateAutotoolsGnuConfigScriptsPhase
updateAutotoolsGnuConfigScriptsPhase
configuring
configureFlags: --verbose --prefix=/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/92xyyl3jr2v0q1lwf4bf2y4mczqd3qkx-byteorder-1.0.4-js-unknown-ghcjs-doc/share/doc/byteorder-1.0.4 --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --disable-library-stripping --disable-executable-stripping --ghcjs --configure-option=--host=js-unknown-ghcjs --with-ghc=ghcjs --with-ghc-pkg=ghc-pkg --with-gcc=cc --hsc2hs-option=--cross-compile --ghcjs-options=-fexpose-all-unfoldings
configuring
configureFlags: --verbose --prefix=/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/cqq3c1j107pm5p4j12749kj0q2413b1w-appar-0.1.8-js-unknown-ghcjs-doc/share/doc/appar-0.1.8 --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --disable-library-stripping --disable-executable-stripping --ghcjs --configure-option=--host=js-unknown-ghcjs --with-ghc=ghcjs --with-ghc-pkg=ghc-pkg --with-gcc=cc --hsc2hs-option=--cross-compile --ghcjs-options=-fexpose-all-unfoldings
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./config.sub
Updating Autotools / GNU config script to a newer upstream version: ./config.guess
configuring
configureFlags: --verbose --prefix=/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/6n6n8m7hkfixqfkd99gg0nbl8bhm16l2-network-2.8.0.1-js-unknown-ghcjs-doc/share/doc/network-2.8.0.1 --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --disable-library-stripping --disable-executable-stripping --ghcjs --configure-option=--host=js-unknown-ghcjs --with-ghc=ghcjs --with-ghc-pkg=ghc-pkg --with-gcc=cc --hsc2hs-option=--cross-compile --ghcjs-options=-fexpose-all-unfoldings
Using Parsec parser
Configuring network-2.8.0.1...
Dependency base >=4.7 && <5: using base-4.12.0.0
Dependency bytestring ==0.10.*: using bytestring-0.10.8.2
Dependency unix >=2: using unix-2.7.2.2
Source component graph: component lib
Configured component graph:
    component network-2.8.0.1-BO785m7qU6E9pydvHvhLxt
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
        include unix-2.7.2.2-JxmyTgtpFqj7lvsQuv62w2
Linked component graph:
    unit network-2.8.0.1-BO785m7qU6E9pydvHvhLxt
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
        include unix-2.7.2.2-JxmyTgtpFqj7lvsQuv62w2
        Network=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network,Network.BSD=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network.BSD,Network.Socket=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network.Socket,Network.Socket.ByteString=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network.Socket.ByteString,Network.Socket.ByteString.Lazy=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network.Socket.ByteString.Lazy,Network.Socket.Internal=network-2.8.0.1-BO785m7qU6E9pydvHvhLxt:Network.Socket.Internal
Ready component graph:
    definite network-2.8.0.1-BO785m7qU6E9pydvHvhLxt
        depends base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        depends bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
        depends unix-2.7.2.2-JxmyTgtpFqj7lvsQuv62w2
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghcjs-8.6.0.1
Using install prefix:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs
Executables installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/bin
Libraries installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/network-2.8.0.1-BO785m7qU6E9pydvHvhLxt
Dynamic Libraries installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5
Private executables installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/libexec/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/network-2.8.0.1
Data files installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/share/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/network-2.8.0.1
Documentation installed in:
/nix/store/6n6n8m7hkfixqfkd99gg0nbl8bhm16l2-network-2.8.0.1-js-unknown-ghcjs-doc/share/doc/network-2.8.0.1
Configuration files installed in:
/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs/etc
No alex found
Using ar found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 8.3.0 given by user at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc
Using ghc version 8.6.0.1 given by user at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghc-pkg version 8.6.4 given by user at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/ghc-pkg
Using ghcjs version 8.6.0.1 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghcjs-pkg version 8.6.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/haddock-ghcjs
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.67 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/hsc2hs-ghcjs
Using hscolour version 1.24 found on system at:
/nix/store/20alg7mn6w9qfh7aiighvkkn2rld6d4s-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/ld
No pkg-config found
Using runghc version 8.6.4 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/b6aigimi4gv2a3jxbqpkwwc241n911mr-gnutar-1.32/bin/tar
No uhc found
/nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/sh //build/network-2.8.0.1/configure '--with-compiler=ghcjs' '--prefix=/nix/store/iimfglajl8jyp5hv0csk3v0nf725lz2k-network-2.8.0.1-js-unknown-ghcjs' '--libdir=$prefix/lib/$compiler' '--host=js-unknown-ghcjs' 'CC=/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc'
Using Parsec parser
Configuring byteorder-1.0.4...
Dependency base ==4.*: using base-4.12.0.0
Source component graph: component lib
Configured component graph:
    component byteorder-1.0.4-LrMTqXCLBSaDMraFCRO3rZ
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
Linked component graph:
    unit byteorder-1.0.4-LrMTqXCLBSaDMraFCRO3rZ
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        System.ByteOrder=byteorder-1.0.4-LrMTqXCLBSaDMraFCRO3rZ:System.ByteOrder
Ready component graph:
    definite byteorder-1.0.4-LrMTqXCLBSaDMraFCRO3rZ
        depends base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghcjs-8.6.0.1
Using install prefix:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs
Executables installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/bin
Libraries installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/byteorder-1.0.4-LrMTqXCLBSaDMraFCRO3rZ
Dynamic Libraries installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5
Private executables installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/libexec/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/byteorder-1.0.4
Data files installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/share/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/byteorder-1.0.4
Documentation installed in:
/nix/store/92xyyl3jr2v0q1lwf4bf2y4mczqd3qkx-byteorder-1.0.4-js-unknown-ghcjs-doc/share/doc/byteorder-1.0.4
Configuration files installed in:
/nix/store/z5y4q4j1cdnpwqhrfp4hjh0bs3rzjmm5-byteorder-1.0.4-js-unknown-ghcjs/etc
No alex found
Using ar found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 8.3.0 given by user at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc
Using ghc version 8.6.0.1 given by user at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghc-pkg version 8.6.4 given by user at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/ghc-pkg
Using ghcjs version 8.6.0.1 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghcjs-pkg version 8.6.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/haddock-ghcjs
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.67 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/hsc2hs-ghcjs
Using hscolour version 1.24 found on system at:
/nix/store/20alg7mn6w9qfh7aiighvkkn2rld6d4s-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/ld
No pkg-config found
Using runghc version 8.6.4 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/b6aigimi4gv2a3jxbqpkwwc241n911mr-gnutar-1.32/bin/tar
No uhc found
building
Using Parsec parser
Configuring appar-0.1.8...
Dependency base ==4.*: using base-4.12.0.0
Dependency bytestring -any: using bytestring-0.10.8.2
Source component graph: component lib
Configured component graph:
    component appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
Linked component graph:
    unit appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
        Text.Appar.ByteString=appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs:Text.Appar.ByteString,Text.Appar.LazyByteString=appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs:Text.Appar.LazyByteString,Text.Appar.String=appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs:Text.Appar.String
Ready component graph:
    definite appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs
        depends base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        depends bytestring-0.10.8.2-FBklFuapa1a7kq4yflY7Bt
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghcjs-8.6.0.1
Using install prefix:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs
Executables installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/bin
Libraries installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/appar-0.1.8-9XkwWwiIRQE8H0THpEDlKs
Dynamic Libraries installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5
Private executables installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/libexec/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/appar-0.1.8
Data files installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/share/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_5/appar-0.1.8
Documentation installed in:
/nix/store/cqq3c1j107pm5p4j12749kj0q2413b1w-appar-0.1.8-js-unknown-ghcjs-doc/share/doc/appar-0.1.8
Configuration files installed in:
/nix/store/q2fqmjdhcf34kp4jmxsab2rxj69d328r-appar-0.1.8-js-unknown-ghcjs/etc
No alex found
Using ar found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 8.3.0 given by user at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc
Using ghc version 8.6.0.1 given by user at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghc-pkg version 8.6.4 given by user at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/ghc-pkg
Using ghcjs version 8.6.0.1 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs
Using ghcjs-pkg version 8.6.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/haddock-ghcjs
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.67 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/nix/store/ybwg61a4krmvk127pz7fssk9vdv40lyz-ghcjs-8.6.0.1/bin/hsc2hs-ghcjs
Using hscolour version 1.24 found on system at:
/nix/store/20alg7mn6w9qfh7aiighvkkn2rld6d4s-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/ld
No pkg-config found
Using runghc version 8.6.4 found on system at:
/nix/store/3zwsp9vc43d0g3bkn7l9w2rpwrm4ly8w-ghc-8.6.4/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/b6aigimi4gv2a3jxbqpkwwc241n911mr-gnutar-1.32/bin/tar
No uhc found
building
configure: WARNING: unrecognized options: --with-compiler
Preprocessing library for byteorder-1.0.4..
Building library for byteorder-1.0.4..
Preprocessing library for appar-0.1.8..
Building library for appar-0.1.8..
checking build system type... x86_64-pc-linux-gnu
checking host system type... Invalid configuration `js-unknown-ghcjs': machine `js-unknown' not recognized
configure: error: /nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/bash //build/network-2.8.0.1/config.sub js-unknown-ghcjs failed
[1 of 1] Compiling System.ByteOrder ( System/ByteOrder.hs, dist/build/System/ByteOrder.js_o )
builder for '/nix/store/m35nyh0i3dhn6ns11ra4q6hrad0nc8yv-network-2.8.0.1-js-unknown-ghcjs.drv' failed with exit code 1
cannot build derivation '/nix/store/671mpdfxp5nrxpf0r1v5p1mhwpfjbnkm-ghcjs-8.6.0.1-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/671mpdfxp5nrxpf0r1v5p1mhwpfjbnkm-ghcjs-8.6.0.1-with-packages.drv' failed
NCrashed commented 3 years ago

Temporary workaround https://github.com/hexresearch/iproute/commit/c9b9fd21492f015467b5511864df97188d30cd0b

kazu-yamamoto commented 3 years ago

Let me ask two questions:

NCrashed commented 3 years ago

Isn't network available for GHCJS? I found ghcjs_HOST_OS in network. I'm wondering.

Nope. network used to be compiled with GHCJS until version 2.8 but it never was truly supported (it will throw exceptions on any runtime call). See https://github.com/ghcjs/ghcjs/issues/305. Recent versions of network won't even compile with js backend.

Why does this issue come up recently?

So, > 2.8 versions of network don't build, but older ones are buildable. Also, there are no so many users of GHCJS. So, I get used to find and work around such issues with packages that are useful on client side but depends on things that are buildable only on server side.

P.S. We can make network buildable with GHCJS again as possible solution.

kazu-yamamoto commented 3 years ago

@NCrashed

We can make network buildable with GHCJS again as possible solution.

Yes, please. I'm not sure that I understand the problem correctly. But if "ReferenceError: h$getprotobyname" is the source of the problem, adding #ifdef is good enough. Would you send a PR?