Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from source fails with gcc 13.2.1 #17

Open
lahwaacz opened this issue Oct 1, 2023 · 1 comment
Open

Build from source fails with gcc 13.2.1 #17

lahwaacz opened this issue Oct 1, 2023 · 1 comment

Comments

@lahwaacz
Copy link

lahwaacz commented Oct 1, 2023

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
Copy link
Owner

wlav commented Oct 1, 2023

Is duplicate of #13 and already fixed in repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants