Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 packages from savonet/ocaml-posix at 2.1.0 #27276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toots
Copy link
Contributor

@toots toots commented Jan 16, 2025

This pull-request concerns:

  • posix-base.2.1.0: Base module for the posix bindings
  • posix-bindings.2.1.0: POSIX bindings
  • posix-getopt.2.1.0: Bindings for posix getopt/getopt_long
  • posix-math2.2.1.0: Bindings for posix math
  • posix-signal.2.1.0: Bindings for the types defined in <signal.h>
  • posix-socket.2.1.0: Bindings for posix sockets
  • posix-socket-unix.2.1.0: Bindings for posix sockets
  • posix-time2.2.1.0: Bindings for posix time functions
  • posix-types.2.1.0: Bindings for the types defined in <sys/types.h>
  • posix-uname.2.1.0: Bindings for posix uname


🐫 Pull-request generated by opam-publish v2.3.0

@toots toots mentioned this pull request Jan 16, 2025
@mseri
Copy link
Member

mseri commented Jan 16, 2025

There is also a widespread issue:

#=== ERROR while compiling posix-getopt.2.1.0 =================================#
# context              2.4.0~alpha1~dev | linux/x86_64 | ocaml-base-compiler.5.3.0 | pinned(https://github.com/savonet/ocaml-posix/archive/refs/tags/v2.1.0.tar.gz)
# path                 ~/.opam/5.3/.opam-switch/build/posix-getopt.2.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-getopt -j 71 --promote-install-files=false @install
# exit-code            1
# env-file             ~/.opam/log/posix-getopt-7-50b56a.env
# output-file          ~/.opam/log/posix-getopt-7-50b56a.out
### output ###
# File "posix-getopt/src/dune", line 13, characters 9-37:
# 13 |   (names posix_getopt_generated_stubs))
#               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# (cd _build/default/posix-getopt/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -g -I /home/opam/.opam/5.3/lib/ocaml -I /home/opam/.opam/5.3/lib/bigarray-compat -I /home/opam/.opam/5.3/lib/ctypes -I /home/opam/.opam/5.3/lib/ctypes/stubs -I /home/opam/.opam/5.3/lib/integers -I /home/opam/.opam/5.3/lib/ocaml/str -I /home/opam/.opam/5.3/lib/ocaml/unix -I /home/opam/.opam/5.3/lib/posix-base -I /home/opam/.opam/5.3/lib/result -I /home/opam/.opam/5.3/lib/stdlib-shims -I /home/opam/.opam/5.3/lib/unix-errno -I /home/opam/.opam/5.3/lib/unix-errno/errno_bindings -I /home/opam/.opam/5.3/lib/unix-errno/errno_types -I /home/opam/.opam/5.3/lib/unix-errno/errno_types_detected -I /home/opam/.opam/5.3/lib/unix-errno/unix -I stubs -I types -o posix_getopt_generated_stubs.o -c posix_getopt_generated_stubs.c)
# posix_getopt_generated_stubs.c: In function 'posix_getopt_1_getopt':
# posix_getopt_generated_stubs.c:82:24: error: passing argument 2 of 'getopt' from incompatible pointer type [-Wincompatible-pointer-types]
#    82 |    int x9 = getopt(x4, x7, x8);
#       |                        ^~
#       |                        |
#       |                        const char **
# In file included from /usr/include/bits/getopt_posix.h:27,
#                  from /usr/include/unistd.h:903,
#                  from posix_getopt_generated_stubs.c:2:
# /usr/include/bits/getopt_core.h:91:46: note: expected 'char * const*' but argument is of type 'const char **'
#    91 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
#       |                                 ~~~~~~~~~~~~~^~~~~~~
# posix_getopt_generated_stubs.c: In function 'posix_getopt_3_getopt_long':
# posix_getopt_generated_stubs.c:106:31: error: passing argument 2 of 'getopt_long' from incompatible pointer type [-Wincompatible-pointer-types]
#   106 |    int x30 = getopt_long(x23, x26, x27, x28, x29);
#       |                               ^~~
#       |                               |
#       |                               const char **
# In file included from /usr/include/getopt.h:36,
#                  from posix_getopt_generated_stubs.c:9:
# /usr/include/bits/getopt_ext.h:66:65: note: expected 'char * const*' but argument is of type 'const char **'
#    66 | extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
#       |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# posix_getopt_generated_stubs.c: In function 'posix_getopt_5_getopt_long_only':
# posix_getopt_generated_stubs.c:130:36: error: passing argument 2 of 'getopt_long_only' from incompatible pointer type [-Wincompatible-pointer-types]
#   130 |    int x51 = getopt_long_only(x44, x47, x48, x49, x50);
#       |                                    ^~~
#       |                                    |
#       |                                    const char **
# /usr/include/bits/getopt_ext.h:70:70: note: expected 'char * const*' but argument is of type 'const char **'
#    70 | extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv,
#       |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

@toots toots force-pushed the opam-publish-posix-base.2.1.0 branch from 52c7840 to d303da5 Compare January 16, 2025 23:25
@toots
Copy link
Contributor Author

toots commented Jan 16, 2025

This should be addressed with the latest push.

@toots toots force-pushed the opam-publish-posix-base.2.1.0 branch 2 times, most recently from 873bea8 to ddbe75e Compare January 17, 2025 16:50
@toots toots force-pushed the opam-publish-posix-base.2.1.0 branch from ddbe75e to 3f96152 Compare January 17, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants