René's URL Explorer Experiment


Title: build error: unable to find library -latomic (llvm/compiler-rt) · Issue #65900 · nodejs/node · GitHub

Open Graph Title: build error: unable to find library -latomic (llvm/compiler-rt) · Issue #65900 · nodejs/node

X Title: build error: unable to find library -latomic (llvm/compiler-rt) · Issue #65900 · nodejs/node

Description: Version b949c28 Platform Linux aarch64-unknown-linux-musl 7.2.3-gentoo-dist-hardened #1 SMP PREEMPT_DYNAMIC Sat Sep 5 05:15:30 CEST 2026 aarch64 GNU/Linux llvm stack (clang, libcxx, compiler-rt, libunwind) Subsystem No response What step...

Open Graph Description: Version b949c28 Platform Linux aarch64-unknown-linux-musl 7.2.3-gentoo-dist-hardened #1 SMP PREEMPT_DYNAMIC Sat Sep 5 05:15:30 CEST 2026 aarch64 GNU/Linux llvm stack (clang, libcxx, compiler-rt, li...

X Description: Version b949c28 Platform Linux aarch64-unknown-linux-musl 7.2.3-gentoo-dist-hardened #1 SMP PREEMPT_DYNAMIC Sat Sep 5 05:15:30 CEST 2026 aarch64 GNU/Linux llvm stack (clang, libcxx, compiler-rt, li...

