Does anyone can compiler gdb with Python/Guile support on OSX?
Albert Huang
alberthuang314 at gmail.com
Sun Apr 26 13:56:52 UTC 2015
Hi, Andrei,
Thanks for the hint. The OSX version is Yosemite, and I installed Python
by MacPorts with Python 2.7 and Python 3.4. After seeing your post, I
realized potential problem might be the python used with gdb. On my
machine, built-in python and MacPorts python exist at the same time. I
tried to compile gdb with the built-in version of Python, and it works!
This is how I did it, first I modified the file
rtems-source-builder/source-builder/config/gdb-7-1.cfg
change the line:
%{!?without_python:--with-python} \
to:
%{!?without_python:--with-python=/usr/bin/python} \
$ cd rtems
$ ../source-builder/sb-set-builder --log=build-log.txt 4.11/rtems-arm
It works with both rtems-source-builer v0.3.0 and v0.5.0. Thank you very
much for the hint again!
Albert
"Mr. Andrei Chichak" <groups at chichak.ca> writes:
> Which version of OSX are you using (probably doesn’t matter) and when
> did you update python? (don’t bother answering this yet)
>
> My installation (using Yosemite) was broken at exactly the same point.
> It ended up being a bad installation of python.
>
> I worked with Chris on this and here are the final notes:
>
> I’m not sure how my Python install got so messed up. My laptop is
> going
> on 7 years old now and has been through a lot of msys and
> Microchip PIC
> development crap.
>
> /usr/bin/python is missing, so the original Apple install was
> superseded
> somewhere along the way, which is strange since I don’t even
> experiment
> with python.
>
> I found a website that explains how to stitch in the python.org
> <http://python.org> installs so that it looks like Apple’s way of
> doing
> things. <later> Well, that didn’t work.
>
> Next, reinstall the operating system.
>
> <later> Yes, that worked. Reinstalling Yosemite rolled Python back
> to
> 2.7.6 and the script completed.
>
>
> The script is expecting python to be in the position that Apple put
> it. If you grab a different version of python, the script is broken.
>
> Andrei
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
More information about the users
mailing list