openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
865 stars 210 forks source link

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

Open anbe42 opened 2 months ago

anbe42 commented 2 months ago

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

openlink commented 2 months ago

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.

david-geiger commented 5 days ago

Hi,

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

Regards, David

pkleef commented 5 days ago

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