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

failed to compile with ros-foxy on an arm platform. #118

Open
wei1224hf opened this issue Apr 25, 2024 · 2 comments
Open

failed to compile with ros-foxy on an arm platform. #118

wei1224hf opened this issue Apr 25, 2024 · 2 comments

Comments

@wei1224hf
Copy link

here is the error:
image

`In file included from /home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/src/ethercat_sdo_srv_server.cpp:24:
/home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/include/ethercat_manager/ec_master_async.hpp: In member function ‘void ethercat_manager::EcMasterAsync::close()’:
/home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/include/ethercat_manager/ec_master_async.hpp:58:9: error: ‘::close’ has not been declared; did you mean ‘pclose’?
58 | ::close(fd_);
| ^~~~~
| pclose
make[2]: *** [CMakeFiles/ethercat_sdo_srv_server.dir/build.make:63: CMakeFiles/ethercat_sdo_srv_server.dir/src/ethercat_sdo_srv_server.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/ethercat_sdo_srv_server.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Failed <<< ethercat_manager [15.0s, exited with code 2]
Aborted <<< ethercat_interface [46.3s]

Summary: 1 package finished [47.2s]
1 package failed: ethercat_manager
1 package aborted: ethercat_interface
2 packages had stderr output: ethercat_interface ethercat_manager
8 packages not processed
`

the ethercat igh has been instlled well and worked fine.

@yguel
Copy link
Contributor

yguel commented Apr 29, 2024

Thanks for reporting.
Which arm platform are you using ? (can you run the 2 following commands and give me their result:

lscpu
uname -a

What is the compiler that is used (name, version) ?

@wei1224hf
Copy link
Author

Thanks for reporting. Which arm platform are you using ? (can you run the 2 following commands and give me their result:

lscpu
uname -a

What is the compiler that is used (name, version) ?

sorry , my arm board has been taken away,
I will reply the details when I got the arm board .

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