Skip to content

failed install msgpack>=1.1 (3.8, arm macos) #624

Closed as not planned
Closed as not planned
@phi-friday

Description

@phi-friday

error log:

❯ uv sync
Resolved 40 packages in 24ms
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: msgpack==1.1.0
  Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1
--- stdout:
running bdist_wheel
running build
running build_py
copying msgpack/__init__.py -> build/lib.macosx-11.0-arm64-cpython-38/msgpack
copying msgpack/exceptions.py -> build/lib.macosx-11.0-arm64-cpython-38/msgpack
copying msgpack/fallback.py -> build/lib.macosx-11.0-arm64-cpython-38/msgpack
copying msgpack/ext.py -> build/lib.macosx-11.0-arm64-cpython-38/msgpack
running build_ext
building 'msgpack._cmsgpack' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpbbz4sc4e/tools/deps/include -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpbbz4sc4e/tools/deps/include/ncursesw -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpbbz4sc4e/tools/deps/include/uuid -Werror=unguarded-availability-new -I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/freetds/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/include -L/opt/homebrew/lib -I/opt/homebrew/opt/mysql-client/include -I/opt/homebrew/opt/openjdk@17/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/unixodbc/include -I. -I/Users/phi/Library/Caches/uv/builds-v0/.tmpvsH79R/include "-I/Users/phi/Library/Application Support/uv/python/cpython-3.8.16-macos-aarch64-none/include/python3.8" -c msgpack/_cmsgpack.c -o build/temp.macosx-11.0-arm64-cpython-38/msgpack/_cmsgpack.o
--- stderr:
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
Please check your Xcode installation
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
Please check your Xcode installation
clang: warning: argument unused during compilation: '-L/opt/homebrew/lib' [-Wunused-command-line-argument]
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:20:
In file included from msgpack/unpack_define.h:21:
/opt/homebrew/include/msgpack/sysdep.h:117:16: warning: '_msgpack_be16' macro redefined [-Wmacro-redefined]
#       define _msgpack_be16(x) ntohs((uint16_t)x)
               ^
msgpack/sysdep.h:92:11: note: previous definition is here
#  define _msgpack_be16(x) ntohs(x)
          ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:20:
In file included from msgpack/unpack_define.h:21:
/opt/homebrew/include/msgpack/sysdep.h:131:16: warning: '_msgpack_be32' macro redefined [-Wmacro-redefined]
#       define _msgpack_be32(x) ntohl((uint32_t)x)
               ^
msgpack/sysdep.h:108:11: note: previous definition is here
#  define _msgpack_be32(x) ntohl(x)
          ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:20:
In file included from msgpack/unpack_define.h:21:
/opt/homebrew/include/msgpack/sysdep.h:174:9: warning: '_msgpack_load16' macro redefined [-Wmacro-redefined]
#define _msgpack_load16(cast, from, to) do {       \
        ^
msgpack/sysdep.h:129:9: note: previous definition is here
#define _msgpack_load16(cast, from) ((cast)( \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:20:
In file included from msgpack/unpack_define.h:21:
/opt/homebrew/include/msgpack/sysdep.h:179:9: warning: '_msgpack_load32' macro redefined [-Wmacro-redefined]
#define _msgpack_load32(cast, from, to) do {       \
        ^
msgpack/sysdep.h:133:9: note: previous definition is here
#define _msgpack_load32(cast, from) ((cast)( \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:20:
In file included from msgpack/unpack_define.h:21:
/opt/homebrew/include/msgpack/sysdep.h:183:9: warning: '_msgpack_load64' macro redefined [-Wmacro-redefined]
#define _msgpack_load64(cast, from, to) do {       \
        ^
msgpack/sysdep.h:139:9: note: previous definition is here
#define _msgpack_load64(cast, from) ((cast)( \
        ^
In file included from msgpack/_cmsgpack.c:1300:
msgpack/unpack.h:279:55: error: too few arguments provided to function-like macro invocation
            uint32_t v = _msgpack_load32(uint32_t, buf);
                                                      ^
/opt/homebrew/include/msgpack/sysdep.h:179:9: note: macro '_msgpack_load32' defined here
#define _msgpack_load32(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
msgpack/unpack.h:279:26: error: use of undeclared identifier '_msgpack_load32'
            uint32_t v = _msgpack_load32(uint32_t, buf);
                         ^
msgpack/unpack.h:284:54: error: too few arguments provided to function-like macro invocation
        uint64_t value =_msgpack_load64(uint64_t, buf);
                                                     ^
/opt/homebrew/include/msgpack/sysdep.h:183:9: note: macro '_msgpack_load64' defined here
#define _msgpack_load64(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
msgpack/unpack.h:284:25: error: use of undeclared identifier '_msgpack_load64'
        uint64_t value =_msgpack_load64(uint64_t, buf);
                        ^
