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 failed: hypot() conflicts with previous declaration #24

Closed
HedgeHao opened this issue Jun 9, 2023 · 5 comments
Closed

Build failed: hypot() conflicts with previous declaration #24

HedgeHao opened this issue Jun 9, 2023 · 5 comments
Assignees
Labels
verify to close Waiting on confirm issue is resolved

Comments

@HedgeHao
Copy link

HedgeHao commented Jun 9, 2023

I'm building isaac_ros_nitros on Jetson Xavier. And the following errors occur.

/usr/local/cuda/include/cuda/std/detail/libcxx/include/cmath:569:101: error: ‘float cuda::std::__3::hypot(float, float, float)’ conflicts with a previous declaration

/usr/local/cuda/include/cuda/std/detail/libcxx/include/cmath:570:101: error: ‘double cuda::std::__3::hypot(double, double, double)’ conflicts with a previous declaration

/usr/local/cuda/include/cuda/std/detail/libcxx/include/cmath:572:101: error: ‘long double cuda::std::__3::hypot(long double, long double, long double)’ conflicts with a previous declaration

I'm using docker image dustynv/ros:humble-ros-base-l4t-r35.3.1

My cuda version is

nvcc --version

Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0
@nakai-omer
Copy link

Any updates on this? this is super annoying, it is blocking us from using the Jetson...

@nakai-omer
Copy link

nakai-omer commented Jun 18, 2023

@HedgeHao Solved it by patching cuda, just like in the docker container.

Create the patch file under /tmp:

wget https://raw.githubusercontent.com/NVIDIA-ISAAC-ROS/isaac_ros_common/main/docker/patches/libcudacxx_aarch64_cuda_11_4.diff -P /tmp

Run the patch:

sudo patch -i /tmp/libcudacxx_aarch64_cuda_11_4.diff /usr/local/cuda-11.4/targets/aarch64-linux/include/cuda/std/detail/libcxx/include/cmath

@jaiveersinghNV
Copy link
Contributor

Yes, we provide a number of patches that are used by the Isaac ROS Docker container to ensure all libraries play nicely inside the Isaac ROS development environment. An easy way to get all of those patches is to use our run_dev.sh script, available here.

@jaiveersinghNV jaiveersinghNV self-assigned this Jun 20, 2023
@jaiveersinghNV jaiveersinghNV added the verify to close Waiting on confirm issue is resolved label Jun 20, 2023
@HedgeHao
Copy link
Author

@nakai-omer You are right. After this patch it works fine.

@willSapgreen
Copy link

Hello @jaiveersinghNV
I got "404 Not Found" when creating the patch file with @nakai-omer 's command.
Is the server down today or the patch is no longer valid?
Thank you for your precious time on this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verify to close Waiting on confirm issue is resolved
Projects
None yet
Development

No branches or pull requests

4 participants