Skip to content

Instantly share code, notes, and snippets.

@ChrisLane
Created January 16, 2023 09:07
Show Gist options
  • Save ChrisLane/19da48dbf37c2012b37b41ca25d48480 to your computer and use it in GitHub Desktop.
Save ChrisLane/19da48dbf37c2012b37b41ca25d48480 to your computer and use it in GitHub Desktop.
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true --wrap-mode=forcefallback -Duse_system_vulkan=enabled -Dappend_libdir_mangohud=false -Dmangohudctl=true -Dmangoapp_layer=true -Dtests=disabled mangohud build
The Meson build system
Version: 1.0.0
Source dir: /tmp/tmp.S9GMkBPR3Y/mangohud-git/src/mangohud
Build dir: /tmp/tmp.S9GMkBPR3Y/mangohud-git/src/build
Build type: native build
Project name: MangoHud
Project version: v0.6.8
C compiler for the host machine: ccache cc (gcc 12.2.0 "cc (GCC) 12.2.0")
C linker for the host machine: cc ld.bfd 2.39.0
C++ compiler for the host machine: ccache c++ (gcc 12.2.0 "c++ (GCC) 12.2.0")
C++ linker for the host machine: c++ ld.bfd 2.39.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 (mako) found: YES (/usr/bin/python3) modules: mako
Checking if "GCC atomic builtins" compiles: YES
Checking if "Supports timespec_get" compiles: YES
Checking for function "bswap32" : YES
Checking for function "bswap64" : YES
Checking for function "clz" : YES
Checking for function "clzll" : YES
Checking for function "ctz" : YES
Checking for function "expect" : YES
Checking for function "ffs" : YES
Checking for function "ffsll" : YES
Checking for function "popcount" : YES
Checking for function "popcountll" : YES
Checking for function "unreachable" : YES
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency x11 found: YES 1.8.3
Dependency wayland-client skipped: feature with_wayland disabled
Run-time dependency dbus-1 found: YES 1.14.4
Run-time dependency vulkan found: YES 1.3.235
Run-time dependency threads found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Qunused-arguments: NO
Compiler for C supports arguments -fno-math-errno: YES
Compiler for C supports arguments -fno-trapping-math: YES
Compiler for C supports arguments -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wformat-truncation: YES
Compiler for C++ supports arguments -Werror=return-type: YES
Compiler for C++ supports arguments -Wno-unused-parameter: YES
Compiler for C++ supports arguments -Qunused-arguments: NO
Compiler for C++ supports arguments -fno-math-errno: YES
Compiler for C++ supports arguments -fno-trapping-math: YES
Compiler for C++ supports arguments -Wnon-virtual-dtor: YES
Compiler for C++ supports arguments -Wmissing-field-initializers: YES
Compiler for C++ supports arguments -Wformat-truncation: YES
Compiler for C supports arguments -Woverride-init: YES
Compiler for C supports arguments -Winitializer-overrides: NO
Checking for function "dlopen" : YES
Checking for function "clock_gettime" : YES
Checking for size of "void*" : 8
Downloading imgui source from https://github.com/ocornut/imgui/archive/v1.81.tar.gz
Downloading file of unknown size.
Downloading imgui patch from https://wrapdb.mesonbuild.com/v2/imgui_1.81-1/get_patch
Download size: 1850
Downloading: ..........
Executing subproject imgui
imgui| Project name: imgui
imgui| Project version: 1.81
imgui| C++ compiler for the host machine: ccache c++ (gcc 12.2.0 "c++ (GCC) 12.2.0")
imgui| C++ linker for the host machine: c++ ld.bfd 2.39.0
imgui| Library d3d9 skipped: feature dx9 disabled
imgui| Library d3d10 skipped: feature dx10 disabled
imgui| Library d3d11 skipped: feature dx11 disabled
imgui| Library d3d12 skipped: feature dx12 disabled
imgui| Library metal skipped: feature metal disabled
imgui| Run-time dependency glew found: YES 2.2.0
imgui| Dependency vulkan skipped: feature vulkan disabled
imgui| Run-time dependency glfw3 found: YES 3.3.8
imgui| Dependency sdl2 skipped: feature sdl2 disabled
imgui| Dependency allegro5 skipped: feature allegro5 disabled
imgui| Library marmalade skipped: feature marmalade disabled
imgui| Build targets in project: 3
imgui| Subproject imgui finished.
Library spdlog skipped: feature use_system_spdlog disabled
Downloading spdlog source from https://github.com/gabime/spdlog/archive/v1.8.5.tar.gz
Download size: 321229
Downloading: ..........
Downloading spdlog patch from https://wrapdb.mesonbuild.com/v2/spdlog_1.8.5-1/get_patch
Download size: 2211
Downloading: ..........
Executing subproject spdlog
spdlog| Project name: spdlog
spdlog| Project version: 1.8.5
spdlog| C++ compiler for the host machine: ccache c++ (gcc 12.2.0 "c++ (GCC) 12.2.0")
spdlog| C++ linker for the host machine: c++ ld.bfd 2.39.0
spdlog| Dependency threads found: YES unknown (cached)
spdlog| Build targets in project: 4
spdlog| Subproject spdlog finished.
Dependency glfw3 found: YES 3.3.8 (cached)
Looking for a fallback subproject for the dependency nlohmann_json because:
Use of fallback dependencies is forced.
Downloading nlohmann_json source from https://github.com/nlohmann/json/releases/download/v3.10.5/include.zip
Download size: 260679
Downloading: ..........
Executing subproject nlohmann_json
nlohmann_json| Project name: nlohmann_json
nlohmann_json| Project version: 3.10.5
nlohmann_json| C++ compiler for the host machine: ccache c++ (gcc 12.2.0 "c++ (GCC) 12.2.0")
nlohmann_json| C++ linker for the host machine: c++ ld.bfd 2.39.0
nlohmann_json| Build targets in project: 4
nlohmann_json| Subproject nlohmann_json finished.
Dependency nlohmann_json from subproject subprojects/nlohmann_json-3.10.5 found: YES 3.10.5
Program glslangValidator found: YES (/usr/bin/glslangValidator)
Has header "NVCtrl/NVCtrl.h" : YES
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,--exclude-libs,ALL: YES
Compiler for C supports link arguments -lGL: YES
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.
Configuring MangoHud.json using configuration
Configuring mangohud using configuration
Configuring libMangoApp.json using configuration
Program appstreamcli skipped: feature tests disabled
Build targets in project: 12
MangoHud v0.6.8
Subprojects
imgui : YES
nlohmann_json : YES
spdlog : YES
User defined options
auto_features : enabled
buildtype : plain
libexecdir : lib
prefix : /usr
sbindir : bin
wrap_mode : forcefallback
b_lto : true
b_pie : true
append_libdir_mangohud: false
mangoapp_layer : true
mangohudctl : true
tests : disabled
use_system_vulkan : enabled
Found ninja-1.11.1 at /usr/bin/ninja
ninja: Entering directory `build'
[21/74] Generating src/overlay.frag.spv.h with a custom command
../mangohud/src/overlay.frag
[22/74] Generating src/overlay.vert.spv.h with a custom command
../mangohud/src/overlay.vert
[71/74] Compiling C++ object src/libMangoApp.so.p/app_layer.cpp.o
../mangohud/src/app/layer.cpp: In function ‘VkResult overlay_CreateInstance(const VkInstanceCreateInfo*, const VkAllocationCallbacks*, VkInstance_T**)’:
../mangohud/src/app/layer.cpp:162:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
162 | system(command.c_str());
| ~~~~~~^~~~~~~~~~~~~~~~~
[74/74] Linking target src/mangoapp
FAILED: src/mangoapp
c++ -o src/mangoapp src/mangoapp.p/app_main.cpp.o -flto -Wl,--as-needed -Wl,--no-undefined -pie -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Warray-bounds -Wzero-length-bounds -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -Wl,--start-group src/libMangoHud.a subprojects/imgui-1.81/libimgui.a subprojects/spdlog-1.8.5/src/libspdlog.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--exclude-libs,ALL -lGL -Wl,--version-script,/tmp/tmp.S9GMkBPR3Y/mangohud-git/src/mangohud/src/mangohud.version -pthread /usr/lib/libX11.so /usr/lib/libglfw.so /usr/lib/libvulkan.so /usr/lib/libGLEW.so /usr/lib/libEGL.so /usr/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libOpenGL.so -Wl,--end-group
/usr/bin/ld: /tmp/cc12RCLo.ltrans0.ltrans.o: in function `msg_read_thread()':
<artificial>:(.text+0x4a42): undefined reference to `glfwGetX11Display'
/usr/bin/ld: /tmp/cc12RCLo.ltrans0.ltrans.o: in function `main':
<artificial>:(.text.startup+0xb7): undefined reference to `glfwGetX11Display'
/usr/bin/ld: <artificial>:(.text.startup+0xca): undefined reference to `glfwGetX11Window'
/usr/bin/ld: /tmp/cc12RCLo.ltrans15.ltrans.o: in function `init(char const*) [clone .constprop.0]':
<artificial>:(.text+0x4767): undefined reference to `glfwGetX11Display'
/usr/bin/ld: <artificial>:(.text+0x4773): undefined reference to `glfwGetX11Window'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment