Python problems on OS X
Joel Sherrill
joel at rtems.org
Tue Nov 17 20:58:12 UTC 2020
On Tue, Nov 17, 2020 at 2:01 PM Gedare Bloom <gedare at rtems.org> wrote:
> On Tue, Nov 17, 2020 at 3:19 AM Andrew Butterfield
> <Andrew.Butterfield at scss.tcd.ie> wrote:
> >
> > I keep getting a python error when trying to build the tool suite on
> > OS X. The end of the error log is:
> >
> > ```
> > checking whether to use python...
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> > checking for python... no
> > configure: error: no usable python found at
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> > make[1]: *** [configure-gdb] Error 1
> > make: *** [all] Error 2
> > shell cmd failed: /bin/sh -ex
> /Users/butrfeld/REPOS/esa-qual/modules/rsb/rtems/build/sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-1/do-build
> > error: building sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-14
>
This is a candidate for the worst error message ever. It isn't looking for
the
Python interpreter executable, it is looking for Python development
libraries
and headers. There is a lot of code above this point but the final
check/error
is in gdb/configure.ac. If the build tree is still around, look at
gdb/config.log
for details on what it really tried.
On CentOS, the package is named something like python-devel. My recollection
is that it needs to be Python2 but that may be outdated based on the gdb
version.
> >
> > ```
> >
> > What are the criteria for python to be "useable"?
> >
> > I have removed all traces of non-native (brew) pythons that I can find.
> >
> Just a guess, sometimes there are separate user-facing python
> environments vs system-level python that can be interfaced from
> programs to call-out to python. I've seen that error raised more often
> as "Unable to find Python.h" but I'm thinking maybe it is a similar
> issue here. The linux distros package separately python and python-dev
> (or similar) to allow linking to Python from other languages. You
> might need to look for something similar for Mac maybe?
>
> > I followed the virtual environment instructions in the rtems-central
> README.md
> >
> > :- which python
> > /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> >
> > :- which python3
> > /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
> >
> > My machine is running macOS Catalina 10.15.7
> >
> > Any ideas?
> >
> >
> > --------------------------------------------------------------------
> > Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204
> > Lero at TCD, Head of Software Foundations & Verification Research Group
> > School of Computer Science and Statistics,
> > Room G.39, O'Reilly Institute, Trinity College, University of Dublin
> > http://www.scss.tcd.ie/Andrew.Butterfield/
> > --------------------------------------------------------------------
> >
> > _______________________________________________
> > users mailing list
> > users at rtems.org
> > http://lists.rtems.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20201117/c7a366b5/attachment.html>
More information about the users
mailing list