Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build wasm target failed #1217

Closed
chai2010 opened this issue Apr 12, 2024 · 1 comment · Fixed by #1249
Closed

build wasm target failed #1217

chai2010 opened this issue Apr 12, 2024 · 1 comment · Fixed by #1249
Assignees
Labels
release wasm Issues or PRs related to kcl and wasm

Comments

@chai2010
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

macbook-m1:kclvm chai$ pwd
/Users/chai/go/src/github.com/kcl-lang/kcl/kclvm
macbook-m1:kclvm chai$ rustc -V
rustc 1.77.2 (25ef9e3d8 2024-04-09)
macbook-m1:kclvm chai$ cargo build --target=wasm32-wasi --release
   Compiling psm v0.1.21
   Compiling unic-langid-macros v0.9.4
   Compiling arrayvec v0.7.4
   Compiling tempfile v3.10.1
   Compiling unicode-width v0.1.11
   Compiling jobserver v0.1.28
   Compiling cfg-if v0.1.10
   Compiling ahash v0.8.11
error: failed to build archive: 'wasm32.o': section too large

The following warnings were emitted during compilation:

warning: [email protected]: warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: /Users/chai/go/src/github.com/kcl-lang/kcl/kclvm/target/wasm32-wasi/release/build/psm-cd061b454adf0b23/out/libpsm_s.a the table of contents is empty (no object file members in the library define global symbols)

error: could not compile `psm` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
macbook-m1:kclvm chai$ sw_vers
ProductName:            macOS
ProductVersion:         14.4.1
BuildVersion:           23E224
macbook-m1:kclvm chai$ git log -1
commit a1216b56b1086e3cd7f0f08351e391b5f57e1353 (HEAD -> main, origin/main, origin/HEAD)
Author: Peefy <[email protected]>
Date:   Fri Apr 12 11:04:03 2024 +0800

    feat: add llvm-feature-for-runner (#1216)
    
    Signed-off-by: peefy <[email protected]>
macbook-m1:kclvm chai$

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your KCL components version? (Required)

@Peefy
Copy link
Contributor

Peefy commented Apr 15, 2024

I've opened a PR #1221 to fix the wrond deps for the wasm-wasi target. When the PR is merged. We need to release new versions of rustc_datastructure and compiler_base by @zong-zhe cc @chai2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release wasm Issues or PRs related to kcl and wasm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants