Comments (4)
Wherever you end up asking, having a minimal reproducible example would help in determining the issue.
Does this reproduce on a simple hello world, or even with an empty main function, or only with a larger project with multiple source files?
You've mentioned using build.zig
, could you share that file?
Also note that the newest Zig release is 0.13
, it will probably be easier debugging what's going wrong in the current version than in the old one.
from zig.
Hello, I can't seem to reproduce it on a simpler hello world, but here is the build.zig:
const std = @import("std");
const builtin = @import("builtin");
pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{ .default_target = .{ .os_tag = .linux } });
const mode = b.standardOptimizeOption(.{});
const st_exe = b.addExecutable(.{
.name = "st",
.target = target,
.optimize = mode,
});
st_exe.defineCMacro("VERSION", "\"0.9.2\"");
st_exe.addCSourceFiles(.{
.files = &.{ "x.c", "st.c" },
});
st_exe.addLibraryPath(.{ .cwd_relative = "/usr/lib/x86_64-linux-gnu/" });
st_exe.linkLibC();
st_exe.linkSystemLibrary("X11");
st_exe.linkSystemLibrary("fontconfig");
st_exe.linkSystemLibrary("freetype2");
st_exe.linkSystemLibrary("Xft");
b.installArtifact(st_exe);
}
from zig.
I'll come back with a minimal working example when I can
from zig.
It's my bad, sorry for the panic-issue.
from zig.
Related Issues (20)
- fuzz testing: support macOS
- fuzz testing: support Windows
- fuzzing: support more than one executable at once
- debug info audit - many virtual memory addresses have strange source locations HOT 1
- `-OReleaseSafe` breaks fuzzing entry points feature; incorrect already-sorted assumption
- unreachable code paths need to be excluded from having coverage instrumentation
- more optimized and correct management of 8-bit PC counters
- fuzzer web interface: play a little jingle when it finds a bug! HOT 1
- fuzzer web interface: ability to scroll to source locations that newly gain coverage HOT 1
- Ability to determine the file a module is in without complete knowledge of the compilations module dependency graph HOT 5
- --verbose-llvm-bc= compile option does not work when providing a file name
- ICE involving empty slice of anonymous struct type
- --unresolved-symbols seems not work for zig cc
- [Feature Request/Bug] Make MultiArrayList behave like normal ArrayList HOT 5
- compiler: remove unused struct fields HOT 7
- std.json: parsing: possibility for missing optional fields to not trigger an error HOT 2
- @alignOf() returns incorrect alignment for structs containing multiple SIMD vectors HOT 2
- Crash (likely undefined behavior) of `std.process.Child.run` in `ReleaseFast` mode only
- ICE: self-hosted generating an atom for an extern declaration
- translate-c misses an alignment cast in translated C code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zig.