On Sun, Sep 16, 2018 at 12:19:04AM -0600, phess...@openbsd.org wrote:
> bulk build on arm64.ports.openbsd.org
> started on  Fri Sep 14 15:00:56 MDT 2018
> finished at Sun Sep 16 00:15:15 MDT 2018
> lasted 02D02h14m
> done with kern.version=OpenBSD 6.4-beta (GENERIC.MP) #172: Fri Sep 14 
> 10:40:32 MDT 2018
> 
> http://build-failures.rhaalovely.net/aarch64/2018-09-14/lang/rust.log

Just to confirm the problem is known.

        error: couldn't load codegen backend 
"/usr/obj/ports/rust-1.28.0/rustc-bootstrap-aarch64-1.28.0-20180803/lib/rustlib/aarch64-unknown-openbsd/codegen-backends/librustc_codegen_llvm-llvm.so":
 "Cannot load specified object"

the bootstrap rustc-bootstrap-aarch64-1.28.0-20180803 used for building
1.28.0 isn't self contained. it needs libc++.so.1.0.

the problem was rustc loads librustc_codegen_llvm-llvm.so at runtime and
this library needs libc++.so. But my bootstrap was built only with
compile-time libraries in consideration... so I missed it. my bad.

The diff for lang/rust 1.29.0 address the problem.

I prefered to generated bootstrap for 1.29 instead of regenerating
bootstrap for 1.28 due to build time on aarch64: I need several days for
building it.

Alternatively, manually adding libc++.so.1.0 under
${WRKSRC}/rustc-bootstrap-aarch64-1.28.0-20180803/lib will workaround
the problem, and let's rust to package, and dependencies to build.

Thanks.
-- 
Sebastien Marie

Reply via email to