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

static initializer stopping the build? #1506

Open
twinec opened this issue Apr 14, 2024 · 1 comment
Open

static initializer stopping the build? #1506

twinec opened this issue Apr 14, 2024 · 1 comment

Comments

@twinec
Copy link

twinec commented Apr 14, 2024

Build Log
What is the build error?

[21476/25908] Linking C shared library src/private-frameworks/Espresso/Espresso
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: static initializer found in 'src/private-frameworks/Espresso/CMakeFiles/Espresso.dir/src/Espresso.m.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ninja: build stopped: subcommand failed.

can't paste the whole thing, here's a snippet from pastebin:
https://pastebin.com/X7rnkaHU

System Information
What system are you building with?
OS: Ubuntu 20.04.6 LTS on Windows 10 x86_64
Kernel: 5.15.146.1-microsoft-standard-WSL2
Uptime: 3 hours, 19 mins
Packages: 1322 (dpkg)
Shell: bash 5.0.17
Theme: Adwaita [GTK3]
Icons: Adwaita [GTK3]
Terminal: Relay(11)
CPU: Intel i7-8700K (12) @ 3.696GHz
GPU: 68f5:00:00.0 Microsoft Corporation Device 008e
Memory: 400MiB / 11923MiB

Software Version
ninja 1.10.0
Clang 12
CMake 3.16.3
Linux Kernel 5.15.146.1-microsoft-standard-WSL2
Darling 7c8415e
@CuriousTommy
Copy link
Contributor

I don't think the "static initializer" message is the cause for the build failure. That message is just a warning, not an error.

You are likely running into this issue: #915 (comment)
https://gitlab.kitware.com/cmake/cmake/-/issues/24984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants