savonet / ocaml-posix

Bindings to the various POSIX APIs
https://www.liquidsoap.info/ocaml-posix/
MIT License
27 stars 2 forks source link

posix-socket / posix-getopt: Build fails on Alpine #2

Open kit-ty-kate opened 4 years ago

kit-ty-kate commented 4 years ago

Detected in https://github.com/ocaml/opam-repository/pull/16590

+ /home/opam/.opam/4.10/bin/dune "build" "-p" "posix-getopt" "-j" "72" "@install" "@runtest" (CWD=/home/opam/.opam/4.10/.opam-switch/build/posix-getopt.2.0.0)
-         test alias posix-getopt/test/runtest (exit 1)
- (cd _build/default/posix-getopt/test && ./test.exe)
- ........F..E
- ==============================================================================
- Error: getopt tests:6:test_long_required_no_long_arg.
- 
- File "/home/opam/.opam/4.10/.opam-switch/build/posix-getopt.2.0.0/_build/default/posix-getopt/test/oUnit-getopt tests-c5c0e1c9fcb6#00.log", line 126, characters 1-1:
- Error: getopt tests:6:test_long_required_no_long_arg (in the log).
- 
- Worker stops running: Killed by signal -10
- ------------------------------------------------------------------------------
- ==============================================================================
- Error: getopt tests:10:test_permuted_remaining_arg.
- 
- File "/home/opam/.opam/4.10/.opam-switch/build/posix-getopt.2.0.0/_build/default/posix-getopt/test/oUnit-getopt tests-c5c0e1c9fcb6#11.log", line 2, characters 1-1:
- Error: getopt tests:10:test_permuted_remaining_arg (in the log).
- 
- Raised at file "src/lib/ounit2/advanced/oUnitAssert.ml", line 45, characters 2-27
- Called from file "src/lib/ounit2/advanced/oUnitRunner.ml", line 83, characters 13-26
- 
- not equal
- ------------------------------------------------------------------------------
- Ran: 12 tests in: 1.26 seconds.
- FAILED: Cases: 12 Tried: 12 Errors: 1 Failures: 1 Skip:  0 Todo: 0 Timeouts: 0.
+ /home/opam/.opam/4.10/bin/dune "build" "-p" "posix-socket" "-j" "72" "@install" "@runtest" (CWD=/home/opam/.opam/4.10/.opam-switch/build/posix-socket.2.0.0)
-       ocamlc posix-socket/src/types/.posix_socket_types.objs/byte/posix_socket_types__Posix_socket_generated_constants.{cmi,cmo,cmt}
- File "posix-socket/src/types/posix_socket_generated_constants.ml", line 35, characters 4-63:
- 35 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
-          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Warning 11: this match case is unused.
-     ocamlopt posix-socket/src/types/.posix_socket_types.objs/native/posix_socket_types__Posix_socket_generated_constants.{cmx,o}
- File "posix-socket/src/types/posix_socket_generated_constants.ml", line 35, characters 4-63:
- 35 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
-          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Warning 11: this match case is unused.
[ERROR] The compilation of posix-socket failed at "/home/opam/.opam/4.10/bin/dune build -p posix-socket -j 72 @install @runtest".
-         test alias posix-socket/test/runtest (got signal SEGV)
- (cd _build/default/posix-socket/test && ./test.exe)
- sizeof(socklen_t) = 4