C / C++ & CMake
CMake, Make, and compiler/linker errors - fixed.
Fix C/C++ CI failures: CMake configuration, Make errors, compiler and linker failures, and missing library/header issues.
CMake & Make
Configure, generate, build errors.
"undeclared inclusion(s) in rule"Fix Bazel "undeclared inclusion(s) in rule" in CI - a C++ target includes a header not listed in its srcs, hd…
Bazel C++ toolchain errorFix Bazel "no matching toolchains" / "Cannot find gcc" for cc rules in CI - Bazel could not resolve a C++ too…
"ccache: failed to create temporary file"Fix ccache "failed to create temporary file" in CI - ccache could not write to its cache or temp directory: a…
"CMAKE_MAKE_PROGRAM ... ninja"Fix CMake "-G Ninja" failing because ninja is not installed in CI - the Ninja generator needs the ninja execu…
"By not providing FindX.cmake"Fix CMake "By not providing FindX.cmake ... could not find a package configuration file provided by X" in CI…
"Cannot find source file"Fix CMake "Cannot find source file" in CI - a file listed in add_executable/add_library does not exist at the…
"requires a newer version of CMake"Fix CMake errors about requiring a newer CMake version in CI - cmake_minimum_required or a dependency demands…
"CMAKE_CXX_COMPILER not set"Fix CMake "CMAKE_CXX_COMPILER not set, after EnableLanguage" in CI - no C++ compiler was found because the to…
"CMAKE_MAKE_PROGRAM is not set"Fix CMake "CMAKE_MAKE_PROGRAM is not set" in CI - CMake could not find the build tool for the chosen generato…
"Could NOT find <Package>"Fix CMake "Could NOT find <Package> (missing: <Package>_DIR)" in CI - a find_package() dependency is not inst…
"Could not find a package configuration file"Fix CMake "Could not find a package configuration file provided by X" in CI - find_package(CONFIG) cannot loc…
"Could NOT find Boost"Fix CMake "Could NOT find Boost (missing: Boost_INCLUDE_DIR ...)" in CI - find_package(Boost) cannot locate B…
"could not find cmake_minimum_required"Fix CMake "could not find a cmake_minimum_required command" in CI - the call is missing or comes after projec…
"could not find CMAKE_ROOT"Fix CMake "CMake Error: could not find CMAKE_ROOT" in CI - the cmake binary cannot locate its own module dire…
"could not find CMAKE_ROOT"Fix CMake "could not find CMAKE_ROOT" in CI - the cmake binary cannot locate its own module and template dire…
"Could NOT find PkgConfig"Fix CMake "Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)" in CI - the pkg-config executable is no…
"Could NOT find Threads"Fix CMake "Could NOT find Threads" in CI - the threads probe failed because no working compiler or pthread su…
"Could not find toolchain file"Fix CMake "Could not find toolchain file" in CI - the path passed to CMAKE_TOOLCHAIN_FILE does not exist on t…
"Could not find toolchain file"Fix CMake "Could not find toolchain file" in CI - CMAKE_TOOLCHAIN_FILE points at a path that does not exist o…
"CUDA_ARCHITECTURES is empty"Fix CMake "CUDA_ARCHITECTURES is empty for target" in CI - CMake 3.18+ requires an explicit CUDA architecture…
"does not appear to contain CMakeLists.txt"Fix CMake "The source directory ... does not appear to contain CMakeLists.txt" in CI - wrong -S path, missing…
"does not appear to contain CMakeLists.txt"Fix CMake "The source directory ... does not appear to contain CMakeLists.txt" in CI - cmake was pointed at a…
"Could not find <Package>"Fix CMake "Could not find a package configuration file provided by X" / "Could NOT find X" in CI - the librar…
"Flow control ... not properly nested"Fix CMake "Flow control statements are not properly nested" in CI - an if/foreach/function block is missing o…
"Found unsuitable Qt version"Fix CMake "Found unsuitable Qt version X" in CI - find_package located a Qt that does not match the version t…
"does not match the generator"Fix CMake "Error: generator : Ninja does not match the generator used previously: Unix Makefiles" in CI - a c…
"CMAKE_MAKE_PROGRAM not found"Fix CMake "Ninja" generator errors in CI - the Ninja build tool is not installed, so CMake cannot use the -G…
"INTERFACE_INCLUDE_DIRECTORIES does not exist"Fix CMake "Imported target ... INTERFACE_INCLUDE_DIRECTORIES ... does not exist" in CI - a package config poi…
"Permission denied" on installFix "CMake Error: install ... Permission denied" in CI - the install step tried to write to a system prefix t…
"install TARGETS ... does not exist"Fix CMake "install TARGETS given target X which does not exist" in CI - install() references a target that wa…
"Ninja" ... could not be foundFix CMake "CMAKE_MAKE_PROGRAM is not set" / Ninja not found in CI - the Ninja generator was requested but the…
"No CMAKE_C_COMPILER could be found"Fix CMake "No CMAKE_C_COMPILER could be found" in CI - configuration failed because no C compiler is installe…
"No CMAKE_C_COMPILER could be found"Fix CMake "No CMAKE_C_COMPILER could be found" in CI - no C compiler is installed or on PATH for the project…
"No CMAKE_CXX_COMPILER"Fix CMake "No CMAKE_CXX_COMPILER could be found" / "No CMAKE_C_COMPILER" in CI - a C++ compiler is not instal…
"No CMAKE_CXX_COMPILER could be found"Fix CMake "No CMAKE_CXX_COMPILER could be found" in CI - the configure step found no C++ compiler on the runn…
"No CMAKE_CXX_COMPILER could be found"Fix CMake "No CMAKE_CXX_COMPILER could be found" in CI - the runner has no C++ compiler installed, or CMake c…
"No such preset"Fix CMake preset errors in CI - "No such preset in CMakePresets.json" or an unsupported version field because…
"pkg-config ... NOTFOUND"Fix CMake "pkg-config not found" in CI - find_package(PkgConfig) failed because the pkg-config tool is not in…
"Policy CMP0XXX is not set"Fix CMake "Policy CMP0XXX is not set" warnings that fail CI - a behavior changed in a newer CMake and the pro…
"does not appear to contain CMakeLists.txt"Fix CMake "The source directory does not appear to contain CMakeLists.txt" in CI - CMake was pointed at the w…
"Invalid character escape"Fix CMake "Syntax error in cmake code ... Invalid character escape" in CI - a backslash in a quoted argument,…
"links to ... but the target was not found"Fix CMake "Target links to target X but the target was not found" in CI - target_link_libraries references an…
"incorrect number of arguments"Fix CMake "target_link_libraries called with incorrect number of arguments" in CI - the command is missing it…
"target not built by this project"Fix CMake "target_link_libraries called with ... which is not built by this project" in CI - the named librar…
"not able to compile a simple test program"Fix CMake "The C++ compiler is not able to compile a simple test program" in CI - the compiler check at confi…
"is not able to compile a simple test program"Fix CMake "The C++ compiler is not able to compile a simple test program" (ABI detection) in CI - the toolcha…
"set to NOTFOUND"Fix CMake "The following variables are used in this project, but they are set to NOTFOUND" in CI - a required…
"Unknown CMake command"Fix CMake "Unknown CMake command" in CI - a command from an uninclude()d module, a newer CMake feature on an…
"or higher is required"Fix CMake "CMake X or higher is required. You are running Y" in CI - the runner CMake is older than the proje…
"invoked with incorrect arguments"Fix CMake "function invoked with incorrect arguments for function named: X" in CI - a command received the wr…
"fatal error: X.h: No such file or directory"Fix "fatal error: X.h: No such file or directory" during a CMake build in CI - the compiler cannot find a hea…
find_package needs CMAKE_PREFIX_PATHFix find_package failing in CI because a dependency in a custom prefix is not on CMAKE_PREFIX_PATH - CMake se…
stale CMakeCache.txtFix CMake "does not match the generator used previously" and stale CMakeCache.txt errors in CI - a reused bui…
empty CMAKE_BUILD_TYPEFix an empty or misspelled CMAKE_BUILD_TYPE in CI - single-config generators build unoptimized or with unexpe…
FetchContent "Failed to download"Fix CMake FetchContent "Failed to download" / clone errors in CI - the configure step could not fetch a depen…
"Could NOT find X (missing: ...)"Fix CMake "Could NOT find X (missing: X_LIBRARY X_INCLUDE_DIR)" in CI - find_package located no development f…
compiler "Killed" (out of memory)Fix "c++: fatal error: Killed signal terminated program cc1plus" during a parallel CMake build in CI - too ma…
CMAKE_TOOLCHAIN_FILE not foundFix CMake "could not load cache" / cannot find the toolchain file in CI - CMAKE_TOOLCHAIN_FILE points at a vc…
"Authentication error in remote"Fix Conan "ERROR: Authentication error in remote X" in CI - the remote rejected the credentials, usually beca…
"conanfile.txt not found"Fix Conan "ERROR: Conanfile not found" in CI - conan install ran in a directory with no conanfile.txt or cona…
"Missing prebuilt package"Fix Conan "ERROR: Missing prebuilt package for X" in CI - no binary matches your settings, so pass --build=mi…
"package_id" mismatchFix Conan package_id mismatches in CI - the computed package_id changed because a setting, option, or depende…
"Invalid setting"Fix Conan "ERROR: Invalid setting X is not a valid 'settings.compiler.version' value" in CI - the profile nam…
conan v1 vs v2 command mismatchFix Conan "ERROR: Unknown command" or missing subcommands in CI caused by a v1 vs v2 mismatch - conan install…
CPM.cmake fetch failureFix CPM.cmake fetch failures and "Hash mismatch" in CI - FetchContent could not download a dependency, or the…
"recompile with -fPIC"Fix "relocation R_X86_64_... can not be used when making a shared object; recompile with -fPIC" in CI - a sta…
"*** [target] Error 1"Understand make "*** [target] Error 1" in CI - make is reporting that a recipe command exited non-zero. Read…
"*** [target] Error 1"Fix make "*** [target] Error 1" in CI - a recipe command exited non-zero. The number is the exit code; the re…
"Clock skew detected"Fix make "Warning: Clock skew detected. Your build may be incomplete." in CI - source timestamps are in the f…
"Error 1" (recipe failed)Fix make "*** [target] Error 1" in CI - a recipe command exited non-zero; the real failure is the compiler or…
"No rule to make target"Fix make "*** No rule to make target X, needed by Y. Stop." in CI - a prerequisite file is missing and the Ma…
"No rule to make target"Fix make "No rule to make target X, needed by Y" in CI - a prerequisite file is missing and no rule knows how…
"No rule to make target"Fix make "No rule to make target ... needed by ..." in CI - a missing source/header prerequisite, a stale pat…
"Nothing to be done"Fix make "make: Nothing to be done for 'all'" in CI - make ran in the wrong directory, against an unconfigure…
"Nothing to be done for"Fix make "Nothing to be done for target" in CI - make believes the target is up to date or undefined, so the…
"recipe for target ... failed"Understand make "recipe for target ... failed" / "Makefile:NN: recipe for target" in CI - the older wording f…
"build stopped: subcommand failed"Fix Ninja "build stopped: subcommand failed" in CI - a compile or link command exited non-zero. The real erro…
"missing and no known rule to make it"Fix Ninja "error: X, needed by Y, missing and no known rule to make it" in CI - a build input does not exist…
"ninja: error"Fix "ninja: error" in CMake/Ninja CI builds - a missing/dirty build.ninja, a removed input, or a stale genera…
"Could not locate a manifest"Fix vcpkg "error: Could not locate a manifest (vcpkg.json) above the current working directory" in CI - vcpkg…
"error: building X failed"Fix vcpkg "error: building X:triplet failed" in CI - a port failed to compile, usually a missing system build…
"VCPKG_ROOT" not setFix vcpkg "VCPKG_ROOT" not set in CI - CMake or vcpkg cannot find the vcpkg installation because the env var…
"baseline does not match"Fix vcpkg "error: the baseline does not match" / "while checking out baseline" in CI - the builtin-baseline i…
vcpkg binary caching missFix slow vcpkg builds in CI caused by a binary caching miss - without a persisted binary cache, vcpkg rebuild…
vcpkg triplet mismatchFix vcpkg install failures from a triplet mismatch in CI - the requested triplet does not match the runner ar…
Compile
Compiler errors and flags.
"GLIBCXX_3.4.XX not found"Fix "version `GLIBCXX_3.4.XX' not found" in CI - the binary was built against a newer libstdc++ than the runn…
"ccache: command not found"Fix "ccache: command not found" in CI - the compiler launcher is referenced but ccache is not installed on th…
"Could not find compiler"Fix ccache "error: Could not find compiler" in CI - a masquerading symlink named gcc/g++ points back at ccach…
"Read-only file system"Fix ccache "Read-only file system" in CI - CCACHE_DIR points at a mount that is read-only, such as a restored…
"Failed to create temporary file"Fix ccache "error: Failed to create temporary file" in CI - the cache directory is missing, not writable by t…
"Directive ... unsupported"Fix ccache "warning: Unsupported directive" in CI - a ccache.conf option is misspelled or belongs to a differ…
ccache + distcc misconfiguredFix ccache with distcc in CI - the wrong wrapper order or a missing CCACHE_PREFIX means jobs neither cache no…
CCACHE_MAXSIZE full / evictionFix ccache eviction thrashing in CI - the cache exceeds CCACHE_MAXSIZE and older entries are evicted before t…
CCACHE_COMPILERCHECK mismatchFix ccache invalidating the cache after a compiler change in CI - CCACHE_COMPILERCHECK hashes the compiler, s…
Absolute paths defeat ccacheFix ccache cache misses caused by absolute build paths in CI - set CCACHE_BASEDIR so ccache rewrites paths an…
ccache: container user mismatchFix ccache permission errors in container CI - a restored cache owned by root cannot be written by a non-root…
ccache stats: 0 hits (warm cache)Fix ccache reporting zero hits despite a populated cache in CI - the compiler launcher is not actually wired,…
ccache zero hit rate in CIFix ccache showing 0% hit rate in CI - the CCACHE_DIR is not restored between runs, so every job starts with…
"call to undeclared function"Fix clang "error: call to undeclared function ...; ISO C99 and later do not support implicit function declara…
"no member named X in namespace std"Fix clang "error: no member named X in namespace std" in CI - the standard header that declares std::X is not…
"too many errors emitted"Fix clang "too many errors emitted, stopping now" in CI - the compiler hit its error limit and stopped, hidin…
"-Wunused-variable"Fix clang "unused variable X [-Wunused-variable]" promoted to an error in CI - a local variable is declared b…
"was not declared in this scope"Fix g++/clang "error: 'X' was not declared in this scope" in CI - a missing #include, an absent std:: qualifi…
"Killed signal terminated program cc1plus"Fix g++ "fatal error: Killed signal terminated program cc1plus" in CI - the kernel OOM killer terminated the…
"internal compiler error: Killed"Fix g++ "internal compiler error: Killed (program cc1plus)" in CI - the OOM killer terminated the compiler. R…
"virtual memory exhausted"Fix g++ "virtual memory exhausted: Cannot allocate memory" in CI - the compiler hit an address-space/RAM limi…
C++ ABI mismatchFix C++ ABI mismatch in CI - undefined references to std::__cxx11 symbols when objects/libraries are built wi…
"for loop initial declarations"Fix gcc "error: 'for' loop initial declarations are only allowed in C99 or C11 mode" in CI - declaring the lo…
"nullptr was not declared"Fix gcc/clang "error: 'nullptr' was not declared in this scope" in CI - a C++11 feature is used while the com…
"conflicting types for"Fix gcc "error: conflicting types for 'X'" in CI - a function's definition or later declaration disagrees wit…
"implicit declaration of function"Fix gcc "error: implicit declaration of function" in C builds in CI - a function is called without a prior pr…
"-Wdeprecated-copy"Fix gcc "implicitly-declared copy assignment operator ... is deprecated [-Wdeprecated-copy]" promoted to an e…
"multi-character character constant"Fix gcc "warning: multi-character character constant [-Wmultichar]" promoted to an error in CI - single quote…
"-Wmaybe-uninitialized"Fix gcc "X may be used uninitialized [-Wmaybe-uninitialized]" promoted to an error in CI - the optimizer cann…
"does not name a type"Fix gcc/clang "'X' does not name a type" in CI - a type is used before it is declared, usually a missing incl…
"not declared" (modern std header)Fix gcc/clang errors for facilities like std::filesystem or std::optional in CI - the modern standard header…
"array bound is not an integer constant"Fix gcc/clang "array bound is not an integer constant before ']'" in CI - a fixed-size array is sized by a ru…
"call of overloaded ... is ambiguous"Fix gcc/clang "call of overloaded X is ambiguous" in CI - two or more overloads match the arguments equally w…
"non-constexpr function" in constantFix gcc/clang errors where a constant expression calls a non-constexpr function in CI - a constexpr context r…
"cannot bind non-const lvalue reference"Fix gcc/clang "cannot bind non-const lvalue reference of type X& to an rvalue" in CI - a temporary is passed…
"cannot find -lX"Fix gcc/clang "cannot find -lX" during a one-step compile-and-link in CI - the named library is not installed…
"comparison between signed and unsigned"Fix gcc/clang "comparison of integer expressions of different signedness" in CI - a signed/unsigned compariso…
"std::X has not been declared"Fix gcc/clang "error: 'std::X' has not been declared" in CI - a standard library name is used without includi…
"was not declared in this scope"Fix gcc/clang "error: 'X' was not declared in this scope" in CI - the name is unknown at that point because a…
"expected ';' before"Fix gcc/clang "error: expected ';' before ..." in CI - a statement, declaration, or class definition is missi…
"invalid use of incomplete type"Fix gcc/clang "error: invalid use of incomplete type" in CI - a type is forward-declared but its full definit…
"ISO C++ forbids"Fix gcc/clang "error: ISO C++ forbids ..." in CI - a non-standard extension is rejected because the compiler…
"no matching function for call to"Fix gcc/clang "error: no matching function for call to" in CI - no overload matches the argument types you pa…
"redefinition of"Fix gcc/clang "error: redefinition of 'X'" in CI - a function, class, or variable is defined more than once i…
"stray '\357' in program"Fix gcc/clang "error: stray '\357' in program" in CI - a UTF-8 byte-order mark or non-ASCII byte appears wher…
"too few arguments to function"Fix gcc/clang "error: too few arguments to function" in CI - a call passes fewer arguments than the function…
"expected primary-expression before"Fix gcc/clang "expected primary-expression before X token" in CI - the parser expected a value or expression…
"No such file or directory"Fix gcc/clang "fatal error: X.h: No such file or directory" in CI - a header is not installed or its director…
"internal compiler error: Killed"Fix gcc/clang "internal compiler error: Killed (program cc1plus)" in CI - the compiler was OOM-killed mid-com…
"invalid conversion from const char*"Fix gcc/clang "invalid conversion from 'const char*' to 'char*'" in CI - a string literal or const pointer is…
"crosses initialization of"Fix gcc/clang "jump to case label crosses initialization of X" in CI - a switch case enters a scope past a va…
"narrowing conversion"Fix gcc/clang "narrowing conversion of X inside { }" in CI - brace initialization forbids implicit narrowing…
"no match for operator<<"Fix gcc/clang "no match for 'operator<<'" in CI - a type is streamed with << but no suitable overload exists,…
"no matching function" (explicit)Fix gcc/clang "no matching function for call to" caused by an explicit constructor in CI - an implicit conver…
"discards qualifiers"Fix gcc/clang "passing 'const X' as 'this' argument discards qualifiers" in CI - a non-const member function…
"redefinition of class"Fix gcc/clang "redefinition of 'class X'" in CI - a class is defined twice in one translation unit, usually a…
"static assertion failed"Fix gcc/clang "static assertion failed" in CI - a static_assert condition evaluated false at compile time, de…
"non-constant condition for static assertion"Fix gcc/clang "non-constant condition for static assertion" in CI - static_assert was given a condition that…
"taking address of temporary"Fix gcc/clang "taking address of temporary" in CI - the address of a temporary or rvalue is taken, producing…
"deduction/substitution failed"Fix gcc/clang "template argument deduction/substitution failed" in CI - a template candidate was rejected bec…
"use of deleted function"Fix gcc/clang "use of deleted function" in CI - code calls a function explicitly deleted or implicitly delete…
"virtual memory exhausted"Fix gcc/clang "virtual memory exhausted: Cannot allocate memory" in CI - the compiler ran out of address spac…
"treated as error"Fix gcc/clang "warning treated as error" with -Werror in CI - a warning that is tolerated locally fails the b…
"fatal error: X.h: No such file"Fix gcc/g++/clang "fatal error: X.h: No such file or directory" in CI - a missing -dev package or an include…
"unrecognized command-line option"Fix gcc/g++/clang "unrecognized command-line option" / "invalid value for -std=" in CI - a flag the installed…
"Compiler not supported"Fix sccache "error: Compiler not supported" in CI - sccache could not recognize the compiler or an unsupporte…
"failed to execute compile"Fix sccache "error: failed to execute compile" in CI - sccache could not run or communicate with its server t…
"failed to store"Fix sccache "failed to store" in CI - compilation results are computed but cannot be written to the backend,…
"Server startup failed"Fix sccache "error: Server startup failed" in CI - the background server could not bind, initialize its backe…
"sccache: error: Storage error"Fix sccache "error: Storage error" in CI - the S3, GCS, or Redis backend rejected the request because of miss…
"Timed out waiting for server"Fix sccache "error: Timed out waiting for server startup" and "cannot connect to server" in CI - the client c…
CARGO_INCREMENTAL defeats sccacheFix sccache getting zero cache hits in Rust CI - cargo incremental compilation bypasses sccache, so set CARGO…
SCCACHE_GHA_ENABLED not cachingFix the sccache GitHub Actions cache backend in CI - without SCCACHE_GHA_ENABLED and the Actions cache token…
RUSTC_WRAPPER not picked upFix cargo ignoring RUSTC_WRAPPER=sccache in CI - the wrapper env is set on the wrong step or overridden by bu…
Link & libraries
Linker errors, missing libs.
"undefined symbol"Fix runtime "symbol lookup error: ... undefined symbol" in C++ CI - an ABI/version skew between a shared libr…
"collect2: error: ld returned 1"Understand "collect2: error: ld returned 1 exit status" in CI - the summary that the linker failed. The real…
"collect2: error: ld returned 1"Fix gcc "collect2: error: ld returned 1 exit status" in CI - a summary line that means the linker failed; the…
"lto1: fatal error"Fix gcc "lto1: fatal error" in CI - link-time optimization failed because objects were built with a different…
"cannot find -lX"Fix ld "cannot find -lX" in CI - the linker could not locate a requested library because it is not installed…
"cannot find -lXXX"Fix linker "/usr/bin/ld: cannot find -lXXX" in CI - the library to link is not installed or not on the linker…
"cannot find crtbeginS.o"Fix ld "cannot find crtbeginS.o" or "cannot find crt1.o" in CI - the C runtime startup objects are missing be…
"directory not found for option -L"Fix ld "directory not found for option '-L...'" in CI - a library search path passed with -L does not exist o…
"DSO missing from command line"Fix ld "DSO missing from command line" in CI - a symbol resolves through a shared library that was relied on…
"No space left on device"Fix ld "cannot open output file ...: No space left on device" or "final link failed: No space left on device"…
"ld: Killed" (out of memory)Fix ld being OOM-killed in CI - linking a large binary (especially with debug info or LTO) exhausted runner m…
"multiple definition of"Fix ld "multiple definition of 'X'" in CI - the same symbol is defined in more than one object file, breaking…
"multiple definition of"Fix linker "multiple definition of <symbol>" in CI - a non-inline function or variable defined in a header, o…
"relocation ... can not be used"Fix ld "relocation R_X86_64_32 against ... can not be used when making a shared object; recompile with -fPIC"…
"recompile with -fPIC"Fix ld "relocation R_X86_64_PC32 ... can not be used when making a shared object; recompile with -fPIC" in CI…
"skipping incompatible"Fix ld "skipping incompatible /path/libX.so when searching for -lX" in CI - a library of the wrong architectu…
"symbol(s) not found"Fix ld "symbol(s) not found for architecture x86_64" in CI - the macOS linker has undefined symbols, often a…
"undefined reference to"Fix ld "undefined reference to 'X'" in CI - the linker found a declaration but no definition, usually a missi…
"undefined reference to clock_gettime"Fix ld "undefined reference to `clock_gettime'" or `shm_open' in CI - these POSIX functions live in librt on…
"undefined reference to dlopen"Fix ld "undefined reference to `dlopen'" in CI - the dynamic loading functions live in libdl, which must be l…
"undefined reference to main"Fix ld "undefined reference to `main'" in CI - the link produced an executable with no main, usually because…
"undefined reference to pthread_create"Fix ld "undefined reference to pthread_create" in CI - threading code linked without -pthread, so the POSIX t…
"undefined reference to SSL_/EVP_"Fix ld "undefined reference to SSL_new / EVP_*" in CI - OpenSSL is missing or listed before the objects that…
"undefined reference to std::__throw"Fix ld "undefined reference to std::__throw_..." in CI - objects built against a newer libstdc++ are linked t…
"undefined reference to std::filesystem"Fix ld "undefined reference to std::filesystem" in CI - older GCC/Clang ship filesystem in a separate library…
"undefined reference to vtable"Fix ld "undefined reference to vtable for X" in CI - a polymorphic class has an undefined first non-inline vi…
"undefined reference to"Fix linker "undefined reference to <symbol>" in CI - a missing library on the link line, wrong link order, or…
"cannot open linker script"Fix ld "cannot open linker script X: No such file or directory" in CI - a -T linker script path is wrong or t…
"needed by ..., not found"Fix ld "warning: libX.so.N, needed by Y, not found (try using -rpath ...)" in CI - a dependency of a library…
"ld.gold: cannot find -lX"Fix ld.gold "error: cannot find -lX" in CI - the gold linker cannot locate a library because it is missing or…
"version GLIBC_X not found"Fix "version GLIBC_2.XX not found" in CI - a binary or library built against a newer glibc is run on an image…
"cannot find -lX"Fix linker "cannot find -lX" in CI - the linker was asked to link a library that is not installed or not on t…
"undefined reference to"Fix linker "undefined reference to X" in CI - the symbol was declared but never linked, usually a missing -l…
"_GLIBCXX_USE_CXX11_ABI"Fix "undefined reference to ...__cxx11..." / _GLIBCXX_USE_CXX11_ABI mismatches in CI - objects built with dif…
"-fuse-ld=mold: not found"Fix "-fuse-ld=mold" errors in CI - mold is not installed or the compiler is too old to accept -fuse-ld=mold,…
"mold: fatal: ..."Fix "mold: fatal: cannot open output file" in CI - mold cannot write the linked binary because of a missing d…
mold ignored, ld runs insteadFix a build that still uses the default ld instead of mold in CI - the linker flag was not passed to the link…
"No package 'x' found"Fix pkg-config "No package 'x' found" in CI - pkg-config could not locate the .pc file for a library, usually…
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.