Opened 6 years ago

Closed 6 years ago

#57877 closed defect (fixed)

gdb @8.2.1 build failure

Reported by: dbl001 (dbl) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kencu (Ken)
Port: gdb

Description (last modified by dbl001 (dbl))

OS X 10.11.6

$ sudo port upgrade outdated
--->  Computing dependencies for gdb
--->  Fetching archive for gdb
--->  Attempting to fetch gdb-8.2.1_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/gdb
--->  Attempting to fetch gdb-8.2.1_0.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/gdb
--->  Attempting to fetch gdb-8.2.1_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/gdb
--->  Fetching distfiles for gdb
--->  Attempting to fetch gdb-8.2.1.tar.gz from http://mirrors.ibiblio.org/gnu/ftp/gnu/gdb
--->  Verifying checksums for gdb                                               
--->  Extracting gdb
--->  Configuring gdb
--->  Building gdb
Error: Failed to build gdb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gdb/gdb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (1)

main.log (4.0 MB) - added by dbl001 (dbl) 6 years ago.

Change History (12)

Changed 6 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 6 years ago by dbl001 (dbl)

Description: modified (diff)

comment:2 Changed 6 years ago by Schamschula (Marius Schamschula)

This looks to be the error:

:info:build 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
:info:build static const gdb::observers::token tui_observers_token;
:info:build                                    ^
:info:build                                                       {}
:info:build In file included from tui/tui-hooks.c:20:
:info:build In file included from ./defs.h:522:
:info:build In file included from ./gdbarch.h:39:
:info:build In file included from ./frame.h:72:
:info:build In file included from ./language.h:26:
:info:build In file included from ./symtab.h:30:

comment:3 Changed 6 years ago by Schamschula (Marius Schamschula)

Keywords: gdb removed
Port: gdb added

comment:4 Changed 6 years ago by jmroot (Joshua Root)

Summary: Error: Failed to build gdb: command execution failedgdb @8.2.1 build failure

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Cc: kencu added

comment:6 Changed 6 years ago by kencu (Ken)

That was the error I saw on the ci system with clang 703.0.31 as well. When I blacklisted clang 703.0.31 all the ci systems built it <https://travis-ci.org/macports/macports-ports/builds/476691407>, and it built for me with clang-5.0 as well.

But some version of Xcode that you have is failing. You can probably force it for right now with

sudo port clean gdb
sudo port -v install gdb configure.compiler=macports-clang-5.0

But to fix it for everyone, what version of Xcode clang do you have on that failing system?

$ clang --version
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-7.0/bin

I can't seem to find it in the log. Perhaps we need to be more blanket with our blacklisting.

comment:8 Changed 6 years ago by kencu (Ken)

OK. We'll blacklist clangs less than 800.0.42.1 then. That should force them all up to clang-5.0, which works.

Thanks.

comment:9 Changed 6 years ago by jmroot (Joshua Root)

It worked fine on 10.9, so that's not necessary. XcodeVersionInfo lists clang versions.

comment:11 Changed 6 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 612f1a8d5be2d52c98f42dfa7ec8f63f4d63bc7c/macports-ports (master):

gdb: blacklist clang < 801

compilation errors on older clang versions
closes: #57877

Note: See TracTickets for help on using tickets.