Skip to content

Conversation

@hippietrail
Copy link
Collaborator

Issues

N/A

Description

The Harper browser extension always starts in US English mode on Chrome and Safari. I made sure I had my OS and browser settings all on Australian English and no difference.

This is a 99% agent-coded fix to detect the browser language region (dialect) setting.
I've looked at the code but so far I haven't been able to run the tests. Hence just a draft PR for now.

Demo

How Has This Been Tested?

Manually only so far.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@hippietrail hippietrail marked this pull request as ready for review January 15, 2026 18:22
Copy link
Collaborator

@elijah-potter elijah-potter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is close. There are some irrelevant changes that seem to have crept in without explanation. Overall, I'm a big fan.

}

/** Detect English dialect from browser language settings */
function detectBrowserDialect(): Dialect {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic seems sound. I'd prefer it in its own file with some tests attached.

});

let linter: LocalLinter;
let linterReady = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant. If the linter is null, we can assume it is not ready. This variable doesn't provide additional information and can become inconsistent with the type system if used incorrectly.

}

function initializeLinter(dialect: Dialect) {
async function initializeLinter(dialect: Dialect) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does not need to be modified for this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does not need to be modified for this PR.

I think the bits you're questioning are from the second commit where we (agent and I) were trying to track down the build problems. So they might be "clutching at straws" before we figured out that the problems were in the WASM/thesaurus stuff and not in the new feature we were working on.

Thanks for casting a more expert eye over it!


// If user hasn't set a dialect, try to detect from browser language
if (resp.dialect === undefined) {
return detectBrowserDialect();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect.

@hippietrail
Copy link
Collaborator Author

Sorry @elijah-potter I don't know what changed but when I try to pick up where I left off in this branch I get errors that are outside my wheelhouse and the LLM doesn't give me confidence...

hippietrail@Andrews-M1-MacBook-Air harper % just build-wasm
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling zstd-sys v2.0.16+zstd.1.5.7
warning: zstd-sys@2.0.16+zstd.1.5.7: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-debug.o" "-c" "zstd/lib/common/debug.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-entropy_common.o" "-c" "zstd/lib/common/entropy_common.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-error_private.o" "-c" "zstd/lib/common/error_private.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-fse_decompress.o" "-c" "zstd/lib/common/fse_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-pool.o" "-c" "zstd/lib/common/pool.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-threading.o" "-c" "zstd/lib/common/threading.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-zstd_common.o" "-c" "zstd/lib/common/zstd_common.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-fse_compress.o" "-c" "zstd/lib/compress/fse_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-hist.o" "-c" "zstd/lib/compress/hist.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress.o" "-c" "zstd/lib/compress/zstd_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_literals.o" "-c" "zstd/lib/compress/zstd_compress_literals.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_sequences.o" "-c" "zstd/lib/compress/zstd_compress_sequences.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_superblock.o" "-c" "zstd/lib/compress/zstd_compress_superblock.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_double_fast.o" "-c" "zstd/lib/compress/zstd_double_fast.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_fast.o" "-c" "zstd/lib/compress/zstd_fast.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_lazy.o" "-c" "zstd/lib/compress/zstd_lazy.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_ldm.o" "-c" "zstd/lib/compress/zstd_ldm.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_opt.o" "-c" "zstd/lib/compress/zstd_opt.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_preSplit.o" "-c" "zstd/lib/compress/zstd_preSplit.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstdmt_compress.o" "-c" "zstd/lib/compress/zstdmt_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-huf_decompress.o" "-c" "zstd/lib/decompress/huf_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_ddict.o" "-c" "zstd/lib/decompress/zstd_ddict.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_decompress.o" "-c" "zstd/lib/decompress/zstd_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: zstd-sys@2.0.16+zstd.1.5.7: 1 error generated.
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_decompress_block.o" "-c" "zstd/lib/decompress/zstd_decompress_block.c"cargo:warning=clang -cc1as: error: unknown target triple 'wasm32-unknown-unknown'
warning: zstd-sys@2.0.16+zstd.1.5.7: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/7faed3f8272f2313-huf_decompress_amd64.o" "-c" "zstd/lib/decompress/huf_decompress_amd64.S"
error: failed to run custom build command for `zstd-sys v2.0.16+zstd.1.5.7`

Caused by:
  process didn't exit successfully: `/Users/hippietrail/harper-the-second/harper/target/release/build/zstd-sys-2b1c8b7a8150e14f/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=ZSTD_SYS_USE_PKG_CONFIG
  cargo:rustc-cfg=feature="std"
  cargo:rerun-if-changed=wasm-shim/stdlib.h
  cargo:rerun-if-changed=wasm-shim/string.h
  OUT_DIR = Some(/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(wasm32-unknown-unknown)
  CARGO_ENCODED_RUSTFLAGS = Some()
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
  CC_wasm32-unknown-unknown = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown
  CC_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
  CFLAGS_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
  CFLAGS_wasm32-unknown-unknown = None
  OUT_DIR = Some(/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  TARGET = Some(wasm32-unknown-unknown)
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
  CFLAGS_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
  CFLAGS_wasm32-unknown-unknown = None
  OUT_DIR = Some(/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  TARGET = Some(wasm32-unknown-unknown)
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
  CFLAGS_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
  CFLAGS_wasm32-unknown-unknown = None
  OUT_DIR = Some(/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  TARGET = Some(wasm32-unknown-unknown)
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
  CFLAGS_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
  CFLAGS_wasm32-unknown-unknown = None
  cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.
  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-debug.o" "-c" "zstd/lib/common/debug.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-entropy_common.o" "-c" "zstd/lib/common/entropy_common.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-error_private.o" "-c" "zstd/lib/common/error_private.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-fse_decompress.o" "-c" "zstd/lib/common/fse_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-pool.o" "-c" "zstd/lib/common/pool.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-threading.o" "-c" "zstd/lib/common/threading.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/44ff4c55aa9e5133-zstd_common.o" "-c" "zstd/lib/common/zstd_common.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-fse_compress.o" "-c" "zstd/lib/compress/fse_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-hist.o" "-c" "zstd/lib/compress/hist.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress.o" "-c" "zstd/lib/compress/zstd_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_literals.o" "-c" "zstd/lib/compress/zstd_compress_literals.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_sequences.o" "-c" "zstd/lib/compress/zstd_compress_sequences.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_compress_superblock.o" "-c" "zstd/lib/compress/zstd_compress_superblock.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_double_fast.o" "-c" "zstd/lib/compress/zstd_double_fast.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_fast.o" "-c" "zstd/lib/compress/zstd_fast.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_lazy.o" "-c" "zstd/lib/compress/zstd_lazy.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_ldm.o" "-c" "zstd/lib/compress/zstd_ldm.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_opt.o" "-c" "zstd/lib/compress/zstd_opt.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstd_preSplit.o" "-c" "zstd/lib/compress/zstd_preSplit.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/fb80479a5fb81f6a-zstdmt_compress.o" "-c" "zstd/lib/compress/zstdmt_compress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-huf_decompress.o" "-c" "zstd/lib/decompress/huf_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_ddict.o" "-c" "zstd/lib/decompress/zstd_ddict.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_decompress.o" "-c" "zstd/lib/decompress/zstd_decompress.c"cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
  cargo:warning=1 error generated.

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/88f362f13b0528ed-zstd_decompress_block.o" "-c" "zstd/lib/decompress/zstd_decompress_block.c"cargo:warning=clang -cc1as: error: unknown target triple 'wasm32-unknown-unknown'

  exit status: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/7faed3f8272f2313-huf_decompress_amd64.o" "-c" "zstd/lib/decompress/huf_decompress_amd64.S"

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "wasm-shim/" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/Users/hippietrail/harper-the-second/harper/target/wasm32-unknown-unknown/release/build/zstd-sys-2c12cc33f86b5cbc/out/7faed3f8272f2313-huf_decompress_amd64.o" "-c" "zstd/lib/decompress/huf_decompress_amd64.S"


Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: cd "/Users/hippietrail/harper-the-second/harper/harper-wasm" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
error: Recipe `build-wasm` failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants