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

Gdb build error on Mac #10

Open
jacklee-5 opened this issue Jun 19, 2024 · 0 comments
Open

Gdb build error on Mac #10

jacklee-5 opened this issue Jun 19, 2024 · 0 comments

Comments

@jacklee-5
Copy link

jacklee-5 commented Jun 19, 2024

Hello,

I tried to build gdb on Mac M1, but I failed with this error in gcc-14.
It seems that gnulib/import/sys_select.in.h needs to be modified ,but I am not sure.

Could you give any advices for this?

In file included from /Volumes/code/nds-gnu-toolchain/gdb/gdb/../gdbsupport/common-defs.h:86,
                 from /Volumes/code/nds-gnu-toolchain/gdb/gdb/defs.h:28,
                 from /Volumes/code/nds-gnu-toolchain/gdb/gdb/unittests/string_view-selftests.c:26:
../gnulib/import/sys/select.h:797:1: error: conflicting declaration of 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)' with 'C' linkage
  797 | _GL_CXXALIASWARN (select);
      | ^~~~~~~~~~~~~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/time.h:202,
                 from ../gnulib/import/sys/time.h:39,
                 from ../gnulib/import/sys/select.h:89,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/unistd.h:639,
                 from ../gnulib/import/unistd.h:40,
                 from ../gnulib/import/stdlib.h:100,
                 from /Volumes/code/nds-gnu-toolchain/gdb/gdb/../gdbsupport/common-defs.h:91:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/_select.h:43:10: note: previous declaration with 'C++' linkage
   43 | int      select(int, fd_set * __restrict, fd_set * __restrict,
      |          ^~~~~~
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