Dear colleagues,
I’m trying to build O2/O2Physics after a forced update of the macOS to Ventura 13.1.
I already faced several difficulties in the compilation, but now I’m stuck with XRootD.
I tried to look for a possible reason but I couldn’t find the right one.
The most relevant error is:
ld: library not found for -ldl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/Library/Developer/CommandLineTools/usr/bin/c++' failed with exit code 1
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
The full log is attached.
Here is the list of my building tools and their version:
well, i have no idea … you could try in your environment to do python3 -m pip install --user --upgrade xrootd and if it breaks, report to upstream the problem (Issues · xrootd/xrootd · GitHub)
if it is successful, please report here, as it would mean that the settings that we use must be tweaked, and maybe an macos expert can find then a solution…
(personally i strongly believe macos to be a bad choice for any kind of usage, so not only that i have 0 experience with it but also i do not plan to gain any)
Dear @eulisse, @asevcenc,
I tried to do python3 -m pip install --user --upgrade xrootd but it broke:
Failed to build xrootd
Installing collected packages: xrootd
Running setup.py install for xrootd ... error
error: subprocess-exited-with-error
× Running setup.py install for xrootd did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py:487: UserWarning: Normalizing '5.5.1
' to '5.5.1'
warnings.warn(tmpl.format(**locals()))
running install
Some dependencies are missing:
openssl development package is missing!
python3 development package is missing!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/2w/6pqhy56s3gq1q6t_6s0p2hw00000gn/T/pip-install-dl4eysdr/xrootd_dae8f5736cda4044b6c0545263e5527c/setup.py", line 205, in <module>
setup(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/2w/6pqhy56s3gq1q6t_6s0p2hw00000gn/T/pip-install-dl4eysdr/xrootd_dae8f5736cda4044b6c0545263e5527c/setup.py", line 165, in run
raise Exception( 'Dependencies missing!' )
Exception: Dependencies missing!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> xrootd
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Hence, as suggested by Adrian, I reported the issue in the github of xrootd. I hope to have a solution as soon as possible.
@strogolo unfortunately these error come from lacking of dependencies: python3 and openssl
beside, these are also required: json-c, libxml2, libuuid, zlib
well, i have no idea … you could try in your environment to do python3 -m pip install --user --upgrade xrootd and if it breaks, report to upstream the problem (Issues · xrootd/xrootd · GitHub 1)
if it is successful, please report here, as it would mean that the settings that we use must be tweaked, and maybe an macos expert can find then a solution…
so, these missing dependencies comes from tryout of installing xrootd directly in as the user (not within ALICE framework), and the purpose of exercise was to validate the xrootd installation process as native procedure (so it can be reported to upstream as is, without any of our customizations that could be hard to debug by upstream devs)
Dear @eulisse, @asevcenc,
I have received a reply from XRootD people (XRootD compilation failing on macOS (13.1) · Issue #1878 · xrootd/xrootd · GitHub).
From his comment it seems that openssl and python3 dependencies are missing and moreover he suggests to install XRootD from Homebrew.
Nevertheless, if I check (brew list --version | sort or directly tyiping openssl version or python3) I can see that they are present in my laptop. Hence, do you have any suggestion on how to fix these dependencies?
Thanks,
Stefano
Dear all,
this doesn’t work anymore with MacOS Monterey 12.6.3, XCode 14.2.
It seems there is a mismatch between installed and linked python versions. Many users are reporting it via mails and, so far, no help nor hints were suggested by anyone. Is there a way to help people overcome this issue and try to work?