gdb-8.2.1 build failed on macos 10.11.6

Chris Johns chrisj at rtems.org
Mon Jun 17 23:05:36 UTC 2019


On 17/6/19 5:48 pm, Jiri Gaisler wrote:
> I don't know if it is of any help, but I managed to build gdb-8.2.1 on
> MacOSX 10.10 using gcc-9. The trick was to install gcc with 'brew
> install gcc', and then configure and compile with CC=gcc-9 and CXX=g++-9
> . I'm doing this in a KVM virtual machine, but I don't think it matters.
> The resulting gdb binary worked fine. I am now trying to build the whole
> tool-chain with RSB ...

Thanks, it is great to know this can be done.

What I am not sure about is how to build with Xocde's clang on a "latest" or
"current" system or with gcc on older systems we know have problems. Do we need
to add to darwin.py a way to specify versions of MacOS and clang which are known
to be broken and to automatically switch to gcc if present or raise an error if
gcc is not found?

My policy for MacOS is building current RSB tools on current MacOS + Xcode
versions. I do not have the time or means to support testing two separate
packaging systems and their updates. I have found in the past a library
installed for some other package may break a build of our tools. Sometimes the
presence of a library can trigger a different configure path and this exposes
things not normally seen.

It would be good to support older MacOS versions if we have active users. Can we
say for a clang < 10 we attempt to use gcc? I will need some help with selecting
the versions we need.

Chris


More information about the users mailing list