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 on raspberry pi fails #23

Open
briandgregory opened this issue Jan 30, 2025 · 7 comments
Open

Build on raspberry pi fails #23

briandgregory opened this issue Jan 30, 2025 · 7 comments

Comments

@briandgregory
Copy link

In file included from /home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/Appender.hh:21,
from /home/bgregory/orocos/orocos_toolchain/log4cpp/src/Appender.cpp:11:
/home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/Priority.hh:107:9: error: ISO C++17 does not allow dynamic exception specifications
107 | throw(std::invalid_argument);
| ^~~~~
make[5]: *** [CMakeFiles/orocos-log4cpp.dir/build.make:76: CMakeFiles/orocos-log4cpp.dir/src/Appender.cpp.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:143: CMakeFiles/orocos-log4cpp.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/log4cpp.dir/build.make:86: stamp/log4cpp-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/log4cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

bgregory@raspberrypi:~/orocos/orocos_toolchain $ git status
On branch toolchain-2.9
Your branch is up to date with 'origin/toolchain-2.9'.

nothing to commit, working tree clean

@briandgregory
Copy link
Author

bgregory@raspberrypi:~/orocos/orocos_toolchain $ g++ --version
g++ (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@meyerj
Copy link
Member

meyerj commented Jan 30, 2025

Quick hint, I did not check yet: This issue (throw specifiers) should have been fixed with #12, no? Maybe not on branch toolchain-2.9.

@briandgregory
Copy link
Author

Quick hint, I did not check yet: This issue (throw specifiers) should have been fixed with #12, no? Maybe not on branch toolchain-2.9.

Doh, yeah, moved up to 2.10 and we'll see how it goes.

@briandgregory
Copy link
Author

Hm, now getting this.

[ 2%] Building CXX object CMakeFiles/orocos-log4cpp.dir/src/DailyRollingFileAppender.cpp.o
In file included from /home/bgregory/orocos/orocos_toolchain/log4cpp/src/DailyRollingFileAppender.cpp:18:
/home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/DailyRollingFileAppender.hh:41:19: error: field ‘_logsTime’ has incomplete type ‘tm’
41 | struct tm _logsTime;
| ^~~~~~~~~
In file included from /usr/include/c++/12/cwchar:44,
from /usr/include/c++/12/bits/postypes.h:40,
from /usr/include/c++/12/bits/char_traits.h:39,
from /usr/include/c++/12/string:40,
from /home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/LayoutAppender.hh:13,
from /home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/FileAppender.hh:14,
from /home/bgregory/orocos/orocos_toolchain/log4cpp/include/log4cpp/DailyRollingFileAppender.hh:11:
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
83 | struct tm;
| ^~

@briandgregory
Copy link
Author

Based upon Google, I edited DailyRollingFileAppender.hh and DailyRollingFileAppender.cpp to change "struct tm" to "tm" and this cleared enough to continue the build. Not a fix, but a workaround for now.

@briandgregory
Copy link
Author

Nope, never mind

@briandgregory
Copy link
Author

Adding

#include <time.h>

to DailyRollingFileAppender.hh seemed to work, for now.

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