static initializer stopping the build?
twinec opened this issue · comments
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 |
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