Skip to content

Add express <cstdlib> inclusion to format.h#63934

Open
aschwarzusp wants to merge 1 commit into
nodejs:mainfrom
aschwarzusp:patch-1
Open

Add express <cstdlib> inclusion to format.h#63934
aschwarzusp wants to merge 1 commit into
nodejs:mainfrom
aschwarzusp:patch-1

Conversation

@aschwarzusp

Copy link
Copy Markdown

This is preventing nodejs to compile with LLVM's libcxx, missing definition to malloc.

Reference: Gentoo bug 977376 at https://bugs.gentoo.org/977376

This is preventing nodejs to compile with LLVM's libcxx, missing definition to malloc.

Reference: Gentoo bug 977376 at https://bugs.gentoo.org/977376
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg
  • @nodejs/single-executable

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Jun 15, 2026
@aschwarzusp

aschwarzusp commented Jun 15, 2026

Copy link
Copy Markdown
Author

This solves issue #63935, which is a duplicate of #63530.

Thank you.

@joyeecheung

Copy link
Copy Markdown
Member

Can you upstream the changes to spdlog first, then get it into LIEF? After it goes out in a LIEF release you can run tools/dep_updaters/update-lief.sh to pull it into the deps folder.

@aschwarzusp

aschwarzusp commented Jun 17, 2026

Copy link
Copy Markdown
Author

It is fixed upstream since version 1.16.0, released on 11 Oct 2025 (gabime/spdlog@4418909)

They fixed it by including , but later changed to <stdlib.h> on 28 Oct 2025 (gabime/spdlog@ea3e747)

Maybe This could be solved by pulling spdlog from the system instead of bundling it in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants