Skip to content

Mark guile.1.0 as unavailable on systems shipping with new GCC #27772

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Leonidas-from-XIV
Copy link
Contributor

@Leonidas-from-XIV Leonidas-from-XIV commented Apr 17, 2025

Related to #27771, guile.1.0 seems to also have an issue building on systems that ship with GCC 14.

FTBFS with a failure like this:

File "stubgen/dune", lines 12-16, characters 0-263: 12 | (rule (targets bindings_stubs_gen.exe)
13 |  (deps bindings_stubs_gen.c c_flags c_library_flags) 14 |  (action
15 |   (bash
16 |     "%{cc} bindings_stubs_gen.c -I `dirname %{lib:ctypes:ctypes_cstubs_internals.h}` -I %{ocaml_where} $(< c_flags) $(< c_library_flags) -o %{targets}")))
(cd _build/default/stubgen && /usr/bin/bash -e -u -o pipefail -c 'gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -Wall -fdiagnostics-color=always bindings_stubs_gen.c -I `dirname ../../_private/default/.pkg/ctypes/target/lib/ctypes/ctypes_cstubs_internals.h` -I /home/opam/.cache/dune/toolchains/ocaml-compiler.5.3.0-128080a60f158774bfad0f37dcf62390/target/lib/ocaml $(< c_flags) $(< c_library_flags) -o bindings_stubs_gen.exe')
bindings_stubs_gen.c: In function 'main':
bindings_stubs_gen.c:35:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   35 |      enum { check_SCM_UNDEFINED_const = (int)SCM_UNDEFINED };
      |                                         ^
bindings_stubs_gen.c:36:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   36 |      intptr_t v = (SCM_UNDEFINED);
      |                   ^
bindings_stubs_gen.c:42:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   42 |      enum { check_SCM_EOL_const = (int)SCM_EOL };
      |                                   ^
bindings_stubs_gen.c:43:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   43 |      intptr_t v = (SCM_EOL);
      |                   ^
bindings_stubs_gen.c:49:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   49 |      enum { check_SCM_BOOL_T_const = (int)SCM_BOOL_T };
      |                                      ^
bindings_stubs_gen.c:50:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   50 |      intptr_t v = (SCM_BOOL_T);
      |                   ^
bindings_stubs_gen.c:56:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   56 |      enum { check_SCM_BOOL_F_const = (int)SCM_BOOL_F };
      |                                      ^
bindings_stubs_gen.c:57:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   57 |      intptr_t v = (SCM_BOOL_F);
      |                   ^

FTBFS with a failure like this:

File "stubgen/dune", lines 12-16, characters 0-263:
12 | (rule (targets bindings_stubs_gen.exe)
13 |  (deps bindings_stubs_gen.c c_flags c_library_flags)
14 |  (action
15 |   (bash
16 |     "%{cc} bindings_stubs_gen.c -I `dirname %{lib:ctypes:ctypes_cstubs_internals.h}` -I %{ocaml_where} $(< c_flags) $(< c_library_flags) -o %{targets}")))
(cd _build/default/stubgen && /usr/bin/bash -e -u -o pipefail -c 'gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -Wall -fdiagnostics-color=always bindings_stubs_gen.c -I `dirname ../../_private/default/.pkg/ctypes/target/lib/ctypes/ctypes_cstubs_internals.h` -I /home/opam/.cache/dune/toolchains/ocaml-compiler.5.3.0-128080a60f158774bfad0f37dcf62390/target/lib/ocaml $(< c_flags) $(< c_library_flags) -o bindings_stubs_gen.exe')
bindings_stubs_gen.c: In function 'main':
bindings_stubs_gen.c:35:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   35 |      enum { check_SCM_UNDEFINED_const = (int)SCM_UNDEFINED };
      |                                         ^
bindings_stubs_gen.c:36:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   36 |      intptr_t v = (SCM_UNDEFINED);
      |                   ^
bindings_stubs_gen.c:42:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   42 |      enum { check_SCM_EOL_const = (int)SCM_EOL };
      |                                   ^
bindings_stubs_gen.c:43:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   43 |      intptr_t v = (SCM_EOL);
      |                   ^
bindings_stubs_gen.c:49:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   49 |      enum { check_SCM_BOOL_T_const = (int)SCM_BOOL_T };
      |                                      ^
bindings_stubs_gen.c:50:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   50 |      intptr_t v = (SCM_BOOL_T);
      |                   ^
bindings_stubs_gen.c:56:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   56 |      enum { check_SCM_BOOL_F_const = (int)SCM_BOOL_F };
      |                                      ^
bindings_stubs_gen.c:57:19: error: initialization of 'intptr_t' {aka 'long int'} from 'struct scm_unused_struct *' makes integer from pointer without a cast [-Wint-conversion]
   57 |      intptr_t v = (SCM_BOOL_F);
      |                   ^
@Leonidas-from-XIV
Copy link
Contributor Author

Upstream issue: kiranandcode/guile-ocaml#3

@Leonidas-from-XIV
Copy link
Contributor Author

@shonfeder What kind of reporter action is expected from me?

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