-
Notifications
You must be signed in to change notification settings - Fork 10
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
ignition utils 1.2.0 doesn't build with ign-cmake 2.10.0 and with clang-6.0 compiler #36
Comments
Thanks for reporting, I can reproduce on Ubuntu My suspicion is that there is something incorrect with how name mangling works with When built with
Versus building with something newer (
The |
Here is a very minimal reproduction excluding everything ignition-related: https://github.com/mjcarroll/clang6-inline-namespace |
@mjcarroll thanks for updates and moving the issue to development. Hope to see this working soon. Also I cannot edit the labels, if it is valid, then can you add edifice lable to the issue ? |
After chatting with some colleagues, I'm inclined to say it's either a compiler bug or a weird edge case. I don't know that there will be anything on our side that we can do to handle it. In the meantime, is there any way that you can use a newer compiler? I see that |
yes we can work with other compilers. The compilation error was detected when CI did an automatic build of the conan recipe with multiple compilers and clang-6.0 was one of them. We need only gcc compiler at the moment. To create the conan recipe, we have to simply disable ign-uitls 1.2.0 from the recipe. Hope this is not going to be a problem for other downstream dependencies of ignition-fortress ? |
This is a pretty common pattern throughout the stack, so I would expect that clang-6 may have issues on all the other packages. I think at the very least, we will make a note indicating that there are known issues with that compiler. |
@ggulgulia Can you check if #39 fixes the problem for you? |
Environment
3991dca05d041dba5477e5aa53f6b058183cd111
)7eb246daaa6248db3f7c85183789fc1e752423c9
)Description
Steps to reproduce
To reproduce the error, you will need a system with Clang-6.0 compiler
Output
Cmake configuration for ign-utils:
To check if ign-cmake 2.10.0 was correctly used, I ran from
build
dir:ccmake ..
. The output is below:after that I build ign-utils and encounter a linker error when
UNIT_Environment_TEST
is being linked against libraryEnvironment
Here's a screenshot of the error
Note: I tried the same steps but with clang-8 and clang-9, and ign-utils could be compiled with clang-8 and clang-9
The text was updated successfully, but these errors were encountered: