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

warnings when compiling on raspberry pi #52

Open
kopp opened this issue Mar 10, 2017 · 1 comment
Open

warnings when compiling on raspberry pi #52

kopp opened this issue Mar 10, 2017 · 1 comment

Comments

@kopp
Copy link

kopp commented Mar 10, 2017

We get the following warnings when compiling rosaria on raspberry pi, ubuntu 16.04, ros kinetic, libaria 2.8.0, gcc 5.4.0

Note for people also compiling rosaria on a Raspberry Pi: Use catkin build -j 1, otherwise the process consumes too much ram.

Warnings   << rosaria:make /home/ubuntu/AmigomatedDriving/logs/rosaria/build.make.001.log                           
In file included from /home/ubuntu/AmigomatedDriving/src/external/rosaria/RosAria.cpp:22:0:
/home/ubuntu/AmigomatedDriving/devel/.private/rosaria/include/rosaria/RosAriaConfig.h:473:7: warning: this decimal constant is unsigned only in ISO C90
       __min__.TicksMM = -2147483648;
       ^
/home/ubuntu/AmigomatedDriving/devel/.private/rosaria/include/rosaria/RosAriaConfig.h:483:7: warning: this decimal constant is unsigned only in ISO C90
       __min__.DriftFactor = -2147483648;
       ^
In file included from /home/ubuntu/AmigomatedDriving/src/external/rosaria/RosAria.cpp:22:0:
/home/ubuntu/AmigomatedDriving/devel/.private/rosaria/include/rosaria/RosAriaConfig.h:493:7: warning: this decimal constant is unsigned only in ISO C90
       __min__.RevCount = -2147483648;
       ^
In file included from /opt/ros/kinetic/include/ros/ros.h:40:0,
                 from /home/ubuntu/AmigomatedDriving/src/external/rosaria/RosAria.cpp:8:
/home/ubuntu/AmigomatedDriving/src/external/rosaria/RosAria.cpp: In member function ‘int RosAriaNode::Setup()’:
/opt/ros/kinetic/include/ros/console.h:346:176: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘std::map<int, ArLaser*>::size_type {aka unsigned int}’ [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/kinetic/include/ros/console.h:349:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(0, __VA_ARGS__)
     ^
/opt/ros/kinetic/include/ros/console.h:379:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^
/opt/ros/kinetic/include/ros/console.h:561:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^
/opt/ros/kinetic/include/rosconsole/macros_generated.h:112:35: note: in expansion of macro ‘ROS_LOG’
 #define ROS_INFO_NAMED(name, ...) ROS_LOG(::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + name, __VA_ARGS__)
                                   ^
/home/ubuntu/AmigomatedDriving/src/external/rosaria/RosAria.cpp:491:5: note: in expansion of macro ‘ROS_INFO_NAMED’
     ROS_INFO_NAMED("rosaria", "rosaria: there are %lu connected lasers", lasers->size());
     ^
cd /home/ubuntu/AmigomatedDriving/build/rosaria; catkin build --get-env rosaria | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
@songj01
Copy link

songj01 commented Oct 19, 2020

how to solve the issue?

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