Skip to content

Failed to install network-2.4.1.1 (current head), hsc2hs: dist/build/Network/BSD.hs: openFile: unsupported operation #3

@billdozr

Description

@billdozr

Not sure if this is the best place to raise this issue, but I thought I'd put it here since it's related to building agains the GHC-iOS target.

I cloned the current https://github.com/haskell/network (it should have the latest patch for ARM/iOS fixes) and ran:

autoreconf
i386-apple-darwin11-cabal install --disable-library-profiling -v2

I got the below error:

Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install network-2.4.1.1
Waiting for install task to finish...
Configuring network-2.4.1.1...
Dependency base ==4.7.0.0: using base-4.7.0.0
Dependency bytestring ==0.10.3.0: using bytestring-0.10.3.0
Dependency parsec ==3.1.3: using parsec-3.1.3
Dependency unix ==2.7.0.0: using unix-2.7.0.0
'/usr/local/ghc-ios-sim/bin/i386-apple-darwin11-ghc' '--info'
Using Cabal-1.18.0 compiled by ghc-7.6
Using compiler: ghc-7.7.20130831
Using install prefix:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1
Binaries installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/bin
Libraries installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/lib
Private binaries installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/libexec
Data files installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/share
Documentation installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/doc
Configuration files installed in:
/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/etc
Using alex version 3.0.5 found on system at: /usr/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.2.1 given by user at:
/Users/alen/Development/haskell/projects/ghc-ios-scripts/i386-apple-darwin11-gcc
Using ghc version 7.7.20130831 given by user at:
/usr/local/ghc-ios-sim/bin/i386-apple-darwin11-ghc
Using ghc-pkg version 7.7.20130831 given by user at:
/usr/local/ghc-ios-sim/bin/i386-apple-darwin11-ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at: /usr/bin/haddock
Using happy version 1.18.10 found on system at: /usr/bin/happy
No hmake found
Using hpc version 0.6 found on system at: /usr/bin/hpc
Using hsc2hs version 0.67 found on system at:
/Users/alen/Library/Haskell/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld given by user at:
/Users/alen/Development/haskell/projects/ghc-ios-scripts/i386-apple-darwin11-ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.28 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
sh ./configure --with-compiler=ghc --prefix=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1 --bindir=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/bin --libdir=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/lib --libexecdir=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/libexec --datadir=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/share --sysconfdir=/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/network-2.4.1.1/etc --host=i386-apple-darwin11 --with-gcc=/Users/alen/Development/haskell/projects/ghc-ios-scripts/i386-apple-darwin11-gcc
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking build system type... i386-apple-darwin12.4.0
checking host system type... i386-apple-darwin11
checking for i386-apple-darwin11-gcc... i386-apple-darwin11-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i386-apple-darwin11-gcc accepts -g... yes
checking for i386-apple-darwin11-gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... i386-apple-darwin11-gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking wspiapi.h usability... no
checking wspiapi.h presence... no
checking for wspiapi.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for readlink... yes
checking for symlink... yes
checking for struct msghdr.msg_control... yes
checking for struct msghdr.msg_accrights... no
checking for struct sockaddr.sa_len... yes
checking for in_addr_t in netinet/in.h... yes
checking for SO_PEERCRED and struct ucred in sys/socket.h... no
checking for head_libws2_32_a in -lws2_32... no
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking whether AI_ADDRCONFIG is declared... yes
checking whether AI_ALL is declared... yes
checking whether AI_NUMERICSERV is declared... yes
checking whether AI_V4MAPPED is declared... yes
checking whether IPV6_V6ONLY is declared... yes
checking for sendfile in sys/sendfile.h... no
checking for sendfile in sys/socket.h... yes
checking for gethostent... yes
checking for accept4... no
configure: creating ./config.status
config.status: creating network.buildinfo
config.status: creating include/HsNetworkConfig.h
config.status: include/HsNetworkConfig.h is unchanged
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Reading parameters from ./network.buildinfo
Reading parameters from ./network.buildinfo
Component build order: library
creating dist/build
creating dist/build/autogen
Building network-2.4.1.1...
Preprocessing library network-2.4.1.1...
creating dist/build/Network
/Users/alen/Library/Haskell/bin/hsc2hs --cc=/Users/alen/Development/haskell/projects/ghc-ios-scripts/i386-apple-darwin11-gcc --ld=/Users/alen/Development/haskell/projects/ghc-ios-scripts/i386-apple-darwin11-gcc --cflag=-D__GLASGOW_HASKELL
_=707 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Dios_HOST_OS=1 --cflag=-Di386_HOST_ARCH=1 --cflag=-Iinclude --cflag=-DCALLCONV=ccall --cflag=-I/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/unix-2.7.0.0/include --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-I/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/time-1.4.1/include --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-I/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/bytestring-0.10.3.0/include --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-I/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/base-4.7.0.0/include --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --cflag=-I/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/include --cflag=-Idist/build/autogen --cflag=-include --cflag=dist/build/autogen/cabal_macros.h --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/unix-2.7.0.0 --lflag=-ldl --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/time-1.4.1 --lflag=-L/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/parsec-3.1.3/lib --lflag=-L/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/text-0.11.3.1/lib --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/old-locale-1.0.0.5 --lflag=-L/Users/alen/Library/Haskell/ghc-7.7.20130831/lib/mtl-2.1.2/lib --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/transformers-0.3.0.0 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/bytestring-0.10.3.0 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/deepseq-1.3.0.2 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/array-0.4.0.2 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/integer-simple-0.1.1.0 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/ghc-prim-0.3.1.0 --lflag=-L/usr/local/ghc-ios-sim/lib/ghc-7.7.20130831/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/build/Network/BSD.hs Network/BSD.hsc --cross-compile
hsc2hs: dist/build/Network/BSD.hs: openFile: unsupported operation (unknown file type)
Failed to install network-2.4.1.1
cabal: Error: some packages failed to install:
network-2.4.1.1 failed during the building phase. The exception was:
ExitFailure 1

More details of my setup:

GCC: head (7.7x)

Mac OS X version: 10.8.4

GCC: 4.2.1

LLVM: 3.0

XCode: 4.6.3

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