bugMIT/GNU Scheme - Bugs: bug #64652, microcode/lookup.c fails to...

 
 

bug #64652: microcode/lookup.c fails to compile with GCC 13

Submitter:  Jeronimo Pellegrini <pellegrini>
Submitted:  Sun 10 Sep 2023 05:39:58 PM UTC
   
 
Category:  microcode Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  riastradh Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 21 Apr 2024 02:54:47 PM UTC, comment #1: 

Should be fixed by commit 520d7a0a6070e93af73eec8610f1f882f0989dfd.

Taylor R. Campbell <riastradh>
Group Member
Sun 10 Sep 2023 05:39:58 PM UTC, original submission:  

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



Jeronimo Pellegrini <pellegrini>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by pellegrini (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-21 riastradh Item GroupNone Incorrect behavior
        StatusNone Fixed
        Assigned toNone riastradh
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code