OpenCores
Issue List
The error when making gdbserver #165
Closed dinsh opened this issue almost 13 years ago
dinsh commented almost 13 years ago

Hi, My OS is ubuntu-10.04 and linux kernel is 2.6.39. When i make gdbserver with the instruction in http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Building_gdbserver. I got some errors:

root@dinsh-desktop:/home/dinsh/toolchain/gnu-src/bd-linux-gdb/gdb/gdbserver# make CONFIG_FILES="" CONFIG_HEADERS=config.h:config.in /bin/sh ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands rm -f version.c-tmp version.c echo '#include "server.h"' >> version.c-tmp echo 'const char version[] = "'"sed q ../../../gdb-7.2/gdb/gdbserver/../version.in"'";' >> version.c-tmp echo 'const char host_name[] = "or32-linux";' >> version.c-tmp mv version.c-tmp version.c or32-linux-gcc -c -Wall -g -O2 -I. -I../../../gdb-7.2/gdb/gdbserver -I../../../gdb-7.2/gdb/gdbserver/../common -I../../../gdb-7.2/gdb/gdbserver/../regformats -I../../../gdb-7.2/gdb/gdbserver/../../include version.c or32-linux-gcc -c -Wall -g -O2 -I. -I../../../gdb-7.2/gdb/gdbserver -I../../../gdb-7.2/gdb/gdbserver/../common -I../../../gdb-7.2/gdb/gdbserver/../regformats -I../../../gdb-7.2/gdb/gdbserver/../../include ../../../gdb-7.2/gdb/gdbserver/thread-db.c In file included from ../../../gdb-7.2/gdb/gdbserver/thread-db.c:31:0: ../../../gdb-7.2/gdb/gdbserver/../gdb_thread_db.h:121:3: error: expected specifier-qualifier-list before �uint32_t� ../../../gdb-7.2/gdb/gdbserver/../gdb_thread_db.h:206:2: error: #error No uintptr_t available; your C library is too old. ../../../gdb-7.2/gdb/gdbserver/../gdb_thread_db.h:290:3: error: expected specifier-qualifier-list before �intptr_t� In file included from /opt/openrisc/lib/gcc/or32-linux/4.5.1-or32-1.0rc4/include/stdint.h:3:0, from ../../../gdb-7.2/gdb/gdbserver/thread-db.c:37: /opt/openrisc/lib/gcc/or32-linux/4.5.1-or32-1.0rc4/../../../../or32-linux/sys-include/stdint.h:131:23: error: two or more data types in declaration specifiers /opt/openrisc/lib/gcc/or32-linux/4.5.1-or32-1.0rc4/../../../../or32-linux/sys-include/stdint.h:131:32: error: expected identifier or �(� before �;� token ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �thread_db_enable_reporting�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:237:3: error: �td_thr_events_t� has no member named �event_bits� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:238:3: error: �td_thr_events_t� has no member named �event_bits� ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �find_one_thread�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:293:20: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:295:18: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:298:32: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:307:11: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:316:6: error: �struct lwp_info� has no member named �th� ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �attach_thread�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:330:25: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:331:25: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:332:40: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:336:27: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:341:6: error: �struct lwp_info� has no member named �th� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:351:13: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �maybe_attach_thread�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:367:40: error: �td_thrinfo_t� has no member named �ti_lid� ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �thread_db_get_tls_address�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:513:47: error: �struct lwp_info� has no member named �th� ../../../gdb-7.2/gdb/gdbserver/thread-db.c:514:19: warning: cast to pointer from integer of different size ../../../gdb-7.2/gdb/gdbserver/thread-db.c:519:18: warning: cast from pointer to integer of different size ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �thread_db_load_search�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:557:28: error: �td_symbol_list� undeclared (first use in this function) ../../../gdb-7.2/gdb/gdbserver/thread-db.c:557:28: note: each undeclared identifier is reported only once for each function it appears in ../../../gdb-7.2/gdb/gdbserver/thread-db.c:566:33: error: �td_thr_tls_get_addr� undeclared (first use in this function) ../../../gdb-7.2/gdb/gdbserver/thread-db.c: In function �disable_thread_event_reporting�: ../../../gdb-7.2/gdb/gdbserver/thread-db.c:846:4: error: �td_thr_events_t� has no member named �event_bits� make: *** thread-db.o Error 1

The key error i think is "../../../gdb-7.2/gdb/gdbserver/../gdb_thread_db.h:206:2: error: #error No uintptr_t available; your C library is too old."

i found that mean my glibc is not glibc 2.1.3. but how to upgrade it?

Would you pls help me ? Thx a lot!

jeremybennett commented almost 13 years ago
<p> This bug tracker has been replaced by <a href="http://opencores.org/or1k/OR1K:Community_Portal#Bug_reporting">Bugzilla</a>. Please report your bug there. </p> <p> Marking bug closed in this bug tracker. </p>
jeremybennett closed this almost 13 years ago

Assignee
No one
Labels
Request