-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add PIC/PIE tests and fix some bugs + some improvements to the test harness #22067
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is necessary since isGnuLibC() is true for hurd, so we need to be able to represent a glibc version for it. Also add an Os.TaggedVersionRange.gnuLibCVersion() convenience function.
error: thread 165232 panic: TODO: rewrite the NvPtx.flushModule function /home/alexrp/Source/ziglang/zig/src/link/NvPtx.zig:123:5: 0x1ed99ce in flushModule (zig) @Panic("TODO: rewrite the NvPtx.flushModule function"); ^ /home/alexrp/Source/ziglang/zig/src/link/NvPtx.zig:110:28: 0x1c2e7e6 in flush (zig) return self.flushModule(arena, tid, prog_node); ^ /home/alexrp/Source/ziglang/zig/src/link.zig:874:77: 0x1a55bd3 in flush (zig) return @as(*tag.Type(), @fieldParentPtr("base", base)).flush(arena, tid, prog_node); ^ /home/alexrp/Source/ziglang/zig/src/Compilation.zig:2411:17: 0x1a553f9 in flush (zig) lf.flush(arena, tid, prog_node) catch |err| switch (err) { ^ /home/alexrp/Source/ziglang/zig/src/Compilation.zig:2348:22: 0x1a595ba in update (zig) try flush(comp, arena, .{ ^ /home/alexrp/Source/ziglang/zig/src/main.zig:4114:32: 0x1ae392b in serve (zig) try comp.update(main_progress_node); ^ /home/alexrp/Source/ziglang/zig/src/main.zig:3555:22: 0x1b05322 in buildOutputType (zig) try serve( ^ /home/alexrp/Source/ziglang/zig/src/main.zig:265:31: 0x195faca in mainArgs (zig) return buildOutputType(gpa, arena, args, .{ .build = .Obj }); ^ /home/alexrp/Source/ziglang/zig/src/main.zig:200:20: 0x195c995 in main (zig) return mainArgs(gpa, arena, args); ^ /home/alexrp/Source/ziglang/zig/lib/std/start.zig:617:37: 0x195c49e in main (zig) const result = root.main() catch |err| { ^
/home/alexrp/.cache/zig/b/18236e302af25e3fb99bc6a232ddc447/builtin.zig:6:5: error: TODO (SPIR-V): Implement unsigned composite int type of 64 bits pub const zig_backend = std.builtin.CompilerBackend.stage2_spirv64; ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This should hopefully be reverted soon with Andrew's work on the self-hosted wasm linker. error: thread 171731 panic: integer overflow /home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2392:32: 0x22b709e in setupMemory (zig) break :index sym.index - wasm.imported_globals_count; ^ /home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2678:25: 0x1ed1be6 in flushModule (zig) try wasm.setupMemory(); ^ /home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2619:28: 0x1c2e4d4 in flush (zig) return wasm.flushModule(arena, tid, prog_node); ^ /home/alexrp/Source/ziglang/zig/src/link.zig:874:77: 0x1a55ad7 in flush (zig) return @as(*tag.Type(), @fieldParentPtr("base", base)).flush(arena, tid, prog_node); ^ /home/alexrp/Source/ziglang/zig/src/Compilation.zig:2411:17: 0x1a553f9 in flush (zig) lf.flush(arena, tid, prog_node) catch |err| switch (err) { ^ /home/alexrp/Source/ziglang/zig/src/Compilation.zig:2371:22: 0x1a58d60 in update (zig) try flush(comp, arena, .{ ^ /home/alexrp/Source/ziglang/zig/src/main.zig:4114:32: 0x1ae392b in serve (zig) try comp.update(main_progress_node); ^ /home/alexrp/Source/ziglang/zig/src/main.zig:3555:22: 0x1b05322 in buildOutputType (zig) try serve( ^ /home/alexrp/Source/ziglang/zig/src/main.zig:265:31: 0x195faca in mainArgs (zig) return buildOutputType(gpa, arena, args, .{ .build = .Obj }); ^ /home/alexrp/Source/ziglang/zig/src/main.zig:200:20: 0x195c995 in main (zig) return mainArgs(gpa, arena, args); ^ /home/alexrp/Source/ziglang/zig/lib/std/start.zig:617:37: 0x195c49e in main (zig) const result = root.main() catch |err| { ^
alexrp
commented
Nov 24, 2024
alexrp
commented
Nov 24, 2024
@@ -35,3 +35,4 @@ pub export fn entry() usize { | |||
|
|||
// compile | |||
// output_mode=Obj | |||
// emit_bin=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alexrp
commented
Nov 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #22052.