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

boards: cogip-native: mallinfo2 is not supported on Ubuntu 20.04 #108

Closed
ecourtois opened this issue Sep 27, 2022 · 0 comments · Fixed by #112
Closed

boards: cogip-native: mallinfo2 is not supported on Ubuntu 20.04 #108

ecourtois opened this issue Sep 27, 2022 · 0 comments · Fixed by #112
Assignees
Labels
bug Something isn't working

Comments

@ecourtois
Copy link
Contributor

ecourtois commented Sep 27, 2022

With the introduction of sys/sysmon in a previous release (c1ed38b), applications/examples does not compile anymore with cogip-native board.
It is due to the use of mallinfo2 which was introduced in glibc 2.33, but Ubuntu 20.04 uses glibc 2.31.

In file included from <command-line>:
mcu-firmware/boards/cogip-native/board_init.c: In function 'board_init':
mcu-firmware/examples/sys_sysmon/bin/cogip-native/riotbuild/riotbuild.h:14:25: error: variable 'minfo' has initializer but incomplete type
   14 | #define MALLINFO struct mallinfo2
      |                         ^~~~~~~~~
mcu-firmware/boards/cogip-native/board_init.c:44:5: note: in expansion of macro 'MALLINFO'
   44 |     MALLINFO minfo = MALLINFO_FUNC();
      |     ^~~~~~~~
mcu-firmware/examples/sys_sysmon/bin/cogip-native/riotbuild/riotbuild.h:15:25: error: implicit declaration of function 'mallinfo2'; did you mean 'mallinfo'? [-Werror=implicit-function-declaration]
   15 | #define MALLINFO_FUNC() mallinfo2()
      |                         ^~~~~~~~~
mcu-firmware/boards/cogip-native/board_init.c:44:22: note: in expansion of macro 'MALLINFO_FUNC'
   44 |     MALLINFO minfo = MALLINFO_FUNC();
      |                      ^~~~~~~~~~~~~
mcu-firmware/boards/cogip-native/board_init.c:44:14: error: storage size of 'minfo' isn't known
   44 |     MALLINFO minfo = MALLINFO_FUNC();
      |              ^~~~~
mcu-firmware/boards/cogip-native/board_init.c:44:14: error: unused variable 'minfo' [-Werror=unused-variable]
cc1: all warnings being treated as errors
@ecourtois ecourtois added the bug Something isn't working label Sep 27, 2022
@gdoffe gdoffe linked a pull request Sep 27, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants