Closed
Description
Description
I'm building rustc on an Amazon Linux 2 (m5.24xlarge) machine. This has worked for me the last 5 months, but currently, HEAD is giving me an error when running ./x.py build library
.
I thought that it was maybe something I had caused, so I spun up a brand new instance, but I'm still able to reproduce.
Meta
uname -a
:
Linux <redacted> <redacted>.amzn2int.x86_64 #1 SMP Sat Mar 11 23:51:58 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
rust HEAD
7908a1d65496b88626e4b7c193c81d777005d6f3
Error output
Assembling stage1 compiler
Building stage1 library artifacts (x86_64-unknown-linux-gnu)
Compiling compiler_builtins v0.1.91
Compiling core v0.0.0 (/local/home/garzbrya/projects/rustc/issue-110467-safe-transmute2/library/core)
Compiling libc v0.2.140
Compiling cc v1.0.77
Compiling memchr v2.5.0
Compiling std v0.0.0 (/local/home/garzbrya/projects/rustc/issue-110467-safe-transmute2/library/std)
Compiling unwind v0.0.0 (/local/home/garzbrya/projects/rustc/issue-110467-safe-transmute2/library/unwind)
Compiling rustc-std-workspace-core v1.99.0 (/local/home/garzbrya/projects/rustc/issue-110467-safe-transmute2/library/rustc-std-workspace-core)
Invalid bitcast
ptr bitcast (ptr addrspace(14979816) @anon.0dd304449d08a524feadd4cd33e8bcb6.1 to ptr)
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `core`
warning: build failed, waiting for other jobs to finish...
huge alignment values are unsupported
%15 = load i64, ptr %9, align 70368744177664
huge alignment values are unsupported
%16 = load i64, ptr %8, align 70368744177664
huge alignment values are unsupported
%26 = load i32, ptr %20, align 70368744177664
huge alignment values are unsupported
%27 = load i32, ptr %19, align 70368744177664
huge alignment values are unsupported
%37 = load i16, ptr %31, align 70368744177664
huge alignment values are unsupported
%38 = load i16, ptr %30, align 70368744177664
huge alignment values are unsupported
%146 = load i128, ptr %144, align 70368744177664
huge alignment values are unsupported
%147 = load i128, ptr %145, align 70368744177664
in function _ZN17compiler_builtins3mem6memcmp17h39b65de6ac43991cE
LLVM ERROR: Broken function found, compilation aborted!
error: could not compile `compiler_builtins`
huge alignment values are unsupported
%2 = load i32, huge alignment values are unsupportedptr
%0, align %703687441776643 = load i
64, ptr %2, align 70368744177664
in function in function _ZN70_$LT$libc..unix..linux_like..in_addr$u20$as$u20$core..clone..Clone$GT$5clone17h3189a06ce16fa8eaE_ZN4libc4unix10linux_like5linux3gnu76_$LT$impl$u20$libc..unix..linux_like..linux..gnu..b64..x86_64..siginfo_t$GT$8si_value17h7c477f7ca72cc0a2E
LLVM ERROR: Broken function found, compilation aborted!LLVM ERROR: Broken function found, compilation aborted!
error: could not compile `libc`
Build completed unsuccessfully in 0:03:28