zig icon indicating copy to clipboard operation
zig copied to clipboard

List of targets that currently fail to build with zig cc

Open Cloudef opened this issue 3 years ago • 0 comments

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.c

Or 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

Cloudef avatar Nov 04 '22 00:11 Cloudef