AbyssEngine / AbyssEngineOld

The Open Source ARPG Engine.
https://www.abyssengine.com
GNU General Public License v3.0
438 stars 46 forks source link

abyss_test linking: undefined symbol #129

Closed M0Rf30 closed 1 year ago

M0Rf30 commented 2 years ago

Describe the bug Reaching the end of build process this message pop out

[100%] Linking CXX executable abyss_test
mold: error: undefined symbol: absl::lts_20220623::container_internal::ConvertDeletedToEmptyAndFullToDeleted(absl::lts_20220623::container_internal::ctrl_t*, unsigned long)
>>> referenced by inifile.cpp

Would be great to skip the tests with an appropriate flag using cmake, for example launching:

cmake ../abyss-sources \
    -DBUILD_TESTING=off \

Thanks for your amazing efforts, I follow this project since the early days.

Additional note: mold (referenced in the log) is a drop-in replacement for gold (the GNU linker). same issue also with gold anyway

Workaround For now I'm using this workaround

# temporary workaround to disable tests
  pacman -S gtest
  rm -rf tests/*
  touch tests/CMakeLists.txt
essial commented 2 years ago

Thanks for the report! We will look into this issue and get back as soon as we can.