virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

build fails with GCC 14 (-Werror=incompatible-pointer-types)

Open anbe42 opened this issue 1 year ago • 1 comments

GCC 14 has turned some warnings into errors by default.

First failure for 7.2.13:

Dksesstr.c: In function 'strses_chars_length':
Dksesstr.c:710:41: error: passing argument 2 of 'virt_mbsnrtowcs' from incompatible pointer type [-Wincompatible-pointer-types]
  710 |       last_len = virt_mbsnrtowcs (NULL, &ptr, ses->dks_out_fill, 0, &mb);
      |                                         ^~~~
      |                                         |
      |                                         unsigned char **
In file included from ../../libsrc/libutil.h:41,
                 from Dksesstr.c:29:
../../libsrc/util/utf8funs.h:52:68: note: expected 'const unsigned char **' but argument is of type 'unsigned char **'
   52 | extern size_t virt_mbsnrtowcs (wchar_t *dst, const unsigned char **src, size_t nmc, size_t len, virt_mbstate_t *ps);
      |                                              ~~~~~~~~~~~~~~~~~~~~~~^~~

Complete build log with all GCC 14 failures for 7.2.12: http://qa-logs.debian.net/2024/07/01/virtuoso-opensource_7.2.12+dfsg-0.2_unstable_gccexp.log

anbe42 avatar Aug 20 '24 12:08 anbe42

We will have a look.

What version of Debian are you using?

Also be aware that 7.2.13 is the latest stable release of VOS.

openlink avatar Aug 20 '24 15:08 openlink

Hi,

Same build issue here on Mageia Cauldron with latest 7.2.13 release!

Regards, David

david-geiger avatar Nov 01 '24 11:11 david-geiger

A patch for this will be part of VOS 7.2.14 which will be released in the next week or so.

pkleef avatar Nov 01 '24 12:11 pkleef