Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mold fails to build on Debian sid on most of the archs (error: implicit declaration of function) #1279

Open
sylvestre opened this issue Jun 14, 2024 · 0 comments

Comments

@sylvestre
Copy link
Contributor

I am aware that it is in thirdparty code but mold is failing to build on most of Debian architectures with gcc 13 with:


In file included from /<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/prim.c:25:
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c: In function ‘_mi_prim_getenv’:
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c:737:19: error: implicit declaration of function ‘getenv’ [-Werror=implicit-function-declaration]
  737 |   const char* s = getenv(name);
      |                   ^~~~~~
/<<PKGBUILDDIR>>/third-party/mimalloc/src/prim/unix/prim.c:618:1: note: ‘getenv’ is defined in header ‘<stdlib.h>’; did you forget to ‘#include <stdlib.h>’?

See
https://buildd.debian.org/status/package.php?p=mold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant