Created attachment 210499 [details] Poudriere build log file extracting cargo-0.40.0-i686-unknown-freebsd/cargo/bin/cargo extracting cargo-0.40.0-i686-unknown-freebsd/cargo/share/zsh/site-functions/_cargo running: /wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/build/i686-unknown-freebsd/stage0/bin/cargo build --manifest-path /wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/Cargo.toml --frozen Traceback (most recent call last): File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/x.py", line 11, in <module> bootstrap.main() File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/bootstrap.py", line 909, in main bootstrap(help_triggered) File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/bootstrap.py", line 880, in bootstrap build.build_bootstrap() File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/bootstrap.py", line 675, in build_bootstrap run(args, env=env, verbose=self.verbose) File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/bootstrap.py", line 141, in run raise RuntimeError(err) RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/build/i686-unknown-freebsd/stage0/bin/cargo build --manifest-path /wrkdirs/usr/ports/lang/rust/work/rustc-1.40.0-src/src/bootstrap/Cargo.toml --frozen *** Error code 1 Stop. make: stopped in /usr/ports/lang/rust For a complete Poudriere build log see attached file. Note that IPv6 is disabled. Not sure if relevant here.
The Rust bootstraps currently need COMPAT_FREEBSD10 and COMPAT_FREEBSD11. Do you still have them in your kernel config?
(In reply to Tobias Kortkamp from comment #1) Really nice hint! I'm impressed. Rust is now building with COMPAT_FREEBSD11, still in progress ... looks like that is sufficient. Can you give me some background on this problem? I think that any COMPAT requirement *should* not be the case? Am I wrong about trhat?
(In reply to Tobias Kortkamp from comment #1) Thanks, this fixed the issue for me.
(In reply to p5B2E9A8F from comment #2) > Can you give me some background on this problem? See https://github.com/rust-lang/libc/issues/570 COMPAT_FREEBSD11 only works thanks to the following: https://github.com/rust-lang/libc/commit/78f93220d70e https://github.com/rust-lang/libc/commit/969ad2b73cdc
Assuming you have not discarded the kernels without COMPAT_FREEBSD11 yet, can either of you test the patch at https://reviews.freebsd.org/D23100 that attempts to add a better error message to lang/rust for this?