Closed junliume closed 4 months ago
Likely related to #2984
Related issue: https://github.com/ROCm/MIOpen/issues/2178
@BrianHarrisonAMD @JehandadKhan @atamazov @pfultz2 : some more clarifications behind this issue:
Some changes in compiler have exposed issues with Ubuntu 20.04 (these issues are not reproducible on Ubuntu 22.04)
The first issue is a known one (ref #2177): https://github.com/ROCm/MIOpen/blob/5f136335e2662a212ac4965ffd8c1817705d6249/src/CMakeLists.txt#L787-L789 so that the workaround is to do the same for gTest which include MIOpenDriver now.
The second issue is likely caused by compiler changes recently enabled --no-allow-shlib-undefined
by default:
Before #3007:
googletest
is not required to be built because we can also rely on the other existing one under /opt/conda/lib/libgtest.so.1.11.0
However, this version of gtest requires GLIBCXX_3.4.29
which does not exist by default under Ubuntu 20.04
# strings /opt/conda/lib/libgtest.so.1.11.0 | grep LIBCXX_3.4.29
GLIBCXX_3.4.29
_ZSt28__throw_bad_array_new_lengthv@GLIBCXX_3.4.29
# strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep LIBCXX
-Wl,-allow-shlib-undefined
to the link options to temporarily workaround this issue, @BrianHarrisonAMD and I believe it is better to fix the dependency to a statically built GoogleTest for a conformed and working version (ref: #3007)@junliume : need clarity on the sources of these errors. Does MIOpen need libdl
? Do we use the dl api
in MIOpen?
Secondly: what conda
environment are we talking of here?
OK, I found the answer to the first one. libdl
is being used in MIOpen and we need to link against that. So now we need to figure out the root cause of 2nd one.
OK, I found the answer to the first one.
libdl
is being used in MIOpen and we need to link against that. So now we need to figure out the root cause of 2nd one.OK, I found the answer to the first one.
libdl
is being used in MIOpen and we need to link against that. So now we need to figure out the root cause of 2nd one.
@amberhassaan The cause of the second one is polluted environment, where under /opt/conda there is another version of googtest, which requires GLIBCXX_3.4.29 (hence not offered in Ubuntu 20.04). So now we explicitly request a specific version of googletest to be installed as part of the dependency.
@atamazov could you help to check if this issue relates to MIOpen change or compiler change? Thanks!
and another one: