Skip to content

Instantly share code, notes, and snippets.

@ChaosBlades
Created April 6, 2024 00:06
Show Gist options
  • Save ChaosBlades/3058517c16118c520bc43c24c866f23c to your computer and use it in GitHub Desktop.
Save ChaosBlades/3058517c16118c520bc43c24c866f23c to your computer and use it in GitHub Desktop.
MangoHud Build Fail on Pop!_OS
./build.sh build
Command: build
# Checking dependencies for "pop"
# Unable to find distro information!
# Attempting to build regardless
# Checking dependencies for "ubuntu"
The Meson build system
Version: 0.61.2
Source dir: /home/akanar/MangoHud
Build dir: /home/akanar/MangoHud/build/meson64
Build type: native build
Project name: MangoHud
Project version: v0.7.1
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
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 (0.29.2)
Run-time dependency x11 found: YES 1.7.5
Run-time dependency wayland-client found: YES 1.20.0
Run-time dependency dbus-1 found: YES 1.12.20
Run-time dependency xkbcommon found: YES 1.4.0
Run-time dependency threads found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-declarations: 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 -Wno-missing-field-initializers: YES
Compiler for C++ supports arguments -Werror=missing-declarations: 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 -Wno-non-virtual-dtor: YES
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES
Checking for function "dlopen" : YES
Checking for function "clock_gettime" : YES
Downloading vulkan-headers source from https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.158.tar.gz
Downloading file of unknown size.
Downloading vulkan-headers patch from https://wrapdb.mesonbuild.com/v2/vulkan-headers_1.2.158-2/get_patch
Download size: 1107
Downloading: ..........
Executing subproject vulkan-headers
vulkan-headers| Project name: vulkan-headers
vulkan-headers| Project version: 1.2.158
vulkan-headers| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
vulkan-headers| C linker for the host machine: cc ld.bfd 2.38
vulkan-headers| Build targets in project: 1
vulkan-headers| Subproject vulkan-headers finished.
Checking for size of "void*" : 8
Downloading imgui source from https://github.com/ocornut/imgui/archive/refs/tags/v1.89.9.tar.gz
Downloading file of unknown size.
Downloading imgui patch from https://wrapdb.mesonbuild.com/v2/imgui_1.89.9-1/get_patch
Download size: 2413
Downloading: ..........
Executing subproject imgui
imgui| Project name: imgui
imgui| Project version: 1.89.9
imgui| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
imgui| C++ linker for the host machine: c++ ld.bfd 2.38
imgui| Library d3dcompiler found: NO
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| Dependency appleframeworks (modules: Foundation, AppKit, GameController, Metal) skipped: feature metal disabled
imgui| Dependency gl skipped: feature opengl disabled
imgui| Dependency sdl2 skipped: feature sdl_renderer disabled
imgui| Dependency vulkan skipped: feature vulkan disabled
imgui| Has header "webgpu/webgpu.h" skipped: feature webgpu disabled
imgui| Dependency glfw3 skipped: feature glfw disabled
imgui| Dependency sdl2 skipped: feature sdl2 disabled
imgui| Dependency appleframeworks (modules: Carbon, Cocoa, GameController) skipped: feature osx disabled
imgui| Library dwmapi skipped: feature win disabled
imgui| Dependency allegro-5 skipped: feature allegro5 disabled
imgui| Dependency allegro_primitives-5 skipped: feature allegro5 disabled
imgui| Build targets in project: 3
imgui| Subproject imgui finished.
Downloading implot source from https://github.com/epezent/implot/archive/refs/tags/v0.16.zip
Downloading file of unknown size.
Downloading implot patch from https://wrapdb.mesonbuild.com/v2/implot_0.16-1/get_patch
Download size: 1226
Downloading: ..........
Executing subproject implot
implot| Project name: ImGui Plotting Library
implot| Project version: 0.16
implot| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
implot| C++ linker for the host machine: c++ ld.bfd 2.38
implot| Build targets in project: 4
implot| Subproject implot finished.
Library spdlog skipped: feature use_system_spdlog disabled
Downloading spdlog source from https://github.com/gabime/spdlog/archive/refs/tags/v1.13.0.tar.gz
Download size: 264003
Downloading: ..........
Downloading spdlog patch from https://wrapdb.mesonbuild.com/v2/spdlog_1.13.0-1/get_patch
Download size: 2959
Downloading: ..........
Executing subproject spdlog
spdlog| Project name: spdlog
spdlog| Project version: 1.13.0
spdlog| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
spdlog| C++ linker for the host machine: c++ ld.bfd 2.38
spdlog| Dependency threads found: YES unknown (cached)
spdlog| Header <format> has symbol "__cpp_lib_format" skipped: feature std_format disabled
spdlog| Dependency fmt skipped: feature external_fmt disabled
spdlog| Build targets in project: 5
spdlog| Subproject spdlog finished.
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency nlohmann_json found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency nlohmann_json
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: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
nlohmann_json| C++ linker for the host machine: c++ ld.bfd 2.38
nlohmann_json| Build targets in project: 5
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/local/bin/glslangValidator)
Program git found: YES (/usr/bin/git)
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
Compiler for C supports link arguments -static-libstdc++: 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.x86_64.json using configuration
Configuring mangohud using configuration
Program appstreamcli found: YES (/usr/bin/appstreamcli)
Build targets in project: 11
MangoHud v0.7.1
Subprojects
imgui : YES
implot : YES
nlohmann_json : YES
spdlog : YES
vulkan-headers : YES
User defined options
libdir : lib/mangohud/lib64
prefix : /usr
werror : true
append_libdir_mangohud: false
Found ninja-1.10.1 at /usr/bin/ninja
The Meson build system
Version: 0.61.2
Source dir: /home/akanar/MangoHud
Build dir: /home/akanar/MangoHud/build/meson32
Build type: native build
Project name: MangoHud
Project version: v0.7.1
C compiler for the host machine: gcc -m32 (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: gcc -m32 ld.bfd 2.38
C++ compiler for the host machine: g++ -m32 (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: g++ -m32 ld.bfd 2.38
Host machine cpu family: x86
Host machine cpu: i686
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 (0.29.2)
Run-time dependency x11 found: YES 1.7.5
Run-time dependency wayland-client found: YES 1.20.0
Run-time dependency dbus-1 found: YES 1.12.20
Run-time dependency xkbcommon found: YES 1.4.0
Run-time dependency threads found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-declarations: 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 -Wno-missing-field-initializers: YES
Compiler for C++ supports arguments -Werror=missing-declarations: 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 -Wno-non-virtual-dtor: YES
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES
Checking for function "dlopen" : YES
Checking for function "clock_gettime" : YES
Executing subproject vulkan-headers
vulkan-headers| Project name: vulkan-headers
vulkan-headers| Project version: 1.2.158
vulkan-headers| C compiler for the host machine: gcc -m32 (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
vulkan-headers| C linker for the host machine: gcc -m32 ld.bfd 2.38
vulkan-headers| Build targets in project: 1
vulkan-headers| Subproject vulkan-headers finished.
Checking for size of "void*" : 4
Executing subproject imgui
imgui| Project name: imgui
imgui| Project version: 1.89.9
imgui| C++ compiler for the host machine: g++ -m32 (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
imgui| C++ linker for the host machine: g++ -m32 ld.bfd 2.38
imgui| Library d3dcompiler found: NO
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| Dependency appleframeworks (modules: Foundation, AppKit, GameController, Metal) skipped: feature metal disabled
imgui| Dependency gl skipped: feature opengl disabled
imgui| Dependency sdl2 skipped: feature sdl_renderer disabled
imgui| Dependency vulkan skipped: feature vulkan disabled
imgui| Has header "webgpu/webgpu.h" skipped: feature webgpu disabled
imgui| Dependency glfw3 skipped: feature glfw disabled
imgui| Dependency sdl2 skipped: feature sdl2 disabled
imgui| Dependency appleframeworks (modules: Carbon, Cocoa, GameController) skipped: feature osx disabled
imgui| Library dwmapi skipped: feature win disabled
imgui| Dependency allegro-5 skipped: feature allegro5 disabled
imgui| Dependency allegro_primitives-5 skipped: feature allegro5 disabled
imgui| Build targets in project: 3
imgui| Subproject imgui finished.
Executing subproject implot
implot| Project name: ImGui Plotting Library
implot| Project version: 0.16
implot| C++ compiler for the host machine: g++ -m32 (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
implot| C++ linker for the host machine: g++ -m32 ld.bfd 2.38
implot| Build targets in project: 4
implot| Subproject implot finished.
Library spdlog skipped: feature use_system_spdlog disabled
Executing subproject spdlog
spdlog| Project name: spdlog
spdlog| Project version: 1.13.0
spdlog| C++ compiler for the host machine: g++ -m32 (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
spdlog| C++ linker for the host machine: g++ -m32 ld.bfd 2.38
spdlog| Dependency threads found: YES unknown (cached)
spdlog| Header <format> has symbol "__cpp_lib_format" skipped: feature std_format disabled
spdlog| Dependency fmt skipped: feature external_fmt disabled
spdlog| Build targets in project: 5
spdlog| Subproject spdlog finished.
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency nlohmann_json found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency nlohmann_json
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: g++ -m32 (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
nlohmann_json| C++ linker for the host machine: g++ -m32 ld.bfd 2.38
nlohmann_json| Build targets in project: 5
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/local/bin/glslangValidator)
Program git found: YES (/usr/bin/git)
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: NO
Compiler for C supports link arguments -static-libstdc++: 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.x86.json using configuration
Configuring mangohud using configuration
Program appstreamcli found: YES (/usr/bin/appstreamcli)
Build targets in project: 11
MangoHud v0.7.1
Subprojects
imgui : YES
implot : YES
nlohmann_json : YES
spdlog : YES
vulkan-headers : YES
User defined options
libdir : lib/mangohud/lib32
prefix : /usr
werror : true
append_libdir_mangohud: false
Found ninja-1.10.1 at /usr/bin/ninja
ninja: Entering directory `build/meson64'
[1/114] Generating src/overlay.frag.spv.h with a custom command
../../src/overlay.frag
[3/114] Generating src/overlay.vert.spv.h with a custom command
../../src/overlay.vert
[9/114] Compiling C++ object src/libMangoHud.a.p/shell.cpp.o
FAILED: src/libMangoHud.a.p/shell.cpp.o
c++ -Isrc/libMangoHud.a.p -Isrc -I../../src -I../../include -Isubprojects/imgui-1.89.9 -I../../subprojects/imgui-1.89.9 -I../../subprojects/imgui-1.89.9/backends -I../../subprojects/spdlog-1.13.0/include -I../../subprojects/Vulkan-Headers-1.2.158/include -I../../subprojects/nlohmann_json-3.10.5/single_include -Isubprojects/implot-0.16 -I../../subprojects/implot-0.16 -I. -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Werror -std=c++14 -O3 -Werror=missing-declarations -Werror=return-type -Wno-unused-parameter -fno-math-errno -fno-trapping-math -Wno-non-virtual-dtor -Wno-missing-field-initializers -fPIC -pthread '-DIMGUI_API=__attribute__((visibility("default")))' -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="v0.7.1"' -DSPDLOG_COMPILED_LIB -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG -D_GNU_SOURCE -DHAVE_PTHREAD -DUSE_GCC_ATOMIC_BUILTINS -DHAVE_TIMESPEC_GET -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE '-DMANGOHUD_ARCH="64bit"' -DHAVE_NVML -DHAVE_XNVCTRL -DHAVE_X11 -DHAVE_WAYLAND -DHAVE_DBUS -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -MD -MQ src/libMangoHud.a.p/shell.cpp.o -MF src/libMangoHud.a.p/shell.cpp.o.d -o src/libMangoHud.a.p/shell.cpp.o -c ../../src/shell.cpp
../../src/shell.cpp: In constructor ‘Shell::Shell()’:
../../src/shell.cpp:40:9: error: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
40 | pipe(to_shell);
| ~~~~^~~~~~~~~~
../../src/shell.cpp:41:9: error: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
41 | pipe(from_shell);
| ~~~~^~~~~~~~~~~~
In file included from ../../src/shell.cpp:1:
../../src/shell.h: In member function ‘void Shell::writeCommand(const string&)’:
../../src/shell.h:25:14: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
25 | write(to_shell[1], command.c_str(), command.length());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/shell.cpp: In destructor ‘Shell::~Shell()’:
../../src/shell.cpp:69:10: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
69 | write(to_shell[1], "exit\n", 5);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[26/114] Compiling C++ object subprojects/implot-0.16/libimplot.a.p/implot_items.cpp.o
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment