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

error: conflicting declaration #69

Closed
glebm opened this issue Apr 28, 2023 · 1 comment
Closed

error: conflicting declaration #69

glebm opened this issue Apr 28, 2023 · 1 comment

Comments

@glebm
Copy link

glebm commented Apr 28, 2023

From a test build with the new gcc (diasurgical/DevilutionX#6056):

In file included from /opt/m68k-amigaos-gcc10/include/SDL/SDL_stdinc.h:63,
                 from /opt/m68k-amigaos-gcc10/include/SDL/SDL_main.h:26,
                 from /opt/m68k-amigaos-gcc10/include/SDL/SDL.h:30,
                 from /root/repo/build/_deps/libsmackerdec-src/include/FileStream.h:24,
                 from /root/repo/build/_deps/libsmackerdec-src/include/BitReader.h:24,
                 from /root/repo/build/_deps/libsmackerdec-src/src/BitReader.cpp:20:
/opt/m68k-amigaos-gcc10/m68k-amigaos/sys-include/strings.h:46:18: error: conflicting declaration of 'int bcmp(const void*, const void*, size_t)' with 'C' linkage
   46 | __stdargs int    bcmp(const void *, const void *, size_t) __pure;       /* LEGACY */
      |                  ^~~~
In file included from /opt/m68k-amigaos-gcc10/m68k-amigaos/libnix/include/stdio.h:3,
                 from /opt/m68k-amigaos-gcc10/lib/gcc/m68k-amigaos/13.1.1/include/c++/cstdio:42,
                 from /opt/m68k-amigaos-gcc10/lib/gcc/m68k-amigaos/13.1.1/include/c++/ext/string_conversions.h:45,
                 from /opt/m68k-amigaos-gcc10/lib/gcc/m68k-amigaos/13.1.1/include/c++/bits/basic_string.h:4108,
                 from /opt/m68k-amigaos-gcc10/lib/gcc/m68k-amigaos/13.1.1/include/c++/string:54,
                 from /root/repo/build/_deps/libsmackerdec-src/include/FileStream.h:23:
/opt/m68k-amigaos-gcc10/m68k-amigaos/libnix/include/string.h:40:15: note: previous declaration with 'C++' linkage
   40 | __stdargs int bcmp(const void *, const void *, size_t);

looks like the libc declaration conflicts with the libnix one (__pure is missing in libnix)

@bebbo bebbo transferred this issue from bebbo/amiga-gcc Apr 28, 2023
@glebm
Copy link
Author

glebm commented Apr 30, 2023

Confirmed fixed!
The next error we see is bebbo/gcc#201

@glebm glebm closed this as completed Apr 30, 2023
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

1 participant