wlav / cppyy-backend

23 stars 27 forks source link

Build from source fails with gcc 13.2.1 #17

Open lahwaacz opened 1 year ago

lahwaacz commented 1 year ago

I get this error trying to build cppyy-backend 1.14.11 with gcc 13.2.1:

gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/cppyy-backend/src=/usr/src/debug/cppyy-backend -flto=auto -fPIC -I/usr/lib/python3.11/site-packages/cppyy_backend/include -I/usr/include/python3.11 -c src/clingwrapper.cxx -o build/temp.linux-x86_64-cpython-311/src/clingwrapper.o -O2 -pthread -std=c++1z -m64
In file included from /usr/lib/python3.11/site-packages/cppyy_backend/include/Rtypes.h:30,
                 from src/callcontext.h:11,
                 from src/clingwrapper.cxx:11:
/usr/include/string.h:506:15: error: declaration of ‘size_t strlcpy(char*, const char*, size_t) noexcept’ has a different exception specifier
  506 | extern size_t strlcpy (char *__restrict __dest,
      |               ^~~~~~~
In file included from /usr/lib/python3.11/site-packages/cppyy_backend/include/Rtypes.h:26:
/usr/lib/python3.11/site-packages/cppyy_backend/include/strlcpy.h:26:8: note: from previous declaration ‘size_t strlcpy(char*, const char*, size_t)’
   26 | size_t strlcpy(char *dst, const char *src, size_t siz);
      |        ^~~~~~~
/usr/include/string.h:512:15: error: declaration of ‘size_t strlcat(char*, const char*, size_t) noexcept’ has a different exception specifier
  512 | extern size_t strlcat (char *__restrict __dest,
      |               ^~~~~~~
/usr/lib/python3.11/site-packages/cppyy_backend/include/strlcpy.h:27:8: note: from previous declaration ‘size_t strlcat(char*, const char*, size_t)’
   27 | size_t strlcat(char *dst, const char *src, size_t siz);
      |        ^~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
wlav commented 1 year ago

Is duplicate of https://github.com/wlav/cppyy-backend/issues/13 and already fixed in repo.