On 21/9/2022 1:35 am, Karel Gardas wrote: > > Well, obviously, I would fix that by installing the library. But anyway, gdb > is > IIRC compiled before GCC which probably also means you will be missing mpfr > and > mpc too -- so best way for you may be following > https://gcc.gnu.org/install/prerequisites.html > > IIRC libraries are nice enough to provide pkg config scripts, but really just > IIRC, you need to investigate yourself how to make them "available" for RSB. > > BTW, the required libraries are also mentioned here: > https://docs.rtems.org/branches/master/user/rsb/why-build-from-source.html
Yeap. > Cheers, > Karel > > On 9/20/22 15:56, andrew.butterfi...@scss.tcd.ie wrote: >> >> >> How do I fix this? Andrew, I have required for decades the RSB builds tools for MacOS with just Xcode. Recent updates by Apple to MacOS has effected using the MacOS provided python with a gdb build in some rather unpleasant ways. I will spare you the detail but Xocde is now set up so you cannot link the python runtime. I have not had time to find a workable solution. I can see 2 possible paths long term ... 1. Disable python in GDB. I do not like this as pretty printers are used with C++ 2. Detect and use a python.org installed Python Watching the changes it seems Apple has been removing a bunch of things from the OS it use to provide. For example Emacs as gone I think that is a good decision because you can download a better more current version than Apple provided. Maybe the same is happening with Python given python.org has a current and easy to install solution. In the very early days of the RSB when it was called SpecBuilder I stepped into Homebrew or Macports, not sure which, and got lost deep in the weeds of detail. I kept having issues with installed libraries when building gcc. I started becoming more focused on dependent packages and fixes in them than a gcc build for RTEMS. This was decades ago and I am not sure what the current state of Homebrew or Macports are. If the RSB can work with them that would be great and I would happily accept patches but it is not something I will spend time on. Chris >> >> >> On 20/09/2022, 14:41, "Karel Gardas" <karel.gar...@centrum.cz> wrote: >> >> >> You are missing isl library header file: >> >> configure:6284: /usr/bin/cc -O2 -pipe -fbracket-depth=1024 >> >> -I/Users/butrfeld/REPOS/RTEMS/src/rsb/rtems/build/tmp/sb-501/tools/rtems-default-tools/Users/butrfeld/RTEMS/rtems/6/include >> -o conftest -g -O2 >> >> -L/Users/butrfeld/REPOS/RTEMS/src/rsb/rtems/build/tmp/sb-501/tools/rtems-default-tools/Users/butrfeld/RTEMS/rtems/6/lib >> -lisl -lmpc -lmpfr -lgmp conftest.c -lisl -lgmp >&5 >> conftest.c:10:10: fatal error: 'isl/schedule.h' file not found >> #include <isl/schedule.h> >> ^~~~~~~~~~~~~~~~ >> 1 error generated. >> >> Karel >> >> On 9/20/22 15:35, andrew.butterfi...@scss.tcd.ie wrote: >> > >> > >> > Hi Karel, >> > >> > Gdb config.log now attached >> > >> > Andrew >> > >> > >> > On 20/09/2022, 14:17, "Karel Gardas" <karel.gar...@centrum.cz> wrote: >> > >> > >> > Usually just last page is enough. Anyway, your report reports >> that >> the >> > compilation fails on gdb configure with: >> > >> > configure: WARNING: MPFR is missing or unusable; some features >> may be >> > unavailable. >> > checking whether to use python... /opt/homebrew/bin/python3 >> > checking for python... no >> > configure: error: no usable python found at >> /opt/homebrew/bin/python3 >> > make[1]: *** [configure-gdb] Error 1 >> > >> > if you look into gdb build directory you will see config.log >> there >> which >> > may tell you more about why your homebrew python3 fails. >> > >> > Karel >> > >> > On 9/20/22 15:02, Andrew Butterfield wrote: >> > > Hi Karel, >> > > here it is - I didn't want to attach this unless necessary! >> > > >> > > Regards, >> > > Andrew >> > > >> > > >> > > >> > > >> -------------------------------------------------------------------- >> > > Andrew Butterfield Tel: +353-1-896-2517 Fax: >> +353-1-677-2204 >> > > Lero@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/ >> > > >> -------------------------------------------------------------------- >> > > >> > > >> > > -----Original Message----- >> > > From: Karel Gardas <karel.gar...@centrum.cz> >> > > Date: Tuesday 20 September 2022 at 14:00 >> > > To: "andrew.butterfi...@scss.tcd.ie" >> <andrew.butterfi...@scss.tcd.ie>, "users@rtems.org" <users@rtems.org> >> > > Subject: Re: RSB build fails on M1 Macbook Pro >> > > >> > > >> > > JFYI: 2 months ago I pushed patches in order to make M1 >> working at least >> > > for arm target. As devil is in the detail you will also >> need to provide >> > > >> rsb-report-sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1.txt for >> > > investigation. >> > > >> > > Karel >> > > >> > > On 9/20/22 14:55, andrew.butterfi...@scss.tcd.ie wrote: >> > > > Dear all, >> > > > I tried to follow the Quickstart on my new M1 Macbook >> Pro >> (Apple Silicon), >> > > > which one of my students is also trying to do. >> > > > >> > > > It fails with the following error >> > > > >> > > > ... >> > > > downloading: sources/gdb-11.2.tar.xz - 21.0MB of 21.0MB >> (100%) >> > > > building: >> sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1 >> > > > error: building >> sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1 >> > > > Build FAILED >> > > > See error report: >> rsb-report-sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1.txt >> > > > error: building >> sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1 >> > > > Build Set: Time 0:06:26.055237 >> > > > error: building >> sparc-rtems6-gdb-11.2-x86_64-apple-darwin21.6.0-1 >> > > > Build Set: Time 0:06:26.058387 >> > > > Build FAILED >> > > > >> > > > python maps to /usr/local/bin/python - it's a Mach-O >> 64-bit executable x86_64 >> > > > >> > > > python --version is 3.6.8 >> > > > >> > > > There is a homebrew python3 but it's an arm64 >> executable, so seems not to be implicated. >> > > > >> > > > The full terminal transcript is attached >> > > > >> > > > Regards, >> > > > Andrew >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> -------------------------------------------------------------------- >> > > > Andrew Butterfield Tel: +353-1-896-2517 Fax: >> +353-1-677-2204 >> > > > Lero@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@rtems.org >> > > > http://lists.rtems.org/mailman/listinfo/users >> > > >> > > >> > >> > >> >> > > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users