Skip to content

Can't build on Mac OS error: command '/usr/bin/clang' failed with exit code 1 #371

@Gsantomaggio

Description

@Gsantomaggio
  • UAMQP Package Version: Cloned from the repo
  • Operating System: Mac
ProductName:            macOS
ProductVersion:         14.0
BuildVersion:           23A344
  • Python Version: Python 3.11.3
$ clang -v
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin23.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ xcode-select --version
xcode-select version 2399.

Describe the bug
Cannot build the library on MAC OS
To Reproduce
Steps to reproduce the behavior:

  1. python -m venv env
  2. source env/bin/activate
  3. pip install -r dev_requirements.txt
  4. python setup.py build_ext --inplace

Expected behavior
build the library
Error

 python setup.py build_ext --inplace
running build_ext
will build uamqp in build/temp.macosx-13-x86_64-cpython-311/cmake
Building with generator flags: -G "Unix Makefiles"
calling cmake /Users/gas/git/Azure/azure-uamqp-python/src/vendor/azure-uamqp-c/ -G "Unix Makefiles" -Duse_openssl:bool=OFF -Duse_default_uuid:bool=ON  -Duse_builtin_httpapi:bool=ON  -Dskip_samples:bool=ON -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release
CMake Deprecation Warning at deps/azure-macro-utils-c/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at deps/umock-c/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- target architecture: x86_64
-- target architecture: x86_64
-- Configuring done (0.2s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/gas/git/Azure/azure-uamqp-python/build/temp.macosx-13-x86_64-cpython-311/cmake
calling cmake --build . --config Release
[ 58%] Built target aziotsharedutil
[ 83%] Built target uamqp
[100%] Built target umock_c
Adding amqp_definitions.pyx
Adding amqp_management.pyx
Adding amqp_string.pyx
Adding amqpvalue.pyx
Adding annotations.pyx
Adding async_operation.pyx
Adding base.pyx
Adding cbs.pyx
Adding connection.pyx
Adding constants.pyx
Adding error.pyx
Adding header.pyx
Adding link.pyx
Adding message.pyx
Adding message_receiver.pyx
Adding message_sender.pyx
Adding platform.pyx
Adding properties.pyx
Adding sasl.pyx
Adding session.pyx
Adding source.pyx
Adding target.pyx
Adding tlsio.pyx
Adding wsio.pyx
Adding xio.pyx
Adding xlogging.pyx
building 'cmake_uamqp' extension
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -o build/lib.macosx-13-x86_64-cpython-311/cmake_uamqp.cpython-311-darwin.so
clang: error: no input files
error: command '/usr/bin/clang' failed with exit code 1

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