Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Use -m64 for the wasm64 build - #6882

Closed
Fedr wants to merge 1 commit into
masterfrom
use-m64-for-wasm64
Closed

Fedr wants to merge 1 commit into
masterfrom
use-m64-for-wasm64

Conversation

@Fedr

@Fedr Fedr commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

-sMEMORY64=1 and -m64 select the same setting; -m64 is the spelling emcc documents, and it has been accepted since well before the 4.0.19 we pin.

Worth doing on its own because emsdk 6.0.9 deprecates -sMEMORY64, and with -Wdeprecated -Werror in our flags the deprecation is a build error. It surfaces in a thoroughly misleading way: every try_compile in the 64-bit configure fails, so cmake decides the compiler does not accept -pthread and the build dies at Could NOT find Threads from spdlogConfig.cmake. The real message is only in build/Release/CMakeFiles/CMakeConfigureLog.yaml, which no CI log prints.

Split out of #6881 (the 6.0.9 bump), where it was found; this part stands alone and is a no-op on the emsdk we currently use. No c-bindings image builds wasm64, so the older 3.1.38 / 4.0.19 images are unaffected.

🤖 Generated with Claude Code

-sMEMORY64 is the old spelling of the same setting; emcc has accepted -m64
since well before the 4.0.19 we pin, and 6.0.9 deprecates -sMEMORY64, where
-Wdeprecated -Werror turns the deprecation into a build error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Fedr

Fedr commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Closing: this cannot stand alone. -m64 is not handled by the emsdk we currently pin — 4.0.19's tools/cmdline.py has no -m64 case at all, so emcc passes it through to clang and every configure probe fails:

-- Linker flags = -m64
-- Looking for sys/types.h - not found
-- Check size of size_t - failed
CMake Error: Could not determine how to inline functions.

My claim that it had been accepted since before 4.0.19 was wrong — it came from a grep for m64, which matches inside wasm64.

The change is still needed, but only together with #6881, where 6.0.9 both understands -m64 and deprecates -sMEMORY64. It stays in that PR.

@Fedr Fedr closed this Sep 18, 2026
@Fedr
Fedr deleted the use-m64-for-wasm64 branch September 18, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants