Skip to content

GCC14 / Ubuntu 24.10 (Beta) issues with generated code #21

@GWRon

Description

@GWRon

William at discord pointed out that he tried to compile stuff within a newly installed Ubuntu 24.10 (Beta). Seems they install GCC 14 by default - and this leads to the following issue in archive.mod:

[ 16%] Compiling:archive_write_add_filter_bzip2.c
[ 16%] Compiling:archive_write_add_filter_compress.c
/home/william/Desktop/BlitzMax_linux_x64_0.144.3.57.202409290205/BlitzMax/mod/archive.mod/core.mod/glue.c: In function �bmx_libarchive_seek_cb�:
/home/william/Desktop/BlitzMax_linux_x64_0.144.3.57.202409290205/BlitzMax/mod/archive.mod/core.mod/glue.c:46:82: error: passing argument 4 of �archive_core_TArchiveCallbackData__seek� from incompatible pointer type [-Wincompatible-pointer-types]
   46 |         archive_core_TArchiveCallbackData__seek((BBObject*)data, offset, whence, &ret);
      |                                                                                  ^~~~
      |                                                                                  |
      |                                                                                  la_int64_t * {aka long int *}
/home/william/Desktop/BlitzMax_linux_x64_0.144.3.57.202409290205/BlitzMax/mod/archive.mod/core.mod/glue.c:31:101: note: expected �BBInt64 *� {aka �long long int *�} but argument is of type �la_int64_t *� {aka �long int *�}
   31 | void archive_core_TArchiveCallbackData__seek(BBObject * data, BBInt64 offset, int whence, BBInt64 * count);
      |                                                                                           ~~~~~~~~~~^~~~~
Build Error: failed to compile (256) /home/william/Desktop/BlitzMax_linux_x64_0.144.3.57.202409290205/BlitzMax/mod/archive.mod/core.mod/glue.c
Process complete

Am not sure if this really is a GCC issue ... (in other words: did not try on my own in a VM ... latest Ubuntus have a lot of issues in my qemu/kvm stuff here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions