Skip to content
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

compile failed with ninja -C build #3619

Open
peiwithhao opened this issue Sep 17, 2024 · 5 comments
Open

compile failed with ninja -C build #3619

peiwithhao opened this issue Sep 17, 2024 · 5 comments
Labels
bug Something isn't working clock custom inhibitor

Comments

@peiwithhao
Copy link

I clone the latest git repo and just meson && ninja, but some error happened there :(

  • linux kernel: 6.10.10-arch1-1
  • ninja version: 1.12.1
  • meson version: 1.5.1
  • WM: Hyprland
FAILED: test/waybar_test 
c++  -o test/waybar_test test/waybar_test.p/main.cpp.o test/waybar_test.p/config.cpp.o test/waybar_test.p/.._src_config.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group -lstdc++fs /usr/lib/libCatch2.a /usr/lib/libfmt.so /usr/lib/libgtkmm-3.0.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libharfbuzz.so /usr/lib/libpango-1.0.so /usr/lib/libglib-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libsigc-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libatkmm-1.6.so /usr/lib/libglibmm-2.4.so /usr/lib/libatk-1.0.so /usr/lib/libcairo.so /usr/lib/libcairo-gobject.so /usr/lib/libgio-2.0.so /usr/lib/libgdkmm-3.0.so /usr/lib/libgiomm-2.4.so /usr/lib/libgtk-3.so /usr/lib/libcairomm-1.0.so /usr/lib/libpangomm-1.4.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libjsoncpp.so /usr/lib/libspdlog.so -Wl,--end-group -pthread
/sbin/ld: test/waybar_test.p/config.cpp.o: in function `CATCH2_INTERNAL_TEST_21()':
config.cpp:(.text+0x287): undefined reference to `Catch::ITransientExpression::~ITransientExpression()'
/sbin/ld: config.cpp:(.text+0x361): undefined reference to `Catch::ITransientExpression::~ITransientExpression()'
/sbin/ld: config.cpp:(.text+0x454): undefined reference to `Catch::ITransientExpression::~ITransientExpression()'
/sbin/ld: config.cpp:(.text+0x568): undefined reference to `Catch::ITransientExpression::~ITransientExpression()'
/sbin/ld: config.cpp:(.text+0x64e): undefined reference to `Catch::ITransientExpression::~ITransientExpression()'
/sbin/ld: test/waybar_test.p/config.cpp.o:config.cpp:(.text+0x76b): more undefined references to `Catch::ITransientExpression::~ITransientExpression()' follow
collect2: 错误:ld 返回 1
[135/138] Compiling C++ object waybar.p/src_modules_clock.cpp.o
ninja: build stopped: subcommand failed.
@github-actions github-actions bot added bug Something isn't working clock custom inhibitor labels Sep 17, 2024
@LukashonakV
Copy link
Contributor

LukashonakV commented Sep 24, 2024

Hi @peiwithhao , it might updating of catch2 project will help you

@peiwithhao
Copy link
Author

I will try it later, i am using AUR waybar-cava-git now :), thank you for answering the question

@LukashonakV
Copy link
Contributor

Hi @peiwithhao , thank you for reporting. At least to me it seems the issue persist in waybar source code. Appropriate MR is created and linked with the issue

@LukashonakV
Copy link
Contributor

Hi @peiwithhao , appropriate issue is created to upstream catchorg/Catch2#2912

@peiwithhao
Copy link
Author

Thank you for this! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clock custom inhibitor
Projects
None yet
Development

No branches or pull requests

2 participants