Title: nodejs 26.8.2 fails to build with clang/LLVM · Issue #66076 · nodejs/node · GitHub
Open Graph Title: nodejs 26.8.2 fails to build with clang/LLVM · Issue #66076 · nodejs/node
X Title: nodejs 26.8.2 fails to build with clang/LLVM · Issue #66076 · nodejs/node
Description: Version 26.8.2 Platform Linux (Gentoo with LLVM profile) Subsystem LIEF (or forzen) What steps will reproduce the bug? Build nodejs version 26.8.2 with clang Observe failure How often does it reproduce? Is there a required condition? Alw...
Open Graph Description: Version 26.8.2 Platform Linux (Gentoo with LLVM profile) Subsystem LIEF (or forzen) What steps will reproduce the bug? Build nodejs version 26.8.2 with clang Observe failure How often does it repro...
X Description: Version 26.8.2 Platform Linux (Gentoo with LLVM profile) Subsystem LIEF (or forzen) What steps will reproduce the bug? Build nodejs version 26.8.2 with clang Observe failure How often does it repro...
Opengraph URL: https://github.com/nodejs/node/issues/66076
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nodejs 26.8.2 fails to build with clang/LLVM","articleBody":"### Version\n\n26.8.2\n\n### Platform\n\n```text\nLinux (Gentoo with LLVM profile)\n```\n\n### Subsystem\n\nLIEF (or forzen)\n\n### What steps will reproduce the bug?\n\n1. Build nodejs version 26.8.2 with clang\n2. Observe failure\n\n### How often does it reproduce? Is there a required condition?\n\nAlways while building with clang\n\n### What is the expected behavior? Why is that the expected behavior?\n\nSuccessful build with clang\n\n### What do you see instead?\n\nBuild failure while building with Clang\n\nA snippet from the build log:\n\n```\n...\nIn file included from ../../deps/LIEF/src/platforms/android/version.cpp:17:\nIn file included from ../../deps/LIEF/src/frozen.hpp:22:\n../../deps/LIEF/third-party/frozen/include/frozen/map.h:40:20: error: implicit instantiation of undefined template 'std::less\u003cLIEF::Android::ANDROID_VERSIONS>'\n 40 | Comparator const comparator_;\n | ^\n../../deps/LIEF/third-party/frozen/include/frozen/map.h:75:29: note: in instantiation of template class 'frozen::impl::CompareKey\u003cstd::less\u003cLIEF::Android::ANDROID_VERSIONS>>' requested here\n 75 | impl::CompareKey\u003cCompare> less_than_;\n | ^\n../../deps/LIEF/src/platforms/android/version.cpp:22:47: note: in instantiation of template class 'frozen::map\u003cLIEF::Android::ANDROID_VERSIONS, const char *, 8>' requested here\n 22 | CONST_MAP(ANDROID_VERSIONS, const char*, 8) version2code {\n | ^\n/usr/include/c++/v1/__fwd/functional.h:25:8: note: template is declared here\n 25 | struct less;\n | ^\nIn file included from ../../deps/LIEF/src/platforms/android/version.cpp:17:\nIn file included from ../../deps/LIEF/src/frozen.hpp:22:\n../../deps/LIEF/third-party/frozen/include/frozen/map.h:110:20: error: implicit instantiation of undefined template 'std::less\u003cLIEF::Android::ANDROID_VERSIONS>'\n 110 | : map{items, Compare{}} {}\n | ^\n../../deps/LIEF/src/platforms/android/version.cpp:22:47: note: in instantiation of member function 'frozen::map\u003cLIEF::Android::ANDROID_VERSIONS, const char *, 8>::map' requested here\n 22 | CONST_MAP(ANDROID_VERSIONS, const char*, 8) version2code {\n | ^\n/usr/include/c++/v1/__fwd/functional.h:25:8: note: template is declared here\n 25 | struct less;\n | ^\n../../deps/LIEF/src/platforms/android/version.cpp:22:47: error: constexpr variable 'version2code' must be initialized by a constant expression\n 22 | CONST_MAP(ANDROID_VERSIONS, const char*, 8) version2code {\n...\n```\n\n### Additional information\n\nI think this is due to stricter include requirements on clang\nI was able to build by adding `#include \u003cfunctional>` in deps/LIEF/third-party/frozen/include/frozen/map.h","author":{"url":"https://github.com/listout","@type":"Person","name":"listout"},"datePublished":"2026-09-17T03:34:16Z","url":"https://github.com/nodejs/node/issues/66076"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f03962f-83a6-bd5c-937d-15c5ac2cd4e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D45C:1463F:72A408:94E100:6AED3134 |
| html-safe-nonce | 45f9e7d39d20d673d8e69df6c50e3f374761bb4160560e1c8083cc4bfce7b696 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVDOjE0NjNGOjcyQTQwODo5NEUxMDA6NkFFRDMxMzQiLCJ2aXNpdG9yX2lkIjoiNzg2NDA5NDMxNzgwMDI3NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1f3d0fc6546d212199875d8bc1714bb88f639f216f3da331f229fe365dc1dbe1 |
| hovercard-subject-tag | issue:5482507261 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66076/issue_layout |
| twitter:image | https://opengraph.githubassets.com/572a68bb8536700b157f5d247a137fc7f7546c877197faefb792539511d9800a/nodejs/node/issues/66076 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/572a68bb8536700b157f5d247a137fc7f7546c877197faefb792539511d9800a/nodejs/node/issues/66076 |
| og:image:alt | Version 26.8.2 Platform Linux (Gentoo with LLVM profile) Subsystem LIEF (or forzen) What steps will reproduce the bug? Build nodejs version 26.8.2 with clang Observe failure How often does it repro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | listout |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width