Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed in latest zig version #727

Closed
MisileLab opened this issue Jul 24, 2024 · 1 comment
Closed

build failed in latest zig version #727

MisileLab opened this issue Jul 24, 2024 · 1 comment

Comments

@MisileLab
Copy link
Contributor

log

install
└─ install arocc
   └─ zig build-exe arocc ReleaseFast native 6 errors
src/aro/target.zig:20:10: error: no field named 'tce' in enum 'Target.Cpu.Arch'
        .tce,
        ~^~~
/usr/lib/zig/9999/lib/std/Target.zig:981:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
src/aro/target.zig:42:10: error: no field named 'nacl' in enum 'Target.Os.Tag'
        .nacl => return .{ .specifier = .int },
        ~^~~~
/usr/lib/zig/9999/lib/std/Target.zig:18:21: note: enum declared here
    pub const Tag = enum {
                    ^~~~
src/aro/target.zig:165:10: error: no field named 'tce' in enum 'Target.Cpu.Arch'
        .tce, .tcele, .bpfel, .bpfeb, .msp430, .nvptx, .nvptx64, .x86, .arm, .armeb, .thumb, .thumbeb => false,
        ~^~~
/usr/lib/zig/9999/lib/std/Target.zig:981:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
src/aro/target.zig:512:10: error: no field named 'le64' in enum 'Target.Cpu.Arch'
        .le64 => copy.cpu.arch = .le32,
        ~^~~~
/usr/lib/zig/9999/lib/std/Target.zig:981:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
src/aro/target.zig:580:10: error: no field named 'amdil' in enum 'Target.Cpu.Arch'
        .amdil => copy.cpu.arch = .amdil64,
        ~^~~~~
/usr/lib/zig/9999/lib/std/Target.zig:981:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
referenced by:
    discover: src/aro/Driver/GCCDetector.zig:405:40
    discover: src/aro/toolchains/Linux.zig:19:35
    5 reference(s) hidden; use '-freference-trace=7' to see all references
src/aro/target.zig:638:10: error: no field named 'r600' in enum 'Target.Cpu.Arch'
        .r600 => "r600",
        ~^~~~
/usr/lib/zig/9999/lib/std/Target.zig:981:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
error: the following command failed with 6 compilation errors:
/usr/lib/zig/9999/bin/zig build-exe -fsingle-threaded -OReleaseFast --dep aro -Mroot=/home/misile/arocc/src/main.zig --dep system_defaults --dep build_options --dep backend --dep Builtins/Builtin.def --dep Attribute/names.def --dep Diagnostics/messages.def -Maro=/home/misile/arocc/src/aro.zig -Msystem_defaults=/home/misile/arocc/.zig-cache/c/cf3014655917a1c69118a1e7fe3d0e2d/options.zig -Mbuild_options=/home/misile/arocc/.zig-cache/c/387f0286c5e496915d88bd78ae18688a/options.zig --dep zig --dep build_options -Mbackend=/home/misile/arocc/src/backend.zig -MBuiltins/Builtin.def=/home/misile/arocc/.zig-cache/o/15122854963281c1d639664f98b45cc6/Builtin.zig -MAttribute/names.def=/home/misile/arocc/.zig-cache/o/b7881220111d597d5b65523b7752de40/names.zig -MDiagnostics/messages.def=/home/misile/arocc/.zig-cache/o/06d35c6bbc57fa7a16f9e303f9340968/messages.zig -Mzig=/home/misile/arocc/deps/zig/lib.zig -lc --cache-dir /home/misile/arocc/.zig-cache --global-cache-dir /home/misile/.cache/zig --name arocc --zig-lib-dir /usr/lib/zig/9999/lib/ --listen=-
Build Summary: 6/9 steps succeeded; 1 failed
install transitive failure
└─ install arocc transitive failure
   └─ zig build-exe arocc ReleaseFast native 6 errors
error: the following build command failed with exit code 1:
/home/misile/arocc/.zig-cache/o/4ebb638f73e6e5d8731d7f553773e246/build /usr/lib/zig/9999/bin/zig /usr/lib/zig/9999/lib /home/misile/arocc /home/misile/arocc/.zig-cache /home/misile/.cache/zig --seed 0x704b4c17 -Z35a0dc865008fa6c -Doptimize=ReleaseFast

zig version: 0.14.0-dev.560+fa95c89a7
fastfetch

         -/oyddmdhs+:.                 misile@srt
     -odNMMMMMMMMNNmhy+-`              ----------
   -yNMMMMMMMMMMMNNNmmdhy+-            OS: Gentoo 2.15 x86_64
 `omMMMMMMMMMMMMNmdmmmmddhhy/`         Host: KVM/QEMU Standard PC (Q35 + ICH9, 2009) (pc-q35-9.0)
 omMMMMMMMMMMMNhhyyyohmdddhhhdo`       Kernel: Linux 6.10.0-gentoo-veritas
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+`     Uptime: 2 days, 16 hours, 19 mins
 oyhdmNMMMMMMMNdyooydmddddhhhhyhNd.    Packages: 394 (emerge)
  :oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh    Shell: bash 5.2.26
    .:+sydNMMMMMNNNmmmdddhhhhhhmMmy    Display (QEMU Monitor): 1280x800 @ 75 Hz in 15″
       /mMMMMMMNNNmmmdddhhhhhmMNhs:    Terminal: sshd-session
    `oNMMMMMMMNNNmmmddddhhdmMNhs+`     CPU: Intel(R) Xeon(R) E5-2670 v3 (24) @ 2.29 GHz
  `sNMMMMMMMMNNNmmmdddddmNMmhs/.       GPU: RedHat Virtio 1.0 GPU
 /NMMMMMMMMNNNNmmmdddmNMNdso:`         Memory: 752.88 MiB / 47.02 GiB (2%)
+MMMMMMMNNNNNmmmmdmNMNdso/-            Swap: 0 B / 16.00 GiB (0%)
yMMNNNNNNNmmmmmNNMmhs+/-`              Disk (/): 19.12 GiB / 83.00 GiB (23%) - btrfs
/hMMNNNNNNNNMNdhs++/-`                 Local IP (enp6s18): 192.168.0.150/24
`/ohdmmddhys+++/:.`                    Locale: C.UTF-8
  `-//////:--.
@alexrp
Copy link
Contributor

alexrp commented Jul 24, 2024

#726

@Vexu Vexu closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants