gdb-8.2.1 build failed on macos 10.11.6
Juan Rafael García Blanco
juanrgar at gmail.com
Sat Jun 15 07:48:56 UTC 2019
Here on macos 10.11.6 I have this Xcode: Version 7.3.1 (7D1014). I cannot update if further in 10.11.6, i.e.:
Nebuchadnezzar:qemu juanrgar$ softwareupdate --list
Software Update Tool
Copyright 2002-2015 Apple Inc.
Finding available software
No new software available.
Please note that latest Xcode is not supported in all macOS versions.
Thanks,
Juan.
> On 15 Jun 2019, at 01:15, Chris Johns <chrisj at rtems.org> wrote:
>
>
>
> On 15/6/19 7:44 am, Juan Rafael García Blanco wrote:
>> Hi,
>>
>> Please find below the error I get:
>>
>> CXX tui/tui-interp.o
>> ../../gdb-8.2.1/gdb/tui/tui-hooks.c:208:36: error: default initialization of an object of const type 'const gdb::observers::token' without a user-provided default constructor
>> static const gdb::observers::token tui_observers_token;
>> ^
>> {}
>> 1 error generated.
>> make[2]: *** [tui/tui-hooks.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> make[1]: *** [all-gdb] Error 2
>> make: *** [all] Error 2
>> shell cmd failed: /bin/sh -ex /Users/juanrgar/Projects/rtems/src/rsb/rtems/build/sparc-rtems5-gdb-8.2.1-x86_64-apple-darwin15.6.0-1/do-build
>> error: building sparc-rtems5-gdb-8.2.1-x86_64-apple-darwin15.6.0-1
>> See error report: rsb-report-sparc-rtems5-gdb-8.2.1-x86_64-apple-darwin15.6.0-1.txt
>> Build Set: Time 0:06:33.478697
>
> Thanks, this is building fine for me.
>
>> My toolset is as follows:
>>
>> Nebuchadnezzar:rtems juanrgar$ /usr/bin/gcc -v
>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
>> Apple LLVM version 7.3.0 (clang-703.0.31)
>> Target: x86_64-apple-darwin15.6.0
>> Thread model: posix
>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> I am on Mojave 10.14.5 and have ..
>
> $ /usr/bin/gcc -v
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
> Apple LLVM version 10.0.1 (clang-1001.0.46.4)
> Target: x86_64-apple-darwin18.6.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
>> I needed to install the following compiler to build gdb and the rest of tools:
>>
>> Nebuchadnezzar:rtems juanrgar$ clang -v
>> clang version 8.0.0 (tags/RELEASE_800/final)
>> Target: x86_64-apple-darwin15.6.0
>> Thread model: posix
>> InstalledDir: /opt/local/libexec/llvm-8.0/bin
>>
>> I think I have the latest Xcode version installed and, thus, the latest gcc supported by Apple on my system, i.e., 10.11.6.
>
> The Xcode GUI is showing me it is Version 10.2.1 (10E1001)
>
> Have you updated the command line tools? I am not sure if this is automatically
> done when Xcode is updated, I assume it is.
>
> Chris
More information about the users
mailing list