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

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

Closed
phi-friday opened this issue Sep 14, 2024 · 5 comments
Closed

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

phi-friday opened this issue Sep 14, 2024 · 5 comments

Comments

@phi-friday
Copy link

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
@phi-friday phi-friday changed the title failed install msgpack>=1.1 failed install msgpack>=1.1 (arm macos) Sep 14, 2024
@phi-friday
Copy link
Author

DEBUG Found fresh response for: https://files.pythonhosted.org/packages/50/ee/b749822f36f448b7edb5e6081cdba529fc0ef9e442d5632a05602f7a8274/msgpack-1.0.8-cp38-cp38-macosx_11_0_arm64.whl
DEBUG Acquired lock for `/Users/phi/.cache/uv/built-wheels-v3/pypi/msgpack/1.1.0`
DEBUG No cache entry for: https://files.pythonhosted.org/packages/cb/d0/7555686ae7ff5731205df1012ede15dd9d927f6227ea151e901c7406af4f/msgpack-1.1.0.tar.gz

The problem was caused by <1.1 providing a wheel file and >=1.1 not.

@phi-friday phi-friday changed the title failed install msgpack>=1.1 (arm macos) failed install msgpack>=1.1 (3.8, arm macos) Sep 14, 2024
@phi-friday
Copy link
Author

https://pypi.org/project/msgpack/#files

Operating systems other than macos are providing wheel for 3.8.
You are also providing wheel for macos except for 3.8.

Can you provide a wheel for 3.8, macos?

스크린샷 2024-09-14 오후 7 11 02

@methane
Copy link
Member

methane commented Sep 15, 2024

In your case, your msgpack in Homebrew conflicts with msgpack-python. Removing homebrew directory from include directory will fix the compile error.
I intentionally stop providing cpython 3.8 wheel for macOS. Please upgrade to 3.9 or newer.
Python 3.8 will be EOL soon.

@methane
Copy link
Member

methane commented Sep 15, 2024

See pypa/cibuildwheel#1169

@methane methane closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2024
@phi-friday
Copy link
Author

In your case, your msgpack in Homebrew conflicts with msgpack-python. Removing homebrew directory from include directory will fix the compile error. I intentionally stop providing cpython 3.8 wheel for macOS. Please upgrade to 3.9 or newer. Python 3.8 will be EOL soon.

i agree.

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