<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 17, 2020 at 2:01 PM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Nov 17, 2020 at 3:19 AM Andrew Butterfield<br>
<<a href="mailto:Andrew.Butterfield@scss.tcd.ie" target="_blank">Andrew.Butterfield@scss.tcd.ie</a>> wrote:<br>
><br>
> I keep getting a python error when trying to build the tool suite on<br>
> OS X. The end of the error log is:<br>
><br>
> ```<br>
> checking whether to use python... /Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br>
> checking for python... no<br>
> configure: error: no usable python found at /Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br>
> make[1]: *** [configure-gdb] Error 1<br>
> make: *** [all] Error 2<br>
> 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<br>
> error: building sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-14<br></blockquote><div><br></div><div>This is a candidate for the worst error message ever. It isn't looking for the</div><div>Python interpreter executable, it is looking for Python development libraries </div><div>and headers. There is a lot of code above this point but the final check/error </div><div>is in gdb/<a href="http://configure.ac">configure.ac</a>. If the build tree is still around, look at gdb/config.log</div><div>for details on what it really tried.</div><div><br></div><div>On CentOS, the package is named something like python-devel. My recollection</div><div>is that it needs to be Python2 but that may be outdated based on the gdb version.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
><br>
> ```<br>
><br>
> What are the criteria for python to be "useable"?<br>
><br>
> I have removed all traces of non-native (brew) pythons that I can find.<br>
><br>
Just a guess, sometimes there are separate user-facing python<br>
environments vs system-level python that can be interfaced from<br>
programs to call-out to python. I've seen that error raised more often<br>
as "Unable to find Python.h" but I'm thinking maybe it is a similar<br>
issue here. The linux distros package separately python and python-dev<br>
(or similar) to allow linking to Python from other languages. You<br>
might need to look for something similar for Mac maybe?<br>
<br>
> I followed the virtual environment instructions in the rtems-central README.md<br>
><br>
> :- which python<br>
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br>
><br>
> :- which python3<br>
> /Library/Frameworks/Python.framework/Versions/3.8/bin/python3<br>
><br>
> My machine is running macOS Catalina 10.15.7<br>
><br>
> Any ideas?<br>
><br>
><br>
> --------------------------------------------------------------------<br>
> Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204<br>
> Lero@TCD, Head of Software Foundations & Verification Research Group<br>
> School of Computer Science and Statistics,<br>
> Room G.39, O'Reilly Institute, Trinity College, University of Dublin<br>
> <a href="http://www.scss.tcd.ie/Andrew.Butterfield/" rel="noreferrer" target="_blank">http://www.scss.tcd.ie/Andrew.Butterfield/</a><br>
> --------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div></div>