Print

Print


It looks like it is picking up wrong python (python 2.7 is system python on macos):
```
  │  ~/CERN_/xrootd/builds │   stable-5.3.x !1 ?1  python --version                                                      INT ✘ │ 16:25:53 
Python 3.9.6
  │  ~/CERN_/xrootd/builds │   stable-5.3.x !1 ?1  which python3                                                             ✔ │ 16:26:03 
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3

Adding -DPYTHON_EXECUTABLE:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.9/bin/python3  didn't help in my case:
```
...
[100%] Generating python_bindings
XRootD library dir:     /Users/oshadura/CERN_sources/xrootd/builds/src
XRootD src include dir: /Users/oshadura/CERN_sources/xrootd/src
XRootD bin include dir: /Users/oshadura/CERN_sources/xrootd/builds/src
Version:                v20211129-e484f0e70
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py:507: UserWarning: The version specified ('v20211129-e484f0e70') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  warnings.warn(
running build
running build_py
running build_ext
/Library/Developer/CommandLineTools/usr/bin/cc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g --std=c++0x -I/Users/oshadura/CERN_sources/xrootd/src -I/Users/oshadura/CERN_sources/xrootd/builds/src -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c /Users/oshadura/CERN_sources/xrootd/bindings/python/src/PyXRootDCopyProcess.cc -o build/temp.macosx-10.9-universal2-3.9/Users/oshadura/CERN_sources/xrootd/bindings/python/src/PyXRootDCopyProcess.o -g
In file included from /Users/oshadura/CERN_sources/xrootd/bindings/python/src/PyXRootDCopyProcess.cc:26:
In file included from /Users/oshadura/CERN_sources/xrootd/bindings/python/src/PyXRootDCopyProcess.hh:28:
In file included from /Users/oshadura/CERN_sources/xrootd/bindings/python/src/PyXRootD.hh:28:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:25:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found
#include_next <stdio.h>
              ^~~~~~~~~
1 error generated.
error: command '/Library/Developer/CommandLineTools/usr/bin/cc' failed with exit code 1
make[2]: *** [bindings/python/python_bindings] Error 1
make[1]: *** [bindings/python/CMakeFiles/python_target.dir/all] Error 2
make: *** [all] Error 2
```
but adding `export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)` (https://stackoverflow.com/questions/51761599/cannot-find-stdio-h) finally helped...


-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1558#issuecomment-1006724087
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>
########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1