<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Chris,<div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 17 Nov 2020, at 20:25, Chris Johns <<a href="mailto:chrisj@rtems.org" class="">chrisj@rtems.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 17/11/20 9:19 pm, Andrew Butterfield wrote:<br class=""><blockquote type="cite" class="">I keep getting a python error when trying to build the tool suite on <br class="">OS X. The end of the error log is:<br class=""><br class="">```<br class="">checking whether to use python... /Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br class=""></blockquote><br class="">That looks like RSB has provided a suitable path.<br class=""><br class=""><blockquote type="cite" class="">checking for python... no<br class="">configure: error: no usable python found at /Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br class="">make[1]: *** [configure-gdb] Error 1<br class="">make: *** [all] Error 2<br class="">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 class="">error: building sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-1<br class=""><br class="">```<br class=""></blockquote><br class="">What is the gdb configure command line the RSB uses?<br class=""></div></div></blockquote><div><br class=""></div>I'm not sure how to establish this. In</div><div>   rsb/rtems/build/sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-1/build/gdb/config.log</div><br class=""><div>I find the following (esa-qual is my local name for the ESA version of rtems-central):</div><div><br class=""></div><div>  $ /Users/butrfeld/REPOS/esa-qual/modules/rsb/rtems/build/sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-1/sourceware-mirror-binutils-gdb-0295dde/gdb/configure --srcdir=../../sourceware-mirror-binutils-gdb-0295dde/gdb --cache-file=./config.cache --verbose --disable-nls --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof --without-included-gettext --disable-win32-registry --disable-werror --disable-sim --without-zlib --with-expat --with-guile=no --with-python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 --prefix=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6 --bindir=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/bin --exec-prefix=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6 --includedir=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/include --libdir=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/lib --mandir=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/share/man --infodir=/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/share/info --program-transform-name=s&^&sparc-rtems6-& --disable-option-checking --build=x86_64-apple-darwin19.6.0 --host=x86_64-apple-darwin19.6.0 --target=sparc-rtems6</div><div><br class=""></div><div>Does this help?<br class=""><br class=""><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class="">What are the criteria for python to be "useable"?<br class=""></blockquote><br class="">Does the following help?<br class=""><br class=""><a href="https://git.rtems.org/rtems-source-builder/tree/source-builder/config/gdb-common-1.cfg#n7" class="">https://git.rtems.org/rtems-source-builder/tree/source-builder/config/gdb-common-1.cfg#n7</a><br class=""><br class="">On MacOS (darwin) I gave up on the library checks and assume if the header is<br class="">present the Python install is OK.<br class=""><br class="">After the build fails there should be a config.log file under `build` ...<br class=""><br class=""> find build -name config.log<br class=""></div></div></blockquote><div><br class=""></div>This finds a lot of files.</div><div>In folder</div><div>  rsb/rtems/build/sparc-rtems6-gdb-0295dde-x86_64-apple-darwin19.6.0-1/build</div><div>I find a number of folders, many of which contain a config.log</div><div><br class=""></div><div>I opened gdb/config.log and searched for "checking whether to use python" and found the transcript below at (A)</div><div><br class=""></div><div>(to save reading it all, the issues seems to be:</div><div>   clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'</div><div><br class=""></div><div>This is now confusing because, in /Library/Frameworks/Python.framework/Versions/2.7 I observe:</div><div><br class=""></div><div>$ pwd</div><div>/Library/Frameworks/Python.framework/Versions/2.7</div><div><br class=""></div><div>$ file *</div><div>...</div><div>Python:         Mach-O 64-bit dynamically linked shared library x86_64</div><div>...</div><div>$ ls -ls</div><div>...</div><div>4072 -r-xrwxr-x   1 root  admin  2084864 Apr 20  2020 Python</div><div>...</div><div><br class=""></div><div>/Library/Frameworks/Python.framework/Versions/2.7/Python is passed as a command-line argument below...</div><div><br class=""></div><div><br class=""></div><div>(A)</div><div>```</div><div><div>configure:10570: checking whether to use python</div><div>configure:10572: result: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2</div><div>configure:10770: checking for python</div><div>configure:10788: /usr/bin/cc -O2 -pipe -fbracket-depth=1024 -I/Users/butrfeld/REPOS/esa-qual/modules/rsb/rtems/build/tmp/sb-501/6/rtems-sparc/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/include -o conftest -g -O2 -I/Users/butrfeld/REPOS/esa-qual/modules/rsb/rtems/build/tmp/sb-501/6/rtems-sparc/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7  -Wl,-no_pie -L/Users/butrfeld/REPOS/esa-qual/modules/rsb/rtems/build/tmp/sb-501/6/rtems-sparc/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/lib conftest.c -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation -u _PyMac_Error Python.framework/Versions/2.7/Python -lncurses -lm  >&5</div><div>clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'</div><div>configure:10788: $? = 1</div><div>configure: failed program was:</div><div>| /* confdefs.h */</div><div>| #define PACKAGE_NAME ""</div><div>| #define PACKAGE_TARNAME ""</div><div>| #define PACKAGE_VERSION ""</div><div>| #define PACKAGE_STRING ""</div><div>| #define PACKAGE_BUGREPORT ""</div><div>| #define PACKAGE_URL ""</div><div>| #define STDC_HEADERS 1</div><div>| #define HAVE_SYS_TYPES_H 1</div><div>| #define HAVE_SYS_STAT_H 1</div><div>| #define HAVE_STDLIB_H 1</div><div>| #define HAVE_STRING_H 1</div><div>| #define HAVE_MEMORY_H 1</div><div>| #define HAVE_STRINGS_H 1</div><div>| #define HAVE_INTTYPES_H 1</div><div>| #define HAVE_STDINT_H 1</div><div>| #define HAVE_UNISTD_H 1</div><div>| #define __EXTENSIONS__ 1</div><div>| #define _ALL_SOURCE 1</div><div>| #define _GNU_SOURCE 1</div><div>| #define _POSIX_PTHREAD_SEMANTICS 1</div><div>| #define _TANDEM_SOURCE 1</div><div>| #define HAVE_DLFCN_H 1</div><div>| #define HAVE_CXX11 1</div><div>| #define PACKAGE "gdb"</div><div>| #define DEBUGDIR "/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/lib/debug"</div><div>| #define DEBUGDIR_RELOCATABLE 1</div><div>| #define BINDIR "/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/bin"</div><div>| #define GDB_DATADIR "/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/share/gdb"</div><div>| #define GDB_DATADIR_RELOCATABLE 1</div><div>| #define AUTO_LOAD_DIR ":${prefix}/share/auto-load"</div><div>| #define AUTO_LOAD_SAFE_PATH ":${prefix}/share/auto-load"</div><div>| #define DEFAULT_BFD_ARCH bfd_sparc_arch</div><div>| #define DEFAULT_BFD_VEC sparc_elf32_vec</div><div>| #define HAVE_MONSTARTUP 1</div><div>| #define PKGVERSION "(GDB) "</div><div>| #define REPORT_BUGS_TO "<<a href="https://www.gnu.org/software/gdb/bugs/" class="">https://www.gnu.org/software/gdb/bugs/</a>>"</div><div>| #define HAVE_LIBM 1</div><div>| #define HAVE_ICONV 1</div><div>| #define ICONV_CONST </div><div>| #define SIZEOF_UNSIGNED_LONG_LONG 8</div><div>| #define SIZEOF_UNSIGNED_LONG 8</div><div>| #define SIZEOF_UNSIGNED___INT128 16</div><div>| #define JIT_READER_DIR "/Users/butrfeld/REPOS/esa-qual/modules/rtems/6/lib/gdb"</div><div>| #define JIT_READER_DIR_RELOCATABLE 1</div><div>| #define HAVE_LIBEXPAT 1</div><div>| #define HAVE_XML_STOPPARSER 1</div><div>| /* end confdefs.h.  */</div><div>| #include "Python.h"</div><div>| int</div><div>| main ()</div><div>| {</div><div>| Py_Initialize ();</div><div>|   ;</div><div>|   return 0;</div><div>| }</div><div>configure:10798: result: no</div><div>configure:10888: error: no usable python found at /Library/Frameworks/Python.framework/Versions/2.7/bin/python2</div><div class="">```</div></div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class=""><br class="">Does it provide any insight into why the configure failed?<br class=""><br class=""><blockquote type="cite" class="">I have removed all traces of non-native (brew) pythons that I can find.<br class=""></blockquote><br class="">OK.<br class=""><br class=""><blockquote type="cite" class="">I followed the virtual environment instructions in the rtems-central README.md<br class=""></blockquote><br class="">I do not use rtems-central or follow it in detail.<br class=""><br class=""><blockquote type="cite" class="">:- which python<br class="">/Library/Frameworks/Python.framework/Versions/2.7/bin/python2<br class=""><br class="">:- which python3<br class="">/Library/Frameworks/Python.framework/Versions/3.8/bin/python3<br class=""></blockquote><br class="">That looks fine. Did you install python3?<br class=""></div></div></blockquote><div><br class=""></div>Yes, 3.8, from <a href="http://Python.org" class="">Python.org</a><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class="">My machine is running macOS Catalina 10.15.7<br class=""></blockquote><br class="">Catalina should be fine. I installed Big Sur yesterday and was going to test it<br class="">today. I suspect it will only have python3 support.<br class=""><br class="">Unrelated, does Catalina support APFS?<br class=""></div></div></blockquote><div><br class=""></div>Yes - in fact it requires APFS<br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Chris<br class=""></div></div></blockquote><br class=""></div><div>Regards and thanks, Andrew</div><div><br class=""></div><div><br class=""></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">--------------------------------------------------------------------<br class="">Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204<br class="">Lero@TCD, Head of Software Foundations & Verification Research Group<br class="">School of Computer Science and Statistics,<br class="">Room G.39, O'Reilly Institute, Trinity College, University of Dublin<br class="">                         <a href="http://www.scss.tcd.ie/Andrew.Butterfield/" class="">http://www.scss.tcd.ie/Andrew.Butterfield/</a><br class="">--------------------------------------------------------------------</div>
</div>
<br class=""></div></body></html>