Open osrf-migration opened 6 years ago
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
disabling failed tests in pull request #511
it looks like this is fixed in macOS catalina?
This has been fixed in Xcode 12+ available on macOS 10.15 Catalina
tests enabled for Xcode 12+ in https://github.com/osrf/sdformat/pull/414
this was passing CI and now it's failing; I don't know why, but I'm disabling the tests again
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
There are two failing tests for the
gz11
branch on macOS mojave.I started by investigating the
GetAny
test failure fromUNIT_SDF_TEST
, which failed at line 418, which occurs when astd::bad_any_cast
is thrown after callingstd::any_cast<ignition::math::Pose3d>(anyValue)
. I added some print statements to confirm thatanyValue
should have the right type:which gives the following output, showing that the types have matching names, but different
hash_code
s.After some googling, I found an issue with clang with a reproducible test case (that was originally reported on stackoverflow). I think it's an issue with
std::any
in clang, because the reproducible test case works with gcc or if you switch fromstd::any
toboost::any
.I think we see the issue because
ignition::math::Pose3d
is a template type, and it may be seeing different versions of of that type from different shared libraries and not recognizing that they are the same. I have requested a llvm.org account so that I can comment on that issue.