Skip to content
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

Build failed on macos(14.2.1) arm64 #14

Open
guxingke opened this issue Apr 26, 2024 · 1 comment
Open

Build failed on macos(14.2.1) arm64 #14

guxingke opened this issue Apr 26, 2024 · 1 comment

Comments

@guxingke
Copy link

git hash: 4a1cdff
zig : 0.12.0

zig build 

last log

/Users/gxk/toy/zig/ffmpeg/libavcodec/4xm.c:34:10: note: in file included from /Users/gxk/toy/zig/ffmpeg/libavcodec/4xm.c:34:
#include "libavutil/thread.h"
         ^
/Users/gxk/toy/zig/ffmpeg/libavutil/thread.h:28:10: error: 'sys/prctl.h' file not found
#include <sys/prctl.h>
         ^~~~~~~~~~~~~~
/Users/gxk/toy/zig/ffmpeg/libavcodec/aacdec_fixed.c:495:10: note: in file included from /Users/gxk/toy/zig/ffmpeg/libavcodec/aacdec_fixed.c:495:
#include "aacdec_template.c"
         ^
/Users/gxk/toy/zig/ffmpeg/libavcodec/aacdec_template.c:93:10: note: in file included from /Users/gxk/toy/zig/ffmpeg/libavcodec/aacdec_template.c:93:
#include "libavutil/thread.h"
         ^
error: the following command failed with 130 compilation errors:
/Users/gxk/app/zig-macos-aarch64-0.12.0/zig build-lib @/Users/gxk/toy/zig/ffmpeg/zig-cache/args/c40d89c396d1f74dbebe67881d6c6509eb0b60cdd97eafad53d8858f4d1a8f88
Build Summary: 12/19 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
├─ install ffmpeg transitive failure
│  └─ zig build-lib ffmpeg Debug native 130 errors
├─ install show_metadata_c transitive failure
│  └─ zig build-exe show_metadata_c Debug native transitive failure
│     └─ zig build-lib ffmpeg Debug native (+11 more reused dependencies)
└─ install show_metadata_zig transitive failure
   └─ zig build-exe show_metadata_zig Debug native transitive failure
      └─ zig build-lib ffmpeg Debug native (+11 more reused dependencies)
error: the following build command failed with exit code 1:
/Users/gxk/toy/zig/ffmpeg/zig-cache/o/ea21a9f500f166770e62cce02d610773/build /Users/gxk/app/zig-macos-aarch64-0.12.0/zig /Users/gxk/toy/zig/ffmpeg /Users/gxk/toy/zig/ffmpeg/zig-cache /Users/gxk/.cache/zig --seed 0x7cde8fa1 -Z4458b12ec57d2f2d
@dephiros
Copy link

dephiros commented Nov 1, 2024

I am running on the Sequoia with latest zig (0.14.0-dev.2085+a916bc7fd) and got a slightly different error.
https://gist.github.com/dephiros/ca4dbdcbe4f1dd3d0d0b19f2135b242e#file-0-14-0-dev-2085-a916bc7fd-log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants