Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ zig build-exe --single-threaded --strip -O ReleaseSmall -target msp430-freestanding-none -mcpu=msp430 blink.zig
- ld.lld: error: blink:(function _start: .text+0x36): relocation R_MSP430_16_BYTE out of range: 69812 is not in [-32768, 65535]; references main
- >>> defined in zig-cache/o/dbe2937348aadc1f49ded9100d00ff24/blink.o
- attempt to unwrap error: LLDReportedFailure
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/os.zig:1198:23: 0x55e3c5e900a1 in std.os.openatZ (zig1)
- ENOENT => return error.FileNotFound,
- ^
- /home/nathan/zig/zig/lib/std/fs.zig:763:13: 0x55e3c5d1cd5f in std.fs.Dir.openFileZ (zig1)
- try os.openatZ(self.fd, sub_path, os_flags, 0);
- ^
- /home/nathan/zig/zig/lib/std/fs.zig:694:9: 0x55e3c5d18a79 in std.fs.Dir.openFile (zig1)
- return self.openFileZ(&path_c, flags);
- ^
- /home/nathan/zig/zig/lib/std/fs.zig:1573:20: 0x55e3c5d495d7 in std.fs.Dir.readFileAllocOptions (zig1)
- var file = try self.openFile(file_path, .{});
- ^
- /home/nathan/zig/zig/lib/std/fs.zig:1556:9: 0x55e3c5d464ca in std.fs.Dir.readFileAlloc (zig1)
- return self.readFileAllocOptions(allocator, file_path, max_bytes, null, @alignOf(u8), null);
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/mem/Allocator.zig:319:16: 0x55e3c5ec3959 in std.mem.Allocator.resize (zig1)
- const rc = try self.resizeFn(self, old_byte_slice, Slice.alignment, new_byte_count, 0, @returnAddress());
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/mem/Allocator.zig:319:16: 0x55e3c5ec3959 in std.mem.Allocator.resize (zig1)
- const rc = try self.resizeFn(self, old_byte_slice, Slice.alignment, new_byte_count, 0, @returnAddress());
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/mem/Allocator.zig:319:16: 0x55e3c5ec3959 in std.mem.Allocator.resize (zig1)
- const rc = try self.resizeFn(self, old_byte_slice, Slice.alignment, new_byte_count, 0, @returnAddress());
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/mem/Allocator.zig:319:16: 0x55e3c5ec3959 in std.mem.Allocator.resize (zig1)
- const rc = try self.resizeFn(self, old_byte_slice, Slice.alignment, new_byte_count, 0, @returnAddress());
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- /home/nathan/zig/zig/lib/std/mem/Allocator.zig:319:16: 0x55e3c5ec3959 in std.mem.Allocator.resize (zig1)
- const rc = try self.resizeFn(self, old_byte_slice, Slice.alignment, new_byte_count, 0, @returnAddress());
- ^
- /home/nathan/zig/zig/src/link/Elf.zig:1667:9: 0x55e3c5e1b357 in link.Elf.linkWithLLD (zig1)
- return error.LLDReportedFailure;
- ^
- /home/nathan/zig/zig/src/link/Elf.zig:716:9: 0x55e3c5e0aa76 in link.Elf.flush (zig1)
- return self.linkWithLLD(comp);
- ^
- /home/nathan/zig/zig/src/link.zig:389:21: 0x55e3c5dc45b7 in link.File.flush (zig1)
- .elf => return @fieldParentPtr(Elf, "base", base).flush(comp),
- ^
- /home/nathan/zig/zig/src/Compilation.zig:1249:5: 0x55e3c5dbd1e5 in Compilation.update (zig1)
- try self.bin_file.flush(self);
- ^
- /home/nathan/zig/zig/src/main.zig:1918:5: 0x55e3c5d6b7a4 in main.updateModule (zig1)
- try comp.update();
- ^
- /home/nathan/zig/zig/src/main.zig:1782:21: 0x55e3c5cbfb95 in main.buildOutputType (zig1)
- else => |e| return e,
- ^
- /home/nathan/zig/zig/src/main.zig:160:9: 0x55e3c5c98415 in main.mainArgs (zig1)
- return buildOutputType(gpa, arena, args, .{ .build = .Exe });
- ^
- /home/nathan/zig/zig/lib/std/heap.zig:147:9: 0x55e3c5c94746 in std.heap.CAllocator.resize (zig1)
- return error.OutOfMemory;
- ^
- ???:?:?: 0x55e3c5c996c5 in ??? (???)
- /home/nathan/zig/zig/src/stage1.zig:45:43: 0x55e3c5c97f5d in main (zig1)
- stage2.mainArgs(gpa, arena, args) catch unreachable;
- ^
- Aborted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement