This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/14748] New: Failed to check the existence oflibthread_db
- From: "brian.wang.0721 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 21 Oct 2012 15:46:05 +0000
- Subject: [Bug server/14748] New: Failed to check the existence oflibthread_db
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14748
Bug #: 14748
Summary: Failed to check the existence of libthread_db
Product: gdb
Version: 7.4
Status: NEW
Severity: normal
Priority: P2
Component: server
AssignedTo: unassigned@sourceware.org
ReportedBy: brian.wang.0721@gmail.com
Classification: Unclassified
Hello all,
I tried cross compiling gdbserver with a musl (non-glibc) ARM toolchain, which
does not provide libthread_db. The compilation failed with the following
messages, mostly regarding libthread_db. Commenting out the complained parts
will make it compile and the resulting gdbserver runs fine on the ARM target,
at least for my single thread program. Is it possible to detect the existence
of libthread_db and make it optional so that the majority part of gdbserver
would work without libthread_db?
Thanks in advance.
------------------------
thread-db.c: In function âfind_one_threadâ:
thread-db.c:292:7: error: format â%ldâ expects argument of type âlong
intâ, but argument 3 has type âthread_tâ [-Werror=format]
thread-db.c:315:6: error: âstruct lwp_infoâ has no member named âthâ
thread-db.c: In function âattach_threadâ:
thread-db.c:329:7: error: format â%ldâ expects argument of type âlong
intâ, but argument 3 has type âthread_tâ [-Werror=format]
thread-db.c:335:9: error: format â%ldâ expects argument of type âlong
intâ, but argument 2 has type âthread_tâ [-Werror=format]
thread-db.c:340:6: error: âstruct lwp_infoâ has no member named âthâ
thread-db.c: In function âthread_db_get_tls_addressâ:
thread-db.c:513:47: error: âstruct lwp_infoâ has no member named âthâ
thread-db.c: In function âdladdr_to_sonameâ:
thread-db.c:652:3: error: passing argument 1 of âdladdrâ discards
âconstâ qualifier from pointer target type [-Werror]
In file included from thread-db.c:33:0:
/opt/cross/arm-linux-musleabi/lib/gcc/arm-linux-musleabi/4.7.1/../../../../arm-linux-musleabi/include/dlfcn.h:30:5:
note: expected âvoid *â but argument is of type âconst void *â
thread-db.c: In function âtry_thread_db_load_from_sdirâ:
thread-db.c:708:30: error: âLIBTHREAD_DB_SOâ undeclared (first use in
this function)
thread-db.c:708:30: note: each undeclared identifier is reported only
once for each function it appears in
thread-db.c: In function âtry_thread_db_load_from_dirâ:
thread-db.c:719:29: error: âLIBTHREAD_DB_SOâ undeclared (first use in
this function)
thread-db.c: In function âthread_db_load_searchâ:
thread-db.c:748:41: error: âLIBTHREAD_DB_SEARCH_PATHâ undeclared
(first use in this function)
thread-db.c: In function âthread_db_handle_monitor_commandâ:
thread-db.c:971:7: error: âLIBTHREAD_DB_SEARCH_PATHâ undeclared (first
use in this function)
thread-db.c: In function âtry_thread_db_load_from_sdirâ:
thread-db.c:709:1: error: control reaches end of non-void function
[-Werror=return-type]
cc1: all warnings being treated as errors
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.