I can build stdio, but when I cd into bench/tcp and run:
cabal new-build --constraint='primitive==0.6.4.0' -w /opt/ghc/8.6.3/bin/ghc
I get the following error:
Linking /home/amartin/Development/stdio/bench/tcp/dist-newstyle/build/x86_64-linux/ghc-8.6.3/tcp-0.1.0.0/x/libuv/build/libuv/libuv ...
/home/amartin/Development/stdio/bench/tcp/dist-newstyle/build/x86_64-linux/ghc-8.6.3/tcp-0.1.0.0/x/libuv/build/libuv/libuv-tmp/../../cbits/hs_uv_stream.o:hs_uv_stream.c:function hs_set_socket_reuse: error
: undefined reference to 'uv_translate_sys_error'
/home/amartin/Development/stdio/bench/tcp/dist-newstyle/build/x86_64-linux/ghc-8.6.3/tcp-0.1.0.0/x/libuv/build/libuv/libuv-tmp/../../cbits/hs_uv_stream.o:hs_uv_stream.c:function hs_uv_listen_resume: error: undefined reference to 'uv__io_start'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build exe:libuv from tcp-0.1.0.0.
I have installed libuv1 and libuv1-dev with apt.
I can build
stdio, but when Icdintobench/tcpand run:I get the following error:
I have installed
libuv1andlibuv1-devwithapt.