-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
22.04 undefined reference to `typeinfo for srsenb::sched_nr_base_test_bench' #852
Comments
Hi, it seems there is an issue with a very recent GCC version. Your logs report
You could try to build with GCC <= 11.2.0 or Clang <= 13.0.1, which are the most recent versions that I have tested (on Archlinux). |
Clang 13.0.1 is available in Gentoo and the failure looks pretty similar
|
So I just tested, and this bug seems to only pop up with -Os. If I compile with -O3 instead, I get #854 |
I can see some external configurations being loaded, e.g.
and a few extra CC/CXX flags, (on the first sight for example Could you please also try to build without them? https://docs.srsran.com/en/latest/general/source/1_installation.html |
The gentoo override files are pretty dull and shouldn't be affecting anything. I can't build in the package manager without them afaik, but I'll include them here in case you see anything which might be problematic. gentoo_common_config.cmake
gentoo_rules.cmake
|
I removed my custom cflags from gentoo_rules.cmake and from the environment and rebuilt. I get an extremely similar error still
|
Thanks for the feedback. I could reproduce your build issue by adding I added a patch to fix the build process, regardless of whether that option is set or not. Could you please confirm if this patch fixes the build process? P.S. As an immediate workaround I suggest to set |
Nice, confirmed that https://github.com/srsran/srsRAN/commit/2e1a7abfb313f874add9efa2cdd716dffd842782.patch fixes this. I'm retesting my other bugs but I am fairly certain they are all interelated and just happened to hit a failure at a slightly different point. |
Config looks like this
Build failure here:
Seems to get a bit further than #835 , but still doesn't build. Is there a way to disable these tests that I'm missing? How do others build this successfully?
The text was updated successfully, but these errors were encountered: