Error map

no such target Bazel: ERROR: no such target '//pkg:name': target 'name' not declared in package 'pkg'

C/C++ · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

no such target — Bazel: ERROR: no such target '//pkg:name': target 'name' not declared in package 'pkg' (C/C++)no such tar…undefined reference to main — C/C++: undefined reference to `main' — (.text+0x20) in crt1.o (C/C++)undefined reference…fatal error: No such file or directory — C/C++: fatal error: foo.h: No such file or directory — #include not found (C/C++)fatal error: No suc…Could not find a package configuration file — CMake Error: Could not find a package configuration file provided by "Foo" (requested version 1.2) (C/C++)Could not find a pa…undefined reference to — C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status (C/C++)undefined reference…redefinition of — C++: error: redefinition of 'class X' / multiple definition — missing include guard (C/C++)redefinition ofnot a member of std — C++: error: 'optional' in namespace 'std' does not name a template type — wrong -std standard (C/C++)not a member of stdCMake Error: CMAKE_C_COMPILER not set / No CMAKE_CXX_COMPILER could be found — CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles" (macOS)CMake Error: CMAKE_…function main is undeclared in the main package — Go: runtime.main_main·f: function main is undeclared in the main package (Go)function main is un…cgo: C compiler gcc not found — Go: cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH (Go)cgo: C compiler gcc…No rule to make target — Make: *** No rule to make target 'foo.c', needed by 'foo.o'. Stop. (C/C++)No rule to make tar…missing separator — Make: Makefile:5: *** missing separator. Stop. (spaces instead of a tab) (C/C++)missing separatorno Go files in directory — Go: package app/cmd: no Go files in /app/cmd / build constraints exclude all Go files (Go)no Go files in dire…multiple definition of — C/C++: multiple definition of `x'; first defined here — ld returned 1 exit status (C/C++)multiple definition…undefined reference to vtable — C++: undefined reference to `vtable for X' — virtual function not defined (C/C++)undefined reference…undefined reference to pthread_create — C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`) (C/C++)undefined reference…command not found — bash: command not found (Linux)command not foundC1083 — MSVC: fatal error C1083: Cannot open include file: 'foo.h': No such file or directory (C/C++)C1083does not appear to contain CMakeLists.txt — CMake Error: The source directory does not appear to contain CMakeLists.txt (C/C++)does not appear to …undefined reference to curl_easy_init — undefined reference to `curl_easy_init' / `SSL_new' / `EVP_...' (library not linked) (C/C++)undefined reference…No CMAKE_CXX_COMPILER could be found — CMake Error: No CMAKE_CXX_COMPILER could be found (C/C++)No CMAKE_CXX_COMPIL…target was not found — CMake Error: Target "app" links to target "Foo::Foo" but the target was not found (C/C++)target was not foundELIFECYCLE — npm ERR! code ELIFECYCLE / Command failed with exit code 1 (npm)ELIFECYCLEgyp ERR! — gyp ERR! build error / node-gyp rebuild failed (npm)gyp ERR!COPY failed — COPY failed: file not found in build context / "/app/x": not found (Docker)COPY failedincomplete type — C++: error: invalid use of incomplete type 'class X' — forward declaration only (C/C++)incomplete typeimplicit declaration of function — C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration] (C/C++)implicit declaratio…expected class-name — C++: error: expected class-name before '{' token (C/C++)expected class-namewas not declared in this scope — C++: error: 'x' was not declared in this scope (undeclared identifier) (C/C++)was not declared in…does not name a type — C++: error: 'string' does not name a type (C/C++)does not name a typeonly available with — C++: warning: structured bindings / inline variables only available with '-std=c++17' or '-std=gnu++17' (C/C++)only available withERR_OSSL_EVP_UNSUPPORTED — Error: error:0308010C:digital envelope routines::unsupported (Node.js)ERR_OSSL_EVP_UNSUPP…prisma generate — Error: @prisma/client did not initialize yet. Please run "prisma generate" (Node.js)prisma generatenode-sass — Error: Node Sass does not yet support your current environment (Node.js)node-sassdid not complete successfully — failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1 (Docker)did not complete su…failed to read dockerfile — failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory (Docker)failed to read dock…unknown instruction — Dockerfile parse error line N: unknown instruction (Docker)unknown instructionexec format error — exec /usr/local/bin/docker-entrypoint.sh: exec format error (Docker)exec format errormax depth exceeded — Error response from daemon: max depth exceeded (too many image layers) (Docker)max depth exceededlookup registry-1.docker.io: no such host — dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build (Docker)lookup registry-1.d…No targets specified and no makefile found — make: *** No targets specified and no makefile found. Stop. (C/C++)No targets specifie…C compiler cannot create executables — configure: error: C compiler cannot create executables / no acceptable C compiler found in $PATH (C/C++)C compiler cannot c…Killed signal terminated program cc1plus — g++: fatal error: Killed signal terminated program cc1plus — compilation terminated (out of memory) (C/C++)Killed signal termi…not found in the pkg-config search path — Package 'glib-2.0' was not found in the pkg-config search path / configure: error: Package requirements were not met (C/C++)not found in the pk…Unsupported gpu architecture — nvcc fatal: Unsupported gpu architecture 'compute_90' (C/C++)Unsupported gpu arc…Dependency not found — meson.build: ERROR: Dependency "x" not found, tried pkgconfig and cmake (C/C++)Dependency not foundforbidden path outside the build context — COPY failed: forbidden path outside the build context: ../file (Docker)forbidden path outs…Sending build context — Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever (Docker)Sending build conte…cannot assign to struct field m[k].f in map — Go: cannot assign to struct field users["bob"].Age in map (Go)cannot assign to st…

Directly related (12)

undefined reference to mainC/C++

C/C++: undefined reference to `main' — (.text+0x20) in crt1.o