msgpack/unpack.h:290:52: error: too few arguments provided to function-like macro invocation
        ts->tv_nsec = _msgpack_load32(uint32_t, buf);
                                                   ^
/opt/homebrew/include/msgpack/sysdep.h:179:9: note: macro '_msgpack_load32' defined here
#define _msgpack_load32(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
msgpack/unpack.h:290:23: error: use of undeclared identifier '_msgpack_load32'
        ts->tv_nsec = _msgpack_load32(uint32_t, buf);
                      ^
msgpack/unpack.h:291:54: error: too few arguments provided to function-like macro invocation
        ts->tv_sec = _msgpack_load64(int64_t, buf + 4);
                                                     ^
/opt/homebrew/include/msgpack/sysdep.h:183:9: note: macro '_msgpack_load64' defined here
#define _msgpack_load64(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
msgpack/unpack.h:291:22: error: use of undeclared identifier '_msgpack_load64'
        ts->tv_sec = _msgpack_load64(int64_t, buf + 4);
                     ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:238:69: error: too few arguments provided to function-like macro invocation
                                          _msgpack_load16(uint16_t,n)+1,
                                                                    ^
/opt/homebrew/include/msgpack/sysdep.h:174:9: note: macro '_msgpack_load16' defined here
#define _msgpack_load16(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:238:43: error: use of undeclared identifier '_msgpack_load16'
                                          _msgpack_load16(uint16_t,n)+1,
                                          ^
msgpack/unpack_template.h:242:69: error: too few arguments provided to function-like macro invocation
                                          _msgpack_load32(uint32_t,n)+1,
                                                                    ^
/opt/homebrew/include/msgpack/sysdep.h:179:9: note: macro '_msgpack_load32' defined here
#define _msgpack_load32(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:242:43: error: use of undeclared identifier '_msgpack_load32'
                                          _msgpack_load32(uint32_t,n)+1,
                                          ^
msgpack/unpack_template.h:263:69: error: too few arguments provided to function-like macro invocation
                push_fixed_value(_uint16, _msgpack_load16(uint16_t,n));
                                                                    ^
/opt/homebrew/include/msgpack/sysdep.h:174:9: note: macro '_msgpack_load16' defined here
#define _msgpack_load16(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:263:43: error: use of undeclared identifier '_msgpack_load16'
                push_fixed_value(_uint16, _msgpack_load16(uint16_t,n));
                                          ^
msgpack/unpack_template.h:265:69: error: too few arguments provided to function-like macro invocation
                push_fixed_value(_uint32, _msgpack_load32(uint32_t,n));
                                                                    ^
/opt/homebrew/include/msgpack/sysdep.h:179:9: note: macro '_msgpack_load32' defined here
#define _msgpack_load32(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:265:43: error: use of undeclared identifier '_msgpack_load32'
                push_fixed_value(_uint32, _msgpack_load32(uint32_t,n));
                                          ^
msgpack/unpack_template.h:267:69: error: too few arguments provided to function-like macro invocation
                push_fixed_value(_uint64, _msgpack_load64(uint64_t,n));
                                                                    ^
/opt/homebrew/include/msgpack/sysdep.h:183:9: note: macro '_msgpack_load64' defined here
#define _msgpack_load64(cast, from, to) do {       \
        ^
In file included from msgpack/_cmsgpack.c:1300:
In file included from msgpack/unpack.h:391:
msgpack/unpack_template.h:267:43: error: use of undeclared identifier '_msgpack_load64'
                push_fixed_value(_uint64, _msgpack_load64(uint64_t,n));
                                          ^
msgpack/unpack_template.h:272:67: error: too few arguments provided to function-like macro invocation
                push_fixed_value(_int16, _msgpack_load16(int16_t,n));
                                                                  ^
/opt/homebrew/include/msgpack/sysdep.h:174:9: note: macro '_msgpack_load16' defined here
#define _msgpack_load16(cast, from, to) do {       \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
---

env related flags

SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
LDFLAGS=-L/opt/homebrew/opt/freetds/lib -L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/libffi/lib -L/opt/homebrew/opt/mysql-client/lib -L/opt/homebrew/opt/freetds/lib -L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/libpq/lib -L/opt/homebrew/opt/unixodbc/lib
CFLAGS=-I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/freetds/include
CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/include -L/opt/homebrew/lib -I/opt/homebrew/opt/mysql-client/include -I/opt/homebrew/opt/openjdk@17/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/unixodbc/include
PKG_CONFIG_PATH=/opt/homebrew/opt/libpq/lib/pkgconfig:/opt/homebrew/opt/mysql-client/lib/pkgconfig
JAVA_HOME=/opt/homebrew/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
MACOSX_SDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
ASDF_DIR=/Users/phi/.asdf
COLIMA_HOME=/Users/phi/.colima
PNPM_HOME=/Users/phi/Library/pnpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions