fatal error: 'stdlib.h' file not found #5151

Closed
opened 2025-11-02 06:16:06 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @Inniss0903 on GitHub (Mar 30, 2020).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use []):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

fatal error: 'stdlib.h' file not found
It always happens when I use VSCode to build bindata or run test.
By the way, my computer is mac.
...

Screenshots

image

Originally created by @Inniss0903 on GitHub (Mar 30, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description fatal error: 'stdlib.h' file not found It always happens when I use VSCode to build bindata or run test. By the way, my computer is mac. ... ## Screenshots ![image](https://user-images.githubusercontent.com/33971175/77915221-a7f3ff00-72c9-11ea-9212-67c52592b3ce.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 06:16:06 -06:00
Author
Owner

@mrsdizzie commented on GitHub (Mar 31, 2020):

You probably need to install MacOS development tools:

xcode-select --install

@mrsdizzie commented on GitHub (Mar 31, 2020): You probably need to install MacOS development tools: ```xcode-select --install```
Author
Owner

@Inniss0903 commented on GitHub (Apr 2, 2020):

Thanks for your suggestion. I have tried, but it still not working.

@Inniss0903 commented on GitHub (Apr 2, 2020): Thanks for your suggestion. I have tried, but it still not working.
Author
Owner

@guillep2k commented on GitHub (Apr 2, 2020):

stdlib.h is not a part of Gitea or even of Go, so it must be provided by the OS and/or the C compiler. Have you checked where in your file-system is this file located? Maybe you need to set up some variable or setting with default tool paths. VSCode tends to have its own life when it comes to settings and configuration files.

@guillep2k commented on GitHub (Apr 2, 2020): `stdlib.h` is not a part of Gitea or even of Go, so it must be provided by the OS and/or the C compiler. Have you checked where in your file-system is this file located? Maybe you need to set up some variable or setting with default tool paths. VSCode tends to have its own life when it comes to settings and configuration files.
Author
Owner

@karawitan commented on GitHub (Apr 5, 2020):

@Inniss0903 This post is probably relevant:

image

https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave

@karawitan commented on GitHub (Apr 5, 2020): @Inniss0903 This post is probably relevant: ![image](https://user-images.githubusercontent.com/37262984/78506573-b84d2380-777a-11ea-8a56-f713fdd7d6b2.png) https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave
Author
Owner

@zeripath commented on GitHub (Apr 5, 2020):

I think @berryamin 's comment explains how to fix this problem. If it doesn't please re-open, otherwise I'm going to close it.

@zeripath commented on GitHub (Apr 5, 2020): I think @berryamin 's comment explains how to fix this problem. If it doesn't please re-open, otherwise I'm going to close it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5151