The linker has no `main` function: the file with `main` is not compiled or linked, or `main` is spelled or declared incorrectly.

fatal error: No such file or directoryC/C++

C/C++: fatal error: foo.h: No such file or directory — #include not found

The preprocessor cannot find a header named in `#include`: wrong path, missing include directory (-I), or the library is not inst…

Could not find a package configuration fileC/C++

CMake Error: Could not find a package configuration file provided by "Foo" (requested version 1.2)

`find_package(Foo)` could not locate the library's CMake config (FooConfig.cmake or FindFoo.cmake), so the library is not install…

undefined reference toC/C++

C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status

The linker can’t find the definition of a function or variable that was declared and used.

redefinition ofC/C++

C++: error: redefinition of 'class X' / multiple definition — missing include guard

The same class, struct or function body was included twice in one translation unit because the header has no include guard.

not a member of stdC/C++

C++: error: 'optional' in namespace 'std' does not name a template type — wrong -std standard

The standard-library feature you used needs a newer C++ standard than the compiler is currently set to.

CMake Error: CMAKE_C_COMPILER not set / No CMAKE_CXX_COMPILER could be foundmacOS

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles"

CMake can't find a compiler or build tool.

function main is undeclared in the main packageGo

Go: runtime.main_main·f: function main is undeclared in the main package

The package is named `main` but contains no `func main()`, or you tried to build a library as an executable.

cgo: C compiler gcc not foundGo

Go: cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH

A package using cgo needs a C compiler, but none is installed or CGO is disabled.

No rule to make targetC/C++

Make: *** No rule to make target 'foo.c', needed by 'foo.o'. Stop.

`make` was asked to build a file for which there is no rule and no existing file — a missing source, a typo in the Makefile, or a…

missing separatorC/C++

Make: Makefile:5: *** missing separator. Stop. (spaces instead of a tab)

A line in the Makefile is neither a rule, a variable assignment nor a tab-indented command — nearly always spaces used where a TA…

no Go files in directoryGo

Go: package app/cmd: no Go files in /app/cmd / build constraints exclude all Go files

The directory you asked Go to build contains no buildable `.go` files.

Two steps away (36)

multiple definition ofC/C++

C/C++: multiple definition of `x'; first defined here — ld returned 1 exit status

The linker found the same function or global variable defined in two object files — usually something defined in a header.

undefined reference to vtableC/C++

C++: undefined reference to `vtable for X' — virtual function not defined

The linker cannot find the class's virtual table, which means at least one virtual member function was declared but never defined…

undefined reference to pthread_createC/C++

