Closed
Description
On a debian powerpc64le virtual machine, Zig release 0.6.0:
Scanning dependencies of target zig0
[ 98%] Building CXX object CMakeFiles/zig0.dir/src/main.cpp.o
[ 98%] Building CXX object CMakeFiles/zig0.dir/src/stage2.cpp.o
[ 99%] Linking CXX executable zig0
[ 99%] Built target zig0
Scanning dependencies of target zig_build_libstage2
./lib/std/fs/file.zig:30:24: error: container 'std.os' has no member called 'mode_t'
pub const Mode = os.mode_t;
^
./lib/std/fs.zig:1343:19: note: referenced here
mode: File.Mode = File.default_mode,
^
./lib/std/io/buffered_atomic_file.zig:29:40: note: referenced here
self.atomic_file = try fs.cwd().atomicFile(dest_path, .{});
^
./src-self-hosted/stage2.zig:373:21: note: referenced here
const baf = try io.BufferedAtomicFile.create(fmt.allocator, file_path);
^
./lib/std/time.zig:146:23: error: container 'std.os' has no member called 'timespec'
var ts: os.timespec = undefined;
^
./lib/std/fs/file.zig:208:18: error: container 'std.os' has no member called 'ino_t'
inode: os.ino_t,
^
./lib/std/fs/file.zig:226:38: note: referenced here
pub fn stat(self: File) StatError!Stat {
^
./lib/std/fs/file.zig:186:25: note: referenced here
return (try self.stat()).size;
^
./lib/std/event/loop.zig:1244:25: error: container 'std.os' has no member called 'mode_t'
mode: os.mode_t,
^
./lib/std/event/loop.zig:1182:13: note: while checking this field
open: Open,
^
./lib/std/event/loop.zig:1165:9: note: while checking this field
msg: Msg,
^
./lib/std/linked_list.zig:200:13: note: while checking this field
data: T,
^
./lib/std/atomic/queue.zig:12:9: note: while checking this field
head: ?*Node,
^
./lib/std/event/loop.zig:1160:9: note: while checking this field
fs_queue: std.atomic.Queue(Request),
^
./lib/std/event/loop.zig:16:5: note: while checking this field
os_data: OsData,
^
./lib/std/event/loop.zig:96:25: note: referenced here
pub const instance: ?*Loop = if (@hasDecl(root, "event_loop")) root.event_loop else default_instance;
^
./lib/std/os.zig:614:41: note: referenced here
EAGAIN => if (std.event.Loop.instance) |loop| {
^
./lib/std/fs.zig:609:54: error: container 'std.os' has no member called 'O_CLOEXEC'
const os_flags = lock_flag | O_LARGEFILE | os.O_CLOEXEC | if (flags.write and flags.read)
^
./lib/std/fs.zig:835:53: error: container 'std.os' has no member called 'O_DIRECTORY'
return self.openDirFlagsZ(sub_path_c, os.O_DIRECTORY | os.O_RDONLY | os.O_CLOEXEC | O_PATH);
^
./lib/std/reset_event.zig:252:26: error: container 'std.os.linux' has no member called 'timespec'
var ts: linux.timespec = undefined;
^
./lib/std/os/linux.zig:138:12: error: use of undeclared identifier 'syscall3'
return syscall3(
^
./lib/std/time.zig:183:19: error: container 'std.os' has no member called 'timespec'
var ts: os.timespec = undefined;
^
./lib/std/os.zig:912:74: error: use of undeclared identifier 'mode_t'
pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, flags: u32, mode: mode_t) OpenError!fd_t {
^
./lib/std/fs.zig:857:15: note: referenced here
os.openatZ(self.fd, sub_path_c, flags, 0);
^
make[2]: *** [CMakeFiles/zig_build_libstage2.dir/build.make:57: CMakeFiles/zig_build_libstage2] Error 1
make[1]: *** [CMakeFiles/Makefile2:304: CMakeFiles/zig_build_libstage2.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Behavior tests:
jelle@summit:~/zig-bootstrap-0.6.0/zig$ ./zig0 test test/stage1/behavior.zig
./test/stage1/behavior/bugs/920.zig:23:21: error: division by zero
tables.x[0] = v / f(r);
^
./test/stage1/behavior/bugs/920.zig:54:27: note: called from here
break :blk ZigTableGen(true, norm_r, norm_v, norm_f, norm_f_inv, norm_zero_case);
^
./test/stage1/behavior/bugs/920.zig:52:25: note: called from here
const NormalDist = blk: {
^
./test/stage1/behavior/bugs/920.zig:54:27: note: referenced here
break :blk ZigTableGen(true, norm_r, norm_v, norm_f, norm_f_inv, norm_zero_case);
^
./test/stage1/behavior/bugs/920.zig:63:48: note: referenced here
std.testing.expect(NormalDist1.f[i] == NormalDist.f[i]);
^
./test/stage1/behavior/cast.zig:283:12: error: integer value '18446744073709551615' cannot be stored in type 'u8'
expect(@floatToInt(I, f) == i);
^
./test/stage1/behavior/cast.zig:273:21: note: called from here
expectFloatToInt(f16, 255.1, u8, 255);
^
./test/stage1/behavior/cast.zig:265:29: note: called from here
comptime testFloatToInts();
^
./test/stage1/behavior/cast.zig:263:20: note: called from here
test "@floatToInt" {
^
./test/stage1/behavior/cast.zig:273:21: note: referenced here
expectFloatToInt(f16, 255.1, u8, 255);
^
./test/stage1/behavior/cast.zig:265:29: note: referenced here
comptime testFloatToInts();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:23:15: note: called from here
expect(math.approxEq(f32, @sqrt(b), 1.0488088481701516, epsilon));
^
./test/stage1/behavior/floatop.zig:10:22: note: called from here
comptime testSqrt();
^
./test/stage1/behavior/floatop.zig:9:14: note: called from here
test "@sqrt" {
^
./test/stage1/behavior/floatop.zig:23:15: note: referenced here
expect(math.approxEq(f32, @sqrt(b), 1.0488088481701516, epsilon));
^
./test/stage1/behavior/floatop.zig:10:22: note: referenced here
comptime testSqrt();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:151:15: note: called from here
expect(math.approxEq(f32, @exp(@as(f32, 1.1)), result[0], epsilon));
^
./test/stage1/behavior/floatop.zig:129:21: note: called from here
comptime testExp();
^
./test/stage1/behavior/floatop.zig:128:13: note: called from here
test "@exp" {
^
./test/stage1/behavior/floatop.zig:151:15: note: referenced here
expect(math.approxEq(f32, @exp(@as(f32, 1.1)), result[0], epsilon));
^
./test/stage1/behavior/floatop.zig:129:21: note: referenced here
comptime testExp();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:181:15: note: called from here
expect(math.approxEq(f32, @exp2(@as(f32, 1.1)), result[0], epsilon));
^
./test/stage1/behavior/floatop.zig:159:22: note: called from here
comptime testExp2();
^
./test/stage1/behavior/floatop.zig:158:14: note: called from here
test "@exp2" {
^
./test/stage1/behavior/floatop.zig:181:15: note: referenced here
expect(math.approxEq(f32, @exp2(@as(f32, 1.1)), result[0], epsilon));
^
./test/stage1/behavior/floatop.zig:159:22: note: referenced here
comptime testExp2();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:200:15: note: called from here
expect(math.approxEq(f16, @log(a), 1, epsilon));
^
./test/stage1/behavior/floatop.zig:191:21: note: called from here
comptime testLog();
^
./test/stage1/behavior/floatop.zig:188:13: note: called from here
test "@log" {
^
./test/stage1/behavior/floatop.zig:200:15: note: referenced here
expect(math.approxEq(f16, @log(a), 1, epsilon));
^
./test/stage1/behavior/floatop.zig:191:21: note: referenced here
comptime testLog();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:326:15: note: called from here
expect(@floor(a) == 2);
^
./test/stage1/behavior/floatop.zig:317:23: note: called from here
comptime testFloor();
^
./test/stage1/behavior/floatop.zig:316:15: note: called from here
test "@floor" {
^
./test/stage1/behavior/floatop.zig:326:15: note: referenced here
expect(@floor(a) == 2);
^
./test/stage1/behavior/floatop.zig:317:23: note: referenced here
comptime testFloor();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:356:15: note: called from here
expect(@ceil(a) == 3);
^
./test/stage1/behavior/floatop.zig:347:22: note: called from here
comptime testCeil();
^
./test/stage1/behavior/floatop.zig:346:14: note: called from here
test "@ceil" {
^
./test/stage1/behavior/floatop.zig:356:15: note: referenced here
expect(@ceil(a) == 3);
^
./test/stage1/behavior/floatop.zig:347:22: note: referenced here
comptime testCeil();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:386:15: note: called from here
expect(@trunc(a) == 2);
^
./test/stage1/behavior/floatop.zig:377:23: note: called from here
comptime testTrunc();
^
./test/stage1/behavior/floatop.zig:376:15: note: called from here
test "@trunc" {
^
./test/stage1/behavior/floatop.zig:386:15: note: referenced here
expect(@trunc(a) == 2);
^
./test/stage1/behavior/floatop.zig:377:23: note: referenced here
comptime testTrunc();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/floatop.zig:429:19: note: called from here
expect(x < 2);
^
./test/stage1/behavior/floatop.zig:408:34: note: called from here
comptime testFloatComparisons();
^
./test/stage1/behavior/floatop.zig:406:35: note: called from here
test "floating point comparisons" {
^
./test/stage1/behavior/floatop.zig:429:19: note: referenced here
expect(x < 2);
^
./test/stage1/behavior/floatop.zig:408:34: note: referenced here
comptime testFloatComparisons();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/math.zig:15:11: note: called from here
expect(div(f16, 1.0, 2.0) == 0.5);
^
./test/stage1/behavior/math.zig:11:26: note: called from here
comptime testDivision();
^
./test/stage1/behavior/math.zig:9:17: note: called from here
test "division" {
^
./test/stage1/behavior/math.zig:15:11: note: referenced here
expect(div(f16, 1.0, 2.0) == 0.5);
^
./test/stage1/behavior/math.zig:11:26: note: referenced here
comptime testDivision();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/math.zig:310:20: note: called from here
comptime expect(0x1.0 == 1.0);
^
./test/stage1/behavior/math.zig:309:34: note: called from here
test "hex float literal parsing" {
^
./test/stage1/behavior/math.zig:310:20: note: referenced here
comptime expect(0x1.0 == 1.0);
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/math.zig:335:23: note: called from here
expect(@bitCast(u128, f) == 0x40042eab345678439abcdefea5678234);
^
./test/stage1/behavior/math.zig:407:25: note: called from here
comptime S.doTheTest();
^
./test/stage1/behavior/math.zig:320:48: note: called from here
test "quad hex float literal parsing accurate" {
^
./test/stage1/behavior/math.zig:335:23: note: referenced here
expect(@bitCast(u128, f) == 0x40042eab345678439abcdefea5678234);
^
./test/stage1/behavior/math.zig:407:25: note: referenced here
comptime S.doTheTest();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/math.zig:587:11: note: called from here
expect(make_f128(1.0) > 0.9);
^
./test/stage1/behavior/math.zig:576:23: note: called from here
comptime test_f128();
^
./test/stage1/behavior/math.zig:574:13: note: called from here
test "f128" {
^
./test/stage1/behavior/math.zig:587:11: note: referenced here
expect(make_f128(1.0) > 0.9);
^
./test/stage1/behavior/math.zig:576:23: note: referenced here
comptime test_f128();
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/math.zig:678:11: note: called from here
expect(nan1 != nan2);
^
./test/stage1/behavior/math.zig:672:26: note: called from here
comptime testNanEqNan(f128);
^
./test/stage1/behavior/math.zig:664:23: note: called from here
test "NaN comparison" {
^
./test/stage1/behavior/math.zig:678:11: note: referenced here
expect(nan1 != nan2);
^
./test/stage1/behavior/math.zig:672:26: note: referenced here
comptime testNanEqNan(f128);
^
./lib/std/testing.zig:192:14: error: encountered @panic at compile-time
if (!ok) @panic("test failure");
^
./test/stage1/behavior/muladd.zig:13:15: note: called from here
expect(@mulAdd(f16, a, b, c) == 20);
^
./test/stage1/behavior/muladd.zig:4:24: note: called from here
comptime testMulAdd();
^
./test/stage1/behavior/muladd.zig:3:16: note: called from here
test "@mulAdd" {
^
./test/stage1/behavior/muladd.zig:13:15: note: referenced here
expect(@mulAdd(f16, a, b, c) == 20);
^
./test/stage1/behavior/muladd.zig:4:24: note: referenced here
comptime testMulAdd();
^
./lib/std/start.zig:119:17: error: unsupported arch
else => @compileError("unsupported arch"),
^
./lib/std/event/loop.zig:1244:25: error: container 'std.os' has no member called 'mode_t'
mode: os.mode_t,
^
./lib/std/event/loop.zig:1182:13: note: while checking this field
open: Open,
^
./lib/std/event/loop.zig:1165:9: note: while checking this field
msg: Msg,
^
./lib/std/linked_list.zig:200:13: note: while checking this field
data: T,
^
./lib/std/atomic/queue.zig:12:9: note: while checking this field
head: ?*Node,
^
./lib/std/event/loop.zig:1160:9: note: while checking this field
fs_queue: std.atomic.Queue(Request),
^
./lib/std/event/loop.zig:16:5: note: while checking this field
os_data: OsData,
^
./lib/std/event/loop.zig:96:25: note: referenced here
pub const instance: ?*Loop = if (@hasDecl(root, "event_loop")) root.event_loop else default_instance;
^
./lib/std/os.zig:614:41: note: referenced here
EAGAIN => if (std.event.Loop.instance) |loop| {
^
./lib/std/fs/file.zig:208:18: error: container 'std.os' has no member called 'ino_t'
inode: os.ino_t,
^
./lib/std/fs/file.zig:226:38: note: referenced here
pub fn stat(self: File) StatError!Stat {
^
./lib/std/fs/file.zig:186:25: note: referenced here
return (try self.stat()).size;
^
./lib/std/reset_event.zig:252:26: error: container 'std.os.linux' has no member called 'timespec'
var ts: linux.timespec = undefined;
^
./lib/std/os/linux.zig:789:60: error: use of undeclared identifier 'restore_rt'
const restorer_fn = if ((act.flags & SA_SIGINFO) != 0) restore_rt else restore;
^
./lib/std/os/linux.zig:390:12: error: use of undeclared identifier 'syscall3'
return syscall3(.write, @bitCast(usize, @as(isize, fd)), @ptrToInt(buf), count);
^
./lib/std/os/linux.zig:781:12: error: use of undeclared identifier 'syscall4'
return syscall4(.rt_sigprocmask, flags, @ptrToInt(set), @ptrToInt(oldset), NSIG / 8);
^
./lib/std/os/linux.zig:777:43: error: use of undeclared identifier 'syscall0'
return @bitCast(pid_t, @truncate(u32, syscall0(.gettid)));
^
./lib/std/os/linux.zig:568:12: error: use of undeclared identifier 'syscall2'
return syscall2(.tkill, @bitCast(usize, @as(isize, tid)), @bitCast(usize, @as(isize, sig)));
^
./lib/std/os/linux.zig:555:9: error: use of undeclared identifier 'syscall1'
_ = syscall1(.exit_group, @bitCast(usize, @as(isize, status)));
^
./lib/std/fs.zig:609:54: error: container 'std.os' has no member called 'O_CLOEXEC'
const os_flags = lock_flag | O_LARGEFILE | os.O_CLOEXEC | if (flags.write and flags.read)
^
./lib/std/os/linux.zig:195:19: error: use of undeclared identifier 'SYS'
if (@hasField(SYS, "mmap2")) {
^
Metadata
Metadata
Assignees
Labels
No labels