Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 662040

Summary: =sys-devel/gdb-8.1-r2 fails to build on ia64: gdbserver/linux-low.c:664: undefined reference to `thread_db_notice_clone(thread_info*, ptid_t)'
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: ia64
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ia64-sys-devel-gdb-8.1-r2.log

Description Sergei Trofimovich (RETIRED) gentoo-dev 2018-07-24 19:07:01 UTC
Created attachment 540958 [details]
ia64-sys-devel-gdb-8.1-r2.log

* Package:    sys-devel/gdb-8.1-r2
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        client elibc_glibc ia64 kernel_linux nls python python_single_target_python3_5 python_targets_python2_7 python_targets_python3_5 server test userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox
...
ia64-unknown-linux-gnu-g++  -O2 -pipe -g    -I. -I. -I./../common -I./../regformats -I./.. -I./../../include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized -Wformat-nonliteral  -DGDBSERVER -static-libstdc++ -static-libgcc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  -o gdbserver agent.o ax.o btrace-common.o buffer.o cleanups.o common-debug.o common-exceptions.o job-control.o common-regcache.o common-utils.o debug.o dll.o errors.o environ.o event-loop.o fileio.o filestuff.o format.o gdb_tilde_expand.o gdb_vecs.o hostio.o inferiors.o mem-break.o new-op.o notif.o print-utils.o ptid.o regcache.o remote-utils.o rsp-low.o server.o signals.o signals-state-save-restore.o symbol.o target.o tdesc.o tracepoint.o utils.o vec.o version.o waitstatus.o xml-utils.o reg-ia64.o linux-low.o linux-osdata.o linux-procfs.o linux-ptrace.o linux-waitpid.o linux-personality.o linux-namespaces.o fork-child.o fork-inferior.o linux-ia64-low.o hostio-errno.o  posix-strerror.o    \
build-gnulib-gdbserver/import/libgnu.a build-libiberty-gdbserver/libiberty.a  
linux-low.o: In function `handle_extended_wait':
/var/tmp/portage/sys-devel/gdb-8.1-r2/work/gdb-8.1/gdb/gdbserver/linux-low.c:664: undefined reference to `thread_db_notice_clone(thread_info*, ptid_t)'
/var/tmp/portage/sys-devel/gdb-8.1-r2/work/gdb-8.1/gdb/gdbserver/linux-low.c:664: undefined reference to `thread_db_notice_clone(thread_info*, ptid_t)'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:380: gdbserver] Error 1
Comment 1 Larry the Git Cow gentoo-dev 2018-07-25 22:42:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78f182108aab03b5fe099973f15d8c2e23588ba5

commit 78f182108aab03b5fe099973f15d8c2e23588ba5
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-07-25 22:41:08 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-07-25 22:42:17 +0000

    profiles/arch/ia64: mask USE=server for sys-devel/gdb, bug #662040
    
    Fails to build and needs a fix upstream.
    
    Bug: https://bugs.gentoo.org/662040
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/arch/ia64/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2021-01-10 19:30:04 UTC
Is this still a problem?
Is there an upstream bug report?
Comment 3 Larry the Git Cow gentoo-dev 2021-02-11 08:13:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a018f3b69bb13c290b23105043d3fbcb761936a0

commit a018f3b69bb13c290b23105043d3fbcb761936a0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-02-11 08:12:40 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-02-11 08:13:11 +0000

    profiles/arch/ia64/package.use.mask: unmask gdb[server]
    
    gdb[server] builds fine for current stable gdb.
    
    Closes: https://bugs.gentoo.org/662040
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/arch/ia64/package.use.mask | 4 ----
 1 file changed, 4 deletions(-)