-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Zig Version
0.11.0-dev.22+57dbeb90a
Steps to Reproduce and Observed Behavior
#include <stdio.h>
int main() {
printf("hello world\n");
return 0;
}
zig cc -target target-here hello.cOr to take into account the libc musl builds:
- On x86_64 linux system with nix-build installed
- Clone this repo https://github.com/Cloudef/nix-zig-stdenv
- Go to test folder and run
./run build-package-for-all-targets master super-simple
Expected Behavior
zig cc produces a working executable for the target.
Additional notes
Musl platforms, also build musl libc
Following targets were not tested as nixpkgs does not seem to support them.
"csky-unknown-linux-gnueabi"
"csky-unknown-linux-gnueabihf"
"x86_64-unknown-linux-gnux32"
"armeb-unknown-linux-gnueabi"
"armeb-unknown-linux-musleabi"
"armeb-unknown-linux-gnueabihf"
"armeb-unknown-linux-musleabihf"
"armeb-w64-mingw32"
Attached is raw log of build messages of each failed target
build-package-log.zip
The log can also be viewed here until github purges it: https://github.com/Cloudef/nix-zig-stdenv/actions/runs/3383399186/jobs/5619255104
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior