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

Error message during installation "OSError: [Errno 9] Bad file descriptor" #1467

Open
natalie-perlin opened this issue Jan 22, 2025 · 7 comments
Labels
bug Something is not working

Comments

@natalie-perlin
Copy link
Collaborator

Describe the bug
Numerous error messages of the same type are reported during installation of the spack-stack on MacOS (and possibly other machines, yet to confirm). This does not seem to affect installation of the packages however.
An example of the error:

Exception ignored in: <_io.TextIOWrapper name=17 mode='r' encoding='UTF-8'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
OSError: [Errno 9] Bad file descriptor
Exception ignored in: <_io.TextIOWrapper name=13 mode='r' encoding='utf-8'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
OSError: [Errno 9] Bad file descriptor
==> gnuconfig: Successfully installed gnuconfig-2022-09-17-5exery57owj7fopdk7okmd47u5xp4i3c

Installation logs are writtedn in verbose mode, and too large to attach,
they are available from the GoogleDrive:

log.install.Darwin.001.txt
log.install.Darwin.002.txt

To Reproduce
Steps to reproduce the behavior:
Full MacOS installation directions are given in a GoogleDoc document

Expected behavior
No errors should be reported

System:
What system(s) are you running the code on?
MacOS, but has been reported on other systems

Additional context
Add any other context about the problem here.

@natalie-perlin natalie-perlin added the bug Something is not working label Jan 22, 2025
@climbfuji
Copy link
Collaborator

Is this because of the homebrew Python? There is no need to use homebrew to install yet another Python to drive spack. You can use the default python3 that comes with macOS.

@natalie-perlin
Copy link
Collaborator Author

Is this because of the homebrew Python? There is no need to use homebrew to install yet another Python to drive spack. You can use the default python3 that comes with macOS.

Thank you, I will try to uninstall homebrew Python and use the system-wide install.

@climbfuji
Copy link
Collaborator

Not sure you need to uninstall homebrew. after running source setup.sh, you may just be able to set SPACK_PYTHON to the default OS python interpreter.

@natalie-perlin
Copy link
Collaborator Author

On one of the systems where this error message appears, some other problems result when having system-wide python3 found first in the $PATH variable, and after running source setup.sh that sets SPACK_PYTHON is set to
/Applications/Xcode.app/Contents/Developer/usr/bin/python3.

The new error happens at the concretization phase. The example below is from x86_64 + Sonoma; similar results happen on arm64/M1 + Sonoma. This issue does not happen on M2 + Ventura OS X.

[ufs-test-macos] [Natalie@Mac:~/spack-stack/spack-release-1.8.0/envs/ufs-test-macos]$ spack concretize 2>&1 | tee log.concretize.001
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
...
...
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.5/build_cache/darwin-monterey-x86_64-apple-clang-14.0.0-clingo-bootstrap-spack-zxo5ih5ac6r7lj6miwyx36ot7s6a4dcw.spec.json
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.5/build_cache/darwin-monterey-x86_64/apple-clang-14.0.0/clingo-bootstrap-spack/darwin-monterey-x86_64-apple-clang-14.0.0-clingo-bootstrap-spack-zxo5ih5ac6r7lj6miwyx36ot7s6a4dcw.spack
==> Installing "clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64" from a buildcache
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/darwin-bigsur-x86_64-apple-clang-13.0.0-clingo-bootstrap-spack-plv3woz7rwmixdo42ew27imtqqjqnnv5.spec.json
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/darwin-bigsur-x86_64/apple-clang-13.0.0/clingo-bootstrap-spack/darwin-bigsur-x86_64-apple-clang-13.0.0-clingo-bootstrap-spack-plv3woz7rwmixdo42ew27imtqqjqnnv5.spack
==> Installing "clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64" from a buildcache
==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=x86_64" due to the following failures:
spack-install raised ConflictsInSpecError: Conflicts in concretized spec "clingo-bootstrap@spack%[email protected]~docs~ipo~optimized+python build_system=cmake build_type=Release generator=make arch=darwin-sonoma-x86_64/ti7425d"

    List of matching conflicts for spec:

    libiconv@=1.17%apple-clang@=15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-x86_64
        ^gmake@=4.4.1%apple-clang@=15.0.0~guile build_system=generic arch=darwin-sonoma-x86_64

1. "arch=darwin-None-None" conflicts with "libiconv"

Run `spack --debug ...` for more detailed errors

Attempted to install clingo-bootstrap : spack install clingo-bootstrap target=x86_64 or spack install clingo-bootstrap %[email protected]. Got other warnings, followed by errors.

[ufs-test-macos] [Natalie@Mac:~/spack-stack/spack-release-1.8.0/envs/ufs-test-macos]$ spack install clingo-bootstrap %[email protected]
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.5/build_cache/darwin-monterey-x86_64-apple-clang-14.0.0-clingo-bootstrap-spack-zxo5ih5ac6r7lj6miwyx36ot7s6a4dcw.spec.json
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.5/build_cache/darwin-monterey-x86_64/apple-clang-14.0.0/clingo-bootstrap-spack/darwin-monterey-x86_64-apple-clang-14.0.0-clingo-bootstrap-spack-zxo5ih5ac6r7lj6miwyx36ot7s6a4dcw.spack
==> Installing "clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64" from a buildcache
...
...
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=14.0.0~docs+ipo+optimized+python build_system=cmake build_type=Release generator=make arch=darwin-monterey-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=14.0.0 build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build] cmake@=3.27.6%apple-clang@=14.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-monterey-x86_64 ^[deptypes=build] gmake@=4.4.1%apple-clang@=14.0.0~guile build_system=autotools arch=darwin-monterey-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=darwin-monterey-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=14.0.0 build_system=generic arch=darwin-monterey-x86_64 did not provide module clingo
==> Warning: Spec clingo-bootstrap@=spack%apple-clang@=13.0.0~docs~ipo+python+static_libstdcpp build_system=cmake build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build] bison@=3.8.2%apple-clang@=13.0.0 build_system=autotools arch=darwin-bigsur-x86_64 ^[deptypes=build] cmake@=3.24.2%apple-clang@=13.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-bigsur-x86_64 ^[deptypes=build,link,run] python@=3.9%apple-clang@=13.0.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=darwin-bigsur-x86_64 ^[deptypes=build] re2c@=2.2%apple-clang@=13.0.0 build_system=generic arch=darwin-bigsur-x86_64 did not provide module clingo
==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=x86_64" due to the following failures:
spack-install raised ConflictsInSpecError: Conflicts in concretized spec "clingo-bootstrap@spack%[email protected]~docs~ipo~optimized+python build_system=cmake build_type=Release generator=make arch=darwin-sonoma-x86_64/ti7425d"

    List of matching conflicts for spec:

    libiconv@=1.17%apple-clang@=15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-x86_64
        ^gmake@=4.4.1%apple-clang@=15.0.0~guile build_system=generic arch=darwin-sonoma-x86_64

1. "arch=darwin-None-None" conflicts with "libiconv"

Run `spack --debug ...` for more detailed errors

@natalie-perlin
Copy link
Collaborator Author

@climbfuji -

Solution to the problem found.

  1. Remove the ~/.spack directory -
    it clears any previous default specs that caused warnings and errors with concretization.

  2. Then, to make sure the $SPACK_PYTHON is set to the Xcode.app / Xcode-select default.

Final search path in ~/.bashrc is set up as following:

export SYSROOT=$(xcode-select -p)
export PATH="${SYSROOT}/usr/bin:$PATH" 

After starting a new bash shell, and running source setup.sh in a working spack-stack directory, the $SPACK_PYTHON would be set up correctly.

  1. Configure spack-stack environment as in (GoogleDoc).
    No any errors or warnings are reported during concretization, and building went OK with no "OSError"-s .

@climbfuji
Copy link
Collaborator

Do you want to add something to the documentation (Known issues for this) and then close the issue?

Please note that we should not modify .bashrc and certainly not tell people to do so; this is bad practice and has led to so many problems in the past. I would simply add to the documentation to check after source setup.sh if SPACK_PYTHON points to the correct Python, and if not set it manually before proceeding.

@natalie-perlin
Copy link
Collaborator Author

natalie-perlin commented Jan 29, 2025

@climbfuji -

Hopefully, the issue could be closed; I'd only wait for the confirmation from a stakeholder that was inquiring about the issue that the solution worked on their system.

The note to clear the ~/.spack directory ahead of new spack-stack installation might be a generally helpful troubleshooting tool, and I wonder if adding this as a solution for other occasions could be useful. This resolves conflicts after several installations at different times may cause buildup of different "default" configurations. It was certainly the case with my system, due to earlier OS upgrades (but with the user's directory ~/.spack remaining and carrying some older specs set as default) and different installation attempts of spack-stack and its versions.

As to the changes suggested for ~/.bashrc - it was not given as a separate step, but it was one of the last steps for system preparation ahead of spack-stack install on MacOS. When the packages are installed using brew/HOMEBREW, it also suggests adding certains LDFLAGS or CPPFLAGS, or addition of the search path to a $PATH variable.

Xcode or xcode-select tools do need to be installed on the system ahead of spack-stack, and setting the shell variables such as

export SYSROOT=$(xcode-select -p)
export OSX_SYSROOT=$(xcrun --show-sdk-path)
export SDKROOT=${OSX_SYSROOT}
export CMAKE_OSX_SYSROOT=${OSX_SYSROOT}
export PATH="${SYSROOT}/usr/bin:$PATH"

help to find the right paths and configurations when xcode or xcode-select tools need to be used, and as a diagnostic tool to troubleshoot issues... They could be set manually in a shell as well, not necessary added to .bashrc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

2 participants