C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`)

Your program uses threads (or another system library) but the linker was not told to link it.

command not foundLinux

bash: command not found

The shell can’t find an executable with that name in any directory on your PATH.

C1083C/C++

MSVC: fatal error C1083: Cannot open include file: 'foo.h': No such file or directory

The compiler cannot find a header.

does not appear to contain CMakeLists.txtC/C++

CMake Error: The source directory does not appear to contain CMakeLists.txt

CMake was run in or pointed at a folder without a top-level CMakeLists.txt.

undefined reference to curl_easy_initC/C++

undefined reference to `curl_easy_init' / `SSL_new' / `EVP_...' (library not linked)

A third-party library header was included, but the library itself was never linked.

No CMAKE_CXX_COMPILER could be foundC/C++

CMake Error: No CMAKE_CXX_COMPILER could be found

CMake cannot find a C++ compiler.

target was not foundC/C++

CMake Error: Target "app" links to target "Foo::Foo" but the target was not found

A link target does not exist because the package was not found or the name is wrong.

ELIFECYCLEnpm

npm ERR! code ELIFECYCLE / Command failed with exit code 1

An npm script (build, start, test, postinstall) exited with an error. ELIFECYCLE is only the wrapper — the real error is printed…

gyp ERR!npm

gyp ERR! build error / node-gyp rebuild failed

A dependency with native C/C++ code couldn’t compile — missing build tools, Python, or an unsupported Node version.

COPY failedDocker

COPY failed: file not found in build context / "/app/x": not found

The Dockerfile COPY refers to a path outside the build context, excluded by .dockerignore, or relative to the wrong directory.

incomplete typeC/C++

C++: error: invalid use of incomplete type 'class X' — forward declaration only

You used a class that has only been forward-declared (so its size and members are unknown) where the full definition is required.

implicit declaration of functionC/C++

C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration]

In C you called a function the compiler has not seen declared — usually a missing `#include`. Newer compilers treat it as an erro…

expected class-nameC/C++

C++: error: expected class-name before '{' token

A base-class list or declaration expects a class name but found something else.

was not declared in this scopeC/C++

C++: error: 'x' was not declared in this scope (undeclared identifier)

The compiler met a name it has never seen: it is misspelled, declared later, out of scope, or its header or namespace is missing.

does not name a typeC/C++

C++: error: 'string' does not name a type

Where the compiler expected a type, it found a name it does not know as one — a missing header, namespace, or class declared late…

only available withC/C++

C++: warning: structured bindings / inline variables only available with '-std=c++17' or '-std=gnu++17'

A newer language feature was used but the compiler is building in an older standard mode.

ERR_OSSL_EVP_UNSUPPORTEDNode.js

Error: error:0308010C:digital envelope routines::unsupported

An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.

prisma generateNode.js

Error: @prisma/client did not initialize yet. Please run "prisma generate"

The generated Prisma Client is missing or out of date.

node-sassNode.js

Error: Node Sass does not yet support your current environment

node-sass (deprecated) has no binary for your Node version/OS.

did not complete successfullyDocker

failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1

A RUN step in your Dockerfile failed. The real error is printed in the lines just above this message.

failed to read dockerfileDocker

failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory

docker build can’t find a Dockerfile in the build context you passed.

unknown instructionDocker

Dockerfile parse error line N: unknown instruction

A line in the Dockerfile doesn’t start with a valid instruction — usually a broken line continuation or a typo.

exec format errorDocker

exec /usr/local/bin/docker-entrypoint.sh: exec format error

The container tried to run a binary built for a different CPU architecture (arm64 vs amd64) — or a script with a broken shebang /…

max depth exceededDocker

Error response from daemon: max depth exceeded (too many image layers)

The image has more layers than the storage driver allows (127 for overlay2), usually from repeatedly committing containers or ver…

lookup registry-1.docker.io: no such hostDocker

dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build

DNS isn’t working for the Docker daemon or inside build containers, so pulls and package downloads fail.

No targets specified and no makefile foundC/C++

make: *** No targets specified and no makefile found. Stop.

`make` ran in a folder without a Makefile.

C compiler cannot create executablesC/C++

configure: error: C compiler cannot create executables / no acceptable C compiler found in $PATH

The autoconf check could not build a test program.

Killed signal terminated program cc1plusC/C++

g++: fatal error: Killed signal terminated program cc1plus — compilation terminated (out of memory)

The compiler was killed, almost always by the out-of-memory killer.

not found in the pkg-config search pathC/C++

Package 'glib-2.0' was not found in the pkg-config search path / configure: error: Package requirements were not met

pkg-config cannot find the .pc file of a dependency.

Unsupported gpu architectureC/C++

nvcc fatal: Unsupported gpu architecture 'compute_90'

The CUDA compiler version does not know the GPU architecture you asked for.

Dependency not foundC/C++

meson.build: ERROR: Dependency "x" not found, tried pkgconfig and cmake

Meson could not locate a required library.

forbidden path outside the build contextDocker

COPY failed: forbidden path outside the build context: ../file

A COPY/ADD tries to read a file above the build context (../something); Docker only sends the context folder to the builder.

Sending build contextDocker

Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever

docker build is uploading your whole project folder — node_modules, .git, data files — before building, because there’s no (or a…

cannot assign to struct field m[k].f in mapGo

Go: cannot assign to struct field users["bob"].Age in map

Map values are not addressable, so you cannot modify a field of a struct stored directly in a map.