[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64652] microcode/lookup.c fails to compile with GCC 13
From: |
Jeronimo Pellegrini |
Subject: |
[bug #64652] microcode/lookup.c fails to compile with GCC 13 |
Date: |
Sun, 10 Sep 2023 13:40:00 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64652>
Summary: microcode/lookup.c fails to compile with GCC 13
Group: MIT/GNU Scheme
Submitter: pellegrini
Submitted: Sun 10 Sep 2023 02:39:58 PM -03
Category: microcode
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Keywords:
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 10 Sep 2023 02:39:58 PM -03 By: Jeronimo Pellegrini <pellegrini>
Hello,
I can compile MIT Scheme (a git checkout, latest revision tried was
4e76da51607acc10cb939b94d807c6c39b56a060) with GCC-11 (passing gcc-11 in the
CC variable when running configure).
But GCC-13 seems to be stricter regarding mixing of enums and integers:
gcc -DHAVE_CONFIG_H -DMIT_SCHEME
-DDEFAULT_LIBRARY_PATH=\"/usr/local/lib/mit-scheme-x86-64-13.0.50\" -I. -I.
-O3 -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body
-Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers
-Wmissing-parameter-type -Wnested-externs -Wold-style-declaration
-Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value
-Wstrict-prototypes -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings
-Wno-error=stringop-truncation -Werror -o lookup.o -c lookup.c
lookup.c:1036:1: error: conflicting types for ‘update_cache_refs_space_1’
due to enum/integer mismatch; have ‘long unsigned int(SCHEME_OBJECT, enum
cache_ref_kind, SCHEME_OBJECT, SCHEME_OBJECT)’ {aka ‘long unsigned
int(long unsigned int, enum cache_ref_kind, long unsigned int, long
unsigned int)’} [-Werror=enum-int-mismatch]
1036 | update_cache_refs_space_1 (SCHEME_OBJECT from_cache, enum
cache_ref_kind kind,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lookup.c:150:22: note: previous declaration of ‘update_cache_refs_space_1’
with type ‘long unsigned int(SCHEME_OBJECT, unsigned int, SCHEME_OBJECT,
SCHEME_OBJECT)’ {aka ‘long unsigned int(long unsigned int, unsigned int,
long unsigned int, long unsigned int)’}
150 | static unsigned long update_cache_refs_space_1
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lookup.c:1124:1: error: conflicting types for ‘move_ref_pairs’ due to
enum/integer mismatch; have ‘void(SCHEME_OBJECT, SCHEME_OBJECT, enum
cache_ref_kind, SCHEME_OBJECT, SCHEME_OBJECT)’ {aka ‘void(long unsigned
int, long unsigned int, enum cache_ref_kind, long unsigned int, long
unsigned int)’} [-Werror=enum-int-mismatch]
1124 | move_ref_pairs (SCHEME_OBJECT from_cache, SCHEME_OBJECT to_cache,
| ^~~~~~~~~~~~~~
lookup.c:190:13: note: previous declaration of ‘move_ref_pairs’ with type
‘void(SCHEME_OBJECT, SCHEME_OBJECT, unsigned int, SCHEME_OBJECT,
SCHEME_OBJECT)’ {aka ‘void(long unsigned int, long unsigned int,
unsigned int, long unsigned int, long unsigned int)’}
190 | static void move_ref_pairs
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:182: lookup.o] Error 1
make[2]: Leaving directory
'/home/jeronimo/pkg/scheme/mit-scheme/src/microcode'
make[1]: *** [Makefile:757: microcode/scheme] Error 2
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/mit-scheme/src'
make: *** [Makefile:663: all] Error 2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64652>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #64652] microcode/lookup.c fails to compile with GCC 13,
Jeronimo Pellegrini <=