Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2024 20:28:56 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        FreeBSD ARM List <freebsd-arm@freebsd.org>
Subject:   Re: rust-1.76.0: build fails, bootstrap issue (aarch64) [armv7 okay so far]
Message-ID:  <307B3379-4F13-46FF-9AEE-914C50EEF48E@yahoo.com>
In-Reply-To: <97A81410-BBC2-4131-B47D-34E725120A03@yahoo.com>
References:  <CAFDf7UKkb9gbfO3fN%2BEM=PZQFfY06BKmLkieH5ngQYzdRXQ3ZA@mail.gmail.com> <CAFDf7U%2BkBO65kY=6NFdc%2BcH3jy53f5rm=3e-r=%2BYRW_vU40_PQ@mail.gmail.com> <97A81410-BBC2-4131-B47D-34E725120A03@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 21, 2024, at 18:51, Mark Millard <marklmi@yahoo.com> wrote:

> On Feb 21, 2024, at 04:55, Nuno Teixeira <eduardo@freebsd.org> wrote:
>=20
>> (...)
>>=20
>> Same error on 14.0-R
>>=20
>> Nuno Teixeira <eduardo@freebsd.org> escreveu (quarta, 21/02/2024 =
=C3=A0(s) 12:10):
>>>=20
>>> Hello all,
>>>=20
>>> Could anyone do a rust-1.76.0 build on aarch64?
>>>=20
>>> It seems that it can't bootstrap.
>>> Following error log is from current 81dc3a4 (yesterday).
>>>=20
>>> I also waiting from result from 14.0 on same osversion (poudriere).
>>>=20
>>> =3D=3D=3D>  Building for rust-1.76.0
>>> Building bootstrap
>>> running: /wrkdirs/usr/ports/lang/rust/w
>>> ork/bootstrap/bin/cargo build
>>> --manifest-path
>>> =
/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/Cargo.tom=
l
>>> --verbose --verbose --frozen
>>> error: failed to run `rustc` to learn about target-specific =
information
>>>=20
>>> Caused by:
>>> process didn't exit successfully:
>>> `/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/rustc - =
--crate-name
>>> ___ --print=3Dfile-names -C linker=3Dcc -Wrust_2018_idioms
>>> -Wunused_lifetimes --crate-type bin --crate-type rlib --crate-type
>>> dylib --crate-type cdylib --crate-type staticlib --crate-type
>>> proc-macro --print=3Dsysroot --print=3Dsplit-debuginfo =
--print=3Dcrate-name
>>> --print=3Dcfg` (exit status: 1)
>>> --- stderr
>>> rustc -Cllvm-args=3D"..." with: Unknown command line argument
>>> '-generate-arange-section'.  Try: 'rustc -Cllvm-args=3D"..." with
>>> --help'
>>> rustc -Cllvm-args=3D"..." with: Did you mean '--print-all-options'?
>>> rustc -Cllvm-args=3D"..." with: Unknown command line argument
>>> '-mergefunc-use-aliases'.  Try: 'rustc -Cllvm-args=3D"..." with =
--help'
>>> rustc -Cllvm-args=3D"..." with: Did you mean '--rng-seed'?
>>> rustc -Cllvm-args=3D"..." with: Unknown command line argument
>>> '-preserve-alignment-assumptions-during-inlining=3Dfalse'.  Try: =
'rustc
>>> -Cllvm-args=3D"..." with --help'
>>> rustc -Cllvm-args=3D"..." with: Did you mean =
'--print-all-options=3Dfalse'?
>>> rustc -Cllvm-args=3D"..." with: Unknown command line argument
>>> '-import-cold-multiplier=3D0.1'.  Try: 'rustc -Cllvm-args=3D"..." =
with
>>> --help'
>>> rustc -Cllvm-args=3D"..." with: Did you mean '--sort-timers=3D0.1'?
>>> Traceback (most recent call last):
>>> File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/x.py", line
>>> 50, in <module>
>>>   bootstrap.main()
>>> File =
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstra=
p.py",
>>> line 1125, in main
>>>   bootstrap(args)
>>> File =
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstra=
p.py",
>>> line 1092, in bootstrap
>>>   build.build_bootstrap()
>>> File =
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstra=
p.py",
>>> line 880, in build_bootstrap
>>>   run(args, env=3Denv, verbose=3Dself.verbose, cwd=3Dself.rust_root)
>>> File =
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstra=
p.py",
>>> line 187, in run
>>>   raise RuntimeError(err)
>>> RuntimeError: failed to run:
>>> /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build
>>> --manifest-path
>>> =
/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/Cargo.tom=
l
>>> --verbose --verbose --frozen
>>> *** Error code 1
>=20
> I can confirm that my attempted poudriere-devel based build on an
> aarch64 main [so: 15] got the same errors.

I started an armv7 poudriere jail build of lang/rust v1.76 and
it is building okay so far:

. . .
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phas=
e: build          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0
=3D=3D=3D>  Building for rust-1.76.0
Building bootstrap
running: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build =
--manifest-path =
/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/Cargo.tom=
l --verbose --verbose --frozen
   Compiling libc v0.2.150
   Compiling proc-macro2 v1.0.60
   Compiling memchr v2.5.0
   Compiling cfg-if v1.0.0
   Compiling quote v1.0.26
   Compiling unicode-ident v1.0.0
   Compiling typenum v1.15.0
. . .
[ 48% 1572/3236] Building CXX object =
lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericDylibManager.c=
pp.o


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?307B3379-4F13-46FF-9AEE-914C50EEF48E>