-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Build failure for libffi-sys v2.3.0 when building from Windows path in WSL
Description
The build process is failing when trying to compile libffi-sys v2.3.0 with errors related to missing configuration files. The root cause appears to be compatibility issues when building from a Windows path in WSL.
Error Details
error: failed to run custom build command for `libffi-sys v2.3.0`
Caused by:
process didn't exit successfully: `/mnt/c/Users/wjxtc/source/repos/ExpanderCompilerCollection/target/release/build/libffi-sys-a4b2865b131da6ed/build-script-build` (exit status: 101)
--- stdout
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
continue configure in default builddir "./x86_64-unknown-linux-gnu"
....exec /bin/bash .././configure "--srcdir=.." "--enable-builddir=x86_64-unknown-linux-gnu" "linux
gnu"
--- stderr
.././configure: line 2251: config.log: No such file or directory
.././configure: line 2261: config.log: No such file or directory
cat: standard output: No such file or directory
thread 'main' panicked at /home/farmer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libffi-sys-2.3.0/build/common.rs:8:5:
Configuring libffi
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Additional error:
cp: cannot stat 'target/release/libec_go_lib.*': No such file or directory
Environment
- Running in WSL (Windows Subsystem for Linux)
- Building from a Windows path:
/mnt/c/Users/wjxtc/source/repos/ExpanderCompilerCollection/ - Build command:
./build-rust.sh
Possible Cause
The artifacts compiled during the build process are likely not compatible with WSL when building from a Windows path. The build system cannot properly handle the cross-filesystem compilation for native dependencies like libffi-sys.
Steps to Reproduce
- Clone repository to a Windows path accessible in WSL
- Run
./build-rust.shfrom the WSL terminal - Observe the build failure at the libffi-sys dependency
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working