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

gcc 11.2.0でコンパイルエラー #58

Closed
yamam opened this issue Apr 25, 2022 · 1 comment · Fixed by #59
Closed

gcc 11.2.0でコンパイルエラー #58

yamam opened this issue Apr 25, 2022 · 1 comment · Fixed by #59

Comments

@yamam
Copy link
Contributor

yamam commented Apr 25, 2022

ubuntu 22.04 gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
の環境でビルドしたところ以下のエラーが発生しました。
エラーの詳細原因は不明ですが、mros_comm_socket_select()のmRosFdSetType fd_set;の変数名がfd_setになっていることが原因のようです。fd_setをsetのような名前に変更することでビルドが通ることを確認しました。

In file included from /usr/include/sys/select.h:30,
                 from /usr/include/sys/types.h:179,
                 from /usr/include/stdlib.h:395,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-athrill/target/os/kernel.h:5,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-src/os/target/os_asp/mros_os_target.h:8,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-src/inc/mros_types.h:51,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_cimpl.h:25,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_socket_cimpl.h:25,
                 from ../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_socket_cimpl.c:18:
../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_socket_cimpl.c: In function ‘mros_comm_socket_select’:
../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/target/lwip/mros_comm_target.h:37:57: error: ‘__arr’ undeclared (first use in this function)
   37 | #define MROS_FD_ZERO(arg)                               FD_ZERO(arg)
      |                                                         ^~~~~~~
../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_socket_cimpl.c:67:9: note: in expansion of macro ‘MROS_FD_ZERO’
   67 |         MROS_FD_ZERO(&fd_set);
      |         ^~~~~~~~~~~~
../../athrill/src/device/peripheral/mros-dev/mros-src/node/cimpl/mros_node_cimpl.c
../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/target/lwip/mros_comm_target.h:37:57: note: each undeclared identifier is reported only once for each function it appears in
   37 | #define MROS_FD_ZERO(arg)                               FD_ZERO(arg)
      |                                                         ^~~~~~~
../../athrill/src/device/peripheral/mros-dev/mros-src/comm/cimpl/mros_comm_socket_cimpl.c:67:9: note: in expansion of macro ‘MROS_FD_ZERO’
   67 |         MROS_FD_ZERO(&fd_set);
      |
@tmori
Copy link
Contributor

tmori commented Apr 28, 2022

ubuntu 22.04 gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 の環境でビルドしたところ以下のエラーが発生しました。 エラーの詳細原因は不明ですが、mros_comm_socket_select()のmRosFdSetType fd_set;の変数名がfd_setになっていることが原因のようです。fd_setをsetのような名前に変更することでビルドが通ることを確認しました。

ご連絡ありがとうございます!
問題点は把握できましたので,対応の検討をしたいと思います.
ただ,GW中色々と仕事が溜まっておりまして,もしお急ぎでしたら,PRいただけますと大変ありがたく思います.

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

Successfully merging a pull request may close this issue.

2 participants