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

macos arm64 build error #29

Open
stdiodavid opened this issue May 13, 2024 · 1 comment
Open

macos arm64 build error #29

stdiodavid opened this issue May 13, 2024 · 1 comment

Comments

@stdiodavid
Copy link

macOS 14.4.1 (23E224)
xcode: 15.3
Apple clang version 15.0.0 (clang-1500.3.9.4)
cmake version 3.29.3
go version go1.21.9 darwin/arm64
meson 1.4.0
ninja 1.12.0

what can i do to fix it ?

VERSION=v0.0.1 make

pkg-config undefined

  User defined options
    Cross files: /Users/foo/project/libmpv-darwin-build/cross-files/macos-arm64.ini
    prefix     : /Users/foo/project/libmpv-darwin-build/build/intermediate/pkg-config_macos-arm64

Found ninja-1.12.0 at /Users/foo/project/libmpv-darwin-build/build/intermediate/links/bin/ninja
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /Users/foo/project/libmpv-darwin-build/build/intermediate/links/bin/ninja -C /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build pkg-config.stamp
ninja: Entering directory `/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build'
[0/1] Generating external project pkg-config
Running command ['/usr/bin/make', '-j8'] in directory /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build/build

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in glib
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in m4macros
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in glib
  GEN      glibconfig-stamp
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in libcharset
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       libcharset_la-localcharset.lo
  GEN      ref-del.sed
  GEN      ref-add.sed
  GEN      charset.alias
  CCLD     libcharset.la
Making all in gnulib
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       libgnulib_la-printf-args.lo
  CC       libgnulib_la-printf-parse.lo
  CC       libgnulib_la-asnprintf.lo
  CC       libgnulib_la-printf.lo
  CC       libgnulib_la-vasnprintf.lo
  CCLD     libgnulib.la
Making all in .
  CC       libglib_2_0_la-gcache.lo
  CC       libglib_2_0_la-gcompletion.lo
  CC       libglib_2_0_la-gallocator.lo
  CC       libglib_2_0_la-garray.lo
  CC       libglib_2_0_la-gasyncqueue.lo
  CC       libglib_2_0_la-grel.lo
  CC       libglib_2_0_la-gatomic.lo
  CC       libglib_2_0_la-gthread-deprecated.lo
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.c:392:10: error: incompatible integer to pointer conversion passing 'gssize' (aka 'long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
  return g_atomic_pointer_add ((volatile gpointer *) atomic, val);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.h:170:46: note: expanded from macro 'g_atomic_pointer_add'
    (gssize) __sync_fetch_and_add ((atomic), (val));                         \
                                             ^~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.c:416:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
  return g_atomic_pointer_and ((volatile gpointer *) atomic, val);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.h:177:45: note: expanded from macro 'g_atomic_pointer_and'
    (gsize) __sync_fetch_and_and ((atomic), (val));                          \
                                            ^~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.c:440:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
  return g_atomic_pointer_or ((volatile gpointer *) atomic, val);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.h:184:44: note: expanded from macro 'g_atomic_pointer_or'
    (gsize) __sync_fetch_and_or ((atomic), (val));                           \
                                           ^~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.c:464:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
  return g_atomic_pointer_xor ((volatile gpointer *) atomic, val);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/glib/glib/gatomic.h:191:45: note: expanded from macro 'g_atomic_pointer_xor'
    (gsize) __sync_fetch_and_xor ((atomic), (val));                          \
                                            ^~~~~
4 errors generated.
make[6]: *** [libglib_2_0_la-gatomic.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
  CC       libglib_2_0_la-gbase64.lo
  CC       libglib_2_0_la-gbacktrace.lo
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
build step returned error code 2.
FAILED: pkg-config.stamp
/Users/foo/project/libmpv-darwin-build/build/intermediate/links/bin/meson --internal externalproject --name pkg-config --srcdir /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config --builddir /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build/build --installdir /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build/dist --logdir /Users/foo/project/libmpv-darwin-build/build/tmp/pkg-config_macos-arm64/src/pkg-config/build/meson-logs --make /usr/bin/make --verbose ./pkg-config.stamp ./pkg-config.d
ninja: build stopped: subcommand failed.
make: *** [build/intermediate/pkg-config_macos-arm64] Error 1
@birros
Copy link
Member

birros commented Jun 6, 2024

Unfortunately, I can't look into this issue at the moment. Perhaps it's due to Xcode (as is often the case) or an obsolete package.


Sorry for the delay…

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