Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662040 - =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)'
Summary: =sys-devel/gdb-8.1-r2 fails to build on ia64: gdbserver/linux-low.c:664: unde...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2018-07-24 19:07 UTC by Sergei Trofimovich
Modified: 2021-02-11 08:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

ia64-sys-devel-gdb-8.1-r2.log (ia64-sys-devel-gdb-8.1-r2.log,727.69 KB, text/x-log)
2018-07-24 19:07 UTC, Sergei Trofimovich

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich gentoo-dev 2018-07-24 19:07:01 UTC
Created attachment 540958 [details]

* Package:    sys-devel/gdb-8.1-r2
 * Repository: gentoo
 * Maintainer:
 * 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):

commit 78f182108aab03b5fe099973f15d8c2e23588ba5
Author:     Sergei Trofimovich <>
AuthorDate: 2018-07-25 22:41:08 +0000
Commit:     Sergei Trofimovich <>
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.
    Signed-off-by: Sergei Trofimovich <>

 profiles/arch/ia64/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Andreas K. Hüttel 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):

commit a018f3b69bb13c290b23105043d3fbcb761936a0
Author:     Sergei Trofimovich <>
AuthorDate: 2021-02-11 08:12:40 +0000
Commit:     Sergei Trofimovich <>
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.
    Signed-off-by: Sergei Trofimovich <>

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