Stream: general

Topic: link errors with wasm-pack


view this post on Zulip nikomatsakis (May 06 2022 at 12:27):

Hey @Alex Crichton or @fitzgen (he/him) or others :)

I'm trying to get dada to build on mac and I get this error

error: failed to build archive: section too large

The following warnings were emitted during compilation:

warning: warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: /Users/nikomat/versioned/dada/target/wasm32-unknown-unknown/debug/build/psm-caa62c7e694abb40/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` due to previous error

I didn't find any issues on the wasm-pack repo talking about "section too large" -- any tips for how to track that down?

This builds successfully on linux.

view this post on Zulip nikomatsakis (May 06 2022 at 12:30):

Context: https://github.com/dada-lang/dada/pull/170

The current cargo xtask deploy script assumes linux. I'm trying to get it to run on mac (and hopefully windows). Not there yet.

view this post on Zulip Alex Crichton (May 06 2022 at 14:07):

I think the psm crate has a precompiled binary with it that was valid awhile back but may no longer be valid. You may want to validate psm works on wasm still first


Last updated: Dec 23 2024 at 12:05 UTC