Opengraph URL: https://github.com/nodejs/node/issues/65900

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"build error: unable to find library -latomic (llvm/compiler-rt)","articleBody":"### Version\n\nb949c28b7957f913bfbf042e6b07a22af59f1f3f\n\n### Platform\n\n```text\nLinux aarch64-unknown-linux-musl 7.2.3-gentoo-dist-hardened #1 SMP PREEMPT_DYNAMIC Sat Sep  5 05:15:30 CEST 2026 aarch64 GNU/Linux\n\nllvm stack (clang, libcxx, compiler-rt, libunwind)\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```\n$ ./configure\n$ make\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nbuild succeeds\n\n### What do you see instead?\n\n```bash\nld.lld: error: unable to find library -latomic\nclang++: error: linker command failed with exit code 1 (use -v to see invocation)\nmake[1]: *** [node_js2c.target.mk:144: /home/pepper/dev/ghrepos/node/out/Release/node_js2c] Error 1\nmake: *** [Makefile:145: node] Error 2\n```\n\n### Additional information\n\n\n\nThis [comment in tools/v8_gypfiles/v8.gyp](https://github.com/peppergrayxyz/node/blob/b949c28b7957f913bfbf042e6b07a22af59f1f3f/tools/v8_gypfiles/v8.gyp#L1404-L1407) suggests, that `-latomic` was added to facilitate the use of atomic operations as described in the linked clang docs:\n```gyp\n# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library\n# to implement atomic memory access.\n# Clang needs it for some atomic operations (https://clang.llvm.org/docs/Toolchain.html#atomics-library).\n ['(OS==\"linux\" and clang==1) or (v8_current_cpu in [\"mips64\", \"mips64el\", \"arm\", \"riscv64\", \"loong64\"])', {\n```\n\nBut the docs also state that `compiler-rt` (LLVM) **or** `libatomic` (GNU) may be used. `-latomic` requests `libatomic` while atomics from `compiler-rt` can be used without linker settings.\n\n**Current behaviour** \nThe builds adds `-latomic` which unconditionally requests to link `libatomic` even in cases when it is not needed or desired.\n\n**Desired behaviour**\nCheck if `-latomic` is needed e.g. like mesa [meson.build](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/meson.build?ref_type=heads#L1639), which checks if atomics compile successfully without link settings (which is the case with  `compiler-rt`). Then append them conditionally only when needed.","author":{"url":"https://github.com/peppergrayxyz","@type":"Person","name":"peppergrayxyz"},"datePublished":"2026-09-08T02:45:30Z","url":"https://github.com/nodejs/node/issues/65900"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e6dccfe-a43d-4718-0cf8-2193178d181b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id848A:A3A4:35BE41:4D6CC4:6AED35C3
html-safe-noncec306cb324a0c5a7a3ac22c9f609f1a06668d979a0c8c2d8ca2a829e5ae4fb59a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDhBOkEzQTQ6MzVCRTQxOjRENkNDNDo2QUVEMzVDMyIsInZpc2l0b3JfaWQiOiIxMjA5OTEzNjI2NDc0NjU3MjE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8076ad1d8a577a141fe55e2db9a0e22353b977bb82ced6ee26d90dadeb50a08f
hovercard-subject-tagissue:5381299066
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65900/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fc28325bc799096fd500ccc3e048fae2147cc87747d7ee56f0cb51bf2241d164/nodejs/node/issues/65900
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fc28325bc799096fd500ccc3e048fae2147cc87747d7ee56f0cb51bf2241d164/nodejs/node/issues/65900
og:image:altVersion b949c28 Platform Linux aarch64-unknown-linux-musl 7.2.3-gentoo-dist-hardened #1 SMP PREEMPT_DYNAMIC Sat Sep 5 05:15:30 CEST 2026 aarch64 GNU/Linux llvm stack (clang, libcxx, compiler-rt, li...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepeppergrayxyz
hostnamegithub.com
expected-hostnamegithub.com
None26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec629ad99c254d306375fc8354d04321c2c362236
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65900#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65900
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65900
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/65900
Reloadhttps://github.com/nodejs/node/issues/65900
Reloadhttps://github.com/nodejs/node/issues/65900
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests665 (665)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65900
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65900
build error: unable to find library -latomic (llvm/compiler-rt)https://github.com/nodejs/node/issues/65900#top
https://github.com/peppergrayxyz
peppergrayxyzhttps://github.com/peppergrayxyz
on Sep 8, 2026https://github.com/nodejs/node/issues/65900#issue-5381299066
b949c28https://github.com/nodejs/node/commit/b949c28b7957f913bfbf042e6b07a22af59f1f3f
comment in tools/v8_gypfiles/v8.gyphttps://github.com/peppergrayxyz/node/blob/b949c28b7957f913bfbf042e6b07a22af59f1f3f/tools/v8_gypfiles/v8.gyp#L1404-L1407
meson.buildhttps://gitlab.freedesktop.org/mesa/mesa/-/blob/main/meson.build?ref_type=heads#L1639
peppergrayxyzhttps://github.com/peppergrayxyz
on Sep 8, 2026https://github.com/nodejs/node/issues/65900#event-30726415719
peppergrayxyzhttps://github.com/peppergrayxyz
on Sep 8, 2026https://github.com/nodejs/node/issues/65900#event-30732514536
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/81be3715d8ceab6851e7b866d3edea737421fa38
https://docs.github.com/articles/closing-issues-via-commit-messages
81be371https://github.com/peppergrayxyz/node/commit/81be3715d8ceab6851e7b866d3edea737421fa38
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/ae821ebbd55c88a356324af33d8885ce67faaf20
https://docs.github.com/articles/closing-issues-via-commit-messages
ae821ebhttps://github.com/peppergrayxyz/node/commit/ae821ebbd55c88a356324af33d8885ce67faaf20
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/aee52706feb03bd14de03ecadc9f02ca93331b3f
https://docs.github.com/articles/closing-issues-via-commit-messages
aee5270https://github.com/peppergrayxyz/node/commit/aee52706feb03bd14de03ecadc9f02ca93331b3f
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/9f0e99e151a0e324b2d409a2d1d5667c2dc0fcfb
https://docs.github.com/articles/closing-issues-via-commit-messages
9f0e99ehttps://github.com/peppergrayxyz/node/commit/9f0e99e151a0e324b2d409a2d1d5667c2dc0fcfb
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/a6830390b49cb7924a0ec477d2f5caa2bcc07b4f
https://docs.github.com/articles/closing-issues-via-commit-messages
a683039https://github.com/peppergrayxyz/node/commit/a6830390b49cb7924a0ec477d2f5caa2bcc07b4f
build: probe if atomics need -latomichttps://github.com/peppergrayxyz/node/commit/cc98fe5cc1cf859e74cf4f5d063124939ca95025
https://docs.github.com/articles/closing-issues-via-commit-messages
cc98fe5https://github.com/peppergrayxyz/node/commit/cc98fe5cc1cf859e74cf4f5d063124939ca95025
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/0546e3292590988b7ee78cb34d549bb29d15318a
https://docs.github.com/articles/closing-issues-via-commit-messages
0546e32https://github.com/peppergrayxyz/node/commit/0546e3292590988b7ee78cb34d549bb29d15318a
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/bb8a2500e2ded65782d66cb1b6ac9425164a3ce2
https://docs.github.com/articles/closing-issues-via-commit-messages
bb8a250https://github.com/peppergrayxyz/node/commit/bb8a2500e2ded65782d66cb1b6ac9425164a3ce2
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/242174c7bbd07159283122a2b1f72cc8a12e642f
https://docs.github.com/articles/closing-issues-via-commit-messages
242174chttps://github.com/peppergrayxyz/node/commit/242174c7bbd07159283122a2b1f72cc8a12e642f
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/83951f8efb5001f5cca24d98350c2fa8f9fa0047
https://docs.github.com/articles/closing-issues-via-commit-messages
83951f8https://github.com/peppergrayxyz/node/commit/83951f8efb5001f5cca24d98350c2fa8f9fa0047
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/6f3f08c17f6a9609f35a48ee57e516c075e764a4
https://docs.github.com/articles/closing-issues-via-commit-messages
6f3f08chttps://github.com/peppergrayxyz/node/commit/6f3f08c17f6a9609f35a48ee57e516c075e764a4
build: add arg to disable linking against -latomichttps://github.com/peppergrayxyz/node/commit/5922b57f19ecac68dd4a39d61d70b66a18e3492e
https://docs.github.com/articles/closing-issues-via-commit-messages
5922b57https://github.com/peppergrayxyz/node/commit/5922b57f19ecac68dd4a39d61d70b66a18e3492e
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65900
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65900
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.