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

s390x: container 'std.os.linux.arch_bits' has no member called 'ino_t' #77

Closed
oldendick opened this issue Dec 21, 2021 · 2 comments
Closed

Comments

@oldendick
Copy link
Contributor

oldendick commented Dec 21, 2021

Attempting to compile on s390x with the triple s390x-linux-musl. Here is the end of the output where it bails.

make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 79%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
[ 79%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o
[ 80%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o
[ 81%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o
[ 82%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o
[ 82%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o
[ 82%] Building CXX object CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o
[ 83%] Linking CXX static library zigcpp/libzigcpp.a
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 83%] Built target zigcpp
make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
Scanning dependencies of target zigstage1
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 83%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/astgen.cpp.o
[ 84%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigfloat.cpp.o
[ 85%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o
[ 86%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o
[ 86%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/buffer.cpp.o
[ 87%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o
[ 87%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/dump_analysis.cpp.o
[ 88%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/errmsg.cpp.o
[ 89%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/error.cpp.o
[ 89%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/heap.cpp.o
[ 90%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o
[ 90%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir_print.cpp.o
[ 91%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/mem.cpp.o
[ 92%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/os.cpp.o
[ 92%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/parser.cpp.o
[ 93%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/range_set.cpp.o
[ 93%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/softfloat_ext.cpp.o
[ 94%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/stage1.cpp.o
[ 95%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/target.cpp.o
[ 95%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/tokenizer.cpp.o
[ 96%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/util.cpp.o
[ 97%] Linking CXX static library zigcpp/libzigstage1.a
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 97%] Built target zigstage1
make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
Scanning dependencies of target zig0
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 98%] Building CXX object CMakeFiles/zig0.dir/src/stage1/zig0.cpp.o
[ 98%] Linking CXX executable zig0
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 98%] Built target zig0
make[2]: Entering directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
[ 99%] Building self-hosted component /home/ubuntu/zig-bootstrap.git/out/build-zig-host/zig1.o
./lib/std/os/linux.zig:77:28: error: container 'std.os.linux.arch_bits' has no member called 'ino_t'
pub const ino_t = arch_bits.ino_t;
                           ^
./lib/std/c/linux.zig:75:24: note: referenced here
pub const ino_t = linux.ino_t;
                       ^
./lib/std/os.zig:139:25: note: referenced here
pub const ino_t = system.ino_t;
                        ^
./lib/std/fs/file.zig:33:25: note: referenced here
    pub const INode = os.ino_t;
                        ^
./src/Module.zig:1403:28: note: referenced here
    stat_inode: std.fs.File.INode,
                           ^
./src/Module.zig:1262:5: note: while checking this field
    file_scope: *File,
    ^
./src/Module.zig:362:5: note: while checking this field
    src_namespace: *Namespace,
    ^
./src/Module.zig:258:5: note: while checking this field
    owner_decl: *Decl,
    ^
./src/Module.zig:52:52: note: referenced here
decl_exports: std.AutoArrayHashMapUnmanaged(*Decl, []*Export) = .{},
                                                   ^
./src/Module.zig:52:44: note: referenced here
decl_exports: std.AutoArrayHashMapUnmanaged(*Decl, []*Export) = .{},
                                           ^
./src/link.zig:60:5: note: while checking this field
    module: ?*Module,
    ^
./src/link.zig:170:5: note: while checking this field
    options: Options,
    ^
./src/Compilation.zig:42:1: note: while checking this field
bin_file: *link.File,
^
./src/main.zig:2396:29: note: referenced here
    const comp = Compilation.create(gpa, .{
                            ^
./src/stage1.zig:50:43: note: referenced here
        stage2.mainArgs(gpa, arena, args) catch |err| fatal("{s}", .{@errorName(err)});
                                          ^
./lib/std/os/linux.zig:79:29: error: container 'std.os.linux.arch_bits' has no member called 'mode_t'
pub const mode_t = arch_bits.mode_t;
                            ^
./lib/std/c/linux.zig:77:25: note: referenced here
pub const mode_t = linux.mode_t;
                        ^
./lib/std/os.zig:142:26: note: referenced here
pub const mode_t = system.mode_t;
                         ^
./lib/std/fs/file.zig:32:24: note: referenced here
    pub const Mode = os.mode_t;
                       ^
./lib/std/fs/file.zig:172:15: note: referenced here
        mode: Mode = default_mode,
              ^
./lib/std/fs.zig:2018:28: note: referenced here
        var file = try self.createFile(sub_path, .{});
                           ^
./src/main.zig:3228:5: note: referenced here
    try src_dir.writeFile("main.zig", main_zig_contents);
    ^
./lib/std/os/linux.zig:128:33: error: container 'std.os.linux.arch_bits' has no member called 'O'
    pub usingnamespace arch_bits.O;
                                ^
./lib/std/fs.zig:1496:60: error: container 'std.os.linux.O' has no member called 'NOFOLLOW'
        const symlink_flags: u32 = if (args.no_follow) os.O.NOFOLLOW else 0x0;
                                                           ^
./lib/std/fs.zig:968:33: error: container 'std.os.linux.O' has no member called 'CLOEXEC'
        var os_flags: u32 = os.O.CLOEXEC;
                                ^
./lib/std/os/linux.zig:47:34: error: container 'std.os.linux.arch_bits' has no member called 'syscall0'
pub const syscall0 = syscall_bits.syscall0;
                                 ^
./lib/std/os/linux.zig:1040:43: note: referenced here
    return @bitCast(pid_t, @truncate(u32, syscall0(.gettid)));
                                          ^
./lib/std/os/linux.zig:51:34: error: container 'std.os.linux.arch_bits' has no member called 'syscall4'
pub const syscall4 = syscall_bits.syscall4;
                                 ^
./lib/std/os/linux.zig:288:12: note: referenced here
    return syscall4(.futex, @ptrToInt(uaddr), futex_op, @bitCast(u32, val), @ptrToInt(timeout));
           ^
make[2]: *** [CMakeFiles/zig.dir/build.make:335: zig1.o] Error 1
make[2]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
make[1]: *** [CMakeFiles/Makefile2:119: CMakeFiles/zig.dir/all] Error 2
make[1]: Leaving directory '/home/ubuntu/zig-bootstrap.git/out/build-zig-host'
make: *** [Makefile:130: all] Error 2
@nektro
Copy link

nektro commented Jan 8, 2022

missing closing ```

@andrewrk
Copy link
Member

superseded by #116

@andrewrk andrewrk closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 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