public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* "Disabling thread support in gdbserver" problem
@ 2010-02-08 14:39 Daniele Palmas
  2010-02-11 19:36 ` Yann E. MORIN
  2010-02-25 18:50 ` Yann E. MORIN
  0 siblings, 2 replies; 11+ messages in thread
From: Daniele Palmas @ 2010-02-08 14:39 UTC (permalink / raw)
  To: crossgcc

Hello,

I'm using crosstool-NG 1.6.0 for building a glibc toolchain for my AT91SAM9260 target (binutils 2.19.1, gcc 4.3.2, glibc 2.9).

Building the toolchain succeeded correctly, but analyzing the log I've found the following lines:

<SNIP>
[EXTRA]    Installing cross-gdb
[INFO ]  Installing cross-gdb: done in 199.51s (at 38:38)
[INFO ]  =================================================================
[INFO ]  Installing gdbserver
[EXTRA]    Configuring gdbserver
[WARN ]    configure: WARNING: Could not find libthread_db.
[WARN ]    configure: WARNING: Disabling thread support in gdbserver.
[EXTRA]    Building gdbserver
[EXTRA]    Installing gdbserver
[INFO ]  Installing gdbserver: done in 10.86s (at 38:49)
[INFO ]  =================================================================
<SNIP>

Actually I am not able to debug multithreaded applications, though libthread_db exists in the sysroot (and in my target).

I've googled, trying to find a solution, but no luck: it seems that this problem is due to some libraries that are stripped at the moment of gdbserver building, but they should not. However I have not understood very well who is stripping what and how to change this behaviour...

Any hint?

Thanks in advance,
Daniele

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: "Disabling thread support in gdbserver" problem
  2010-02-08 14:39 "Disabling thread support in gdbserver" problem Daniele Palmas
@ 2010-02-11 19:36 ` Yann E. MORIN
  2010-02-12 10:15   ` Daniele Palmas
  2010-02-25 18:50 ` Yann E. MORIN
  1 sibling, 1 reply; 11+ messages in thread
From: Yann E. MORIN @ 2010-02-11 19:36 UTC (permalink / raw)
  To: crossgcc; +Cc: Daniele Palmas

Hello Daniele, All,

On Monday 08 February 2010 15:38:55 Daniele Palmas wrote:
> I'm using crosstool-NG 1.6.0 for building a glibc toolchain for my
> AT91SAM9260 target (binutils 2.19.1, gcc 4.3.2, glibc 2.9).
> 
> Building the toolchain succeeded correctly, but analyzing the log I've
> found the following lines: 
> [EXTRA]    Installing cross-gdb
> [INFO ]  Installing cross-gdb: done in 199.51s (at 38:38)
> [INFO ]  =================================================================
> [INFO ]  Installing gdbserver
> [EXTRA]    Configuring gdbserver
> [WARN ]    configure: WARNING: Could not find libthread_db.
> [WARN ]    configure: WARNING: Disabling thread support in gdbserver.
> [EXTRA]    Building gdbserver
> [EXTRA]    Installing gdbserver
> [INFO ]  Installing gdbserver: done in 10.86s (at 38:49)
> [INFO ]  =================================================================
> <SNIP>
> 
> Actually I am not able to debug multithreaded applications, though
> libthread_db exists in the sysroot (and in my target).

We'll need at least the complete build.log file that is present in the
toolchain install directory, and optionally your .config file. Without
that, it's almost impossible to see what went wrong.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-11 19:36 ` Yann E. MORIN
@ 2010-02-12 10:15   ` Daniele Palmas
  2010-02-12 22:16     ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Daniele Palmas @ 2010-02-12 10:15 UTC (permalink / raw)
  To: Yann E. MORIN, crossgcc

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

-----Original Message-----
> From: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr] 
> Sent: giovedì 11 febbraio 2010 20.37
> To: crossgcc@sourceware.org
> Cc: Daniele Palmas
> Subject: Re: "Disabling thread support in gdbserver" problem
>
> Hello Daniele, All,
>
>
> We'll need at least the complete build.log file that is present in the
> toolchain install directory, and optionally your .config file. Without
> that, it's almost impossible to see what went wrong.

Hello Yann,

first of all thanks for your support. 
Attached you can find the needed file.

Another piece of information that can be useful: configuring the gdbserver I've found the line 

[ALL  ]    checking for libthread_db... no  

I suspect this is the problem, however I have not understood why the build system doesn't find it since it exists. Should I force this check modifying the configure.ac?

Regards,
Daniele

>
> Regards,
> Yann E. MORIN.



[-- Attachment #2: .config --]
[-- Type: application/octet-stream, Size: 9419 bytes --]

#
# Automatically generated make config: don't edit
# crosstool-NG version: 1.5.3
# Fri Feb 12 09:08:14 2010
#

#
# Paths and misc options
#

#
# crosstool-NG behavior
#
# CT_OBSOLETE is not set
# CT_EXPERIMENTAL is not set
# CT_DEBUG_CT is not set

#
# Paths
#
CT_LOCAL_TARBALLS_DIR="/home/danielepa/temp"
CT_SAVE_TARBALLS=y
CT_WORK_DIR="${CT_TOP_DIR}/targets"
CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
CT_INSTALL_DIR="${CT_PREFIX_DIR}"
CT_REMOVE_DOCS=y
# CT_INSTALL_DIR_RO is not set

#
# Downloading
#
# CT_FORBID_DOWNLOAD is not set
# CT_FORCE_DOWNLOAD is not set
# CT_USE_MIRROR is not set
CT_CONNECT_TIMEOUT=10
# CT_ONLY_DOWNLOAD is not set

#
# Extracting
#
# CT_FORCE_EXTRACT is not set
CT_OVERIDE_CONFIG_GUESS_SUB=y
# CT_ONLY_EXTRACT is not set
CT_PATCH_BUNDLED=y
# CT_PATCH_LOCAL is not set
# CT_PATCH_BUNDLED_LOCAL is not set
# CT_PATCH_LOCAL_BUNDLED is not set
# CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set
# CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set
CT_PATCH_ORDER="bundled"
# CT_PATCH_SINGLE is not set
# CT_PATCH_USE_LOCAL is not set

#
# Build behavior
#
CT_PARALLEL_JOBS=2
CT_LOAD=0
CT_NICE=0
CT_USE_PIPES=y
# CT_CONFIG_SHELL_SH is not set
# CT_CONFIG_SHELL_ASH is not set
CT_CONFIG_SHELL_BASH=y
# CT_CONFIG_SHELL_CUSTOM is not set
CT_CONFIG_SHELL="bash"

#
# Logging
#
# CT_LOG_ERROR is not set
# CT_LOG_WARN is not set
# CT_LOG_INFO is not set
# CT_LOG_EXTRA is not set
# CT_LOG_DEBUG is not set
CT_LOG_ALL=y
CT_LOG_LEVEL_MAX="ALL"
CT_LOG_SEE_TOOLS_WARN=y
CT_LOG_TO_FILE=y
CT_LOG_FILE_COMPRESS=y

#
# Target options
#
CT_ARCH="arm"
# CT_ARCH_64 is not set
# CT_ARCH_SUPPORTS_BOTH_MMU is not set
CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
CT_ARCH_SUPPORT_ARCH=y
CT_ARCH_SUPPORT_ABI=y
CT_ARCH_SUPPORT_CPU=y
CT_ARCH_SUPPORT_TUNE=y
CT_ARCH_SUPPORT_FPU=y
# CT_ARCH_DEFAULT_HAS_MMU is not set
# CT_ARCH_DEFAULT_BE is not set
CT_ARCH_DEFAULT_LE=y
CT_ARCH_ARCH=""
CT_ARCH_ABI=""
CT_ARCH_CPU=""
CT_ARCH_TUNE=""
CT_ARCH_FPU=""
# CT_ARCH_BE is not set
CT_ARCH_LE=y
# CT_ARCH_FLOAT_HW is not set
CT_ARCH_FLOAT_SW=y
CT_TARGET_CFLAGS=""
CT_TARGET_LDFLAGS=""

#
# General target options
#
# CT_ARCH_alpha is not set
CT_ARCH_arm=y
# CT_ARCH_avr32 is not set
# CT_ARCH_ia64 is not set
# CT_ARCH_mips is not set
# CT_ARCH_powerpc64 is not set
# CT_ARCH_powerpc is not set
# CT_ARCH_sh is not set
# CT_ARCH_x86_64 is not set
# CT_ARCH_x86 is not set
# CT_ARCH_ALPHA_EV4 is not set
# CT_ARCH_ALPHA_EV45 is not set
# CT_ARCH_ALPHA_EV5 is not set
# CT_ARCH_ALPHA_EV56 is not set
# CT_ARCH_ALPHA_EV6 is not set
# CT_ARCH_ALPHA_EV67 is not set
# CT_ARCH_ARM_EABI is not set
CT_ARCH_ARM_ABI_OK=y
CT_ARCH_USE_MMU=y

#
# Target optimisations
#

#
# Toolchain options
#

#
# General toolchain options
#
CT_USE_SYSROOT=y
CT_SYSROOT_DIR_PREFIX=""

#
# Tuple completion and aliasing
#
CT_TARGET_VENDOR="unknown"
CT_TARGET_ALIAS_SED_EXPR=""
CT_TARGET_ALIAS=""

#
# Toolchain type
#
# CT_NATIVE is not set
CT_CROSS=y
# CT_CROSS_NATIVE is not set
# CT_CANADIAN is not set
CT_TOOLCHAIN_TYPE="cross"

#
# Build system
#
CT_BUILD=""
CT_BUILD_PREFIX=""
CT_BUILD_SUFFIX=""

#
# Operating System
#
# CT_BARE_METAL is not set
CT_KERNEL_SUPPORTS_SHARED_LIBS=y
CT_KERNEL="linux"
# CT_KERNEL_bare_metal is not set
CT_KERNEL_linux=y
# CT_KERNEL_LINUX_INSTALL is not set
# CT_KERNEL_V_2_6_31_1 is not set
# CT_KERNEL_V_2_6_31 is not set
# CT_KERNEL_V_2_6_30_8 is not set
# CT_KERNEL_V_2_6_30_7 is not set
# CT_KERNEL_V_2_6_30_6 is not set
# CT_KERNEL_V_2_6_30_5 is not set
# CT_KERNEL_V_2_6_30_4 is not set
# CT_KERNEL_V_2_6_30_3 is not set
# CT_KERNEL_V_2_6_30_2 is not set
# CT_KERNEL_V_2_6_30_1 is not set
# CT_KERNEL_V_2_6_30 is not set
# CT_KERNEL_V_2_6_29_6 is not set
# CT_KERNEL_V_2_6_28_10 is not set
# CT_KERNEL_V_2_6_27_35 is not set
# CT_KERNEL_V_2_6_26_8 is not set
# CT_KERNEL_V_2_6_25_20 is not set
# CT_KERNEL_V_2_6_24_7 is not set
# CT_KERNEL_V_2_6_23_17 is not set
# CT_KERNEL_V_2_6_22_19 is not set
# CT_KERNEL_V_2_6_21_7 is not set
# CT_KERNEL_V_2_6_20_21 is not set
# CT_KERNEL_V_2_6_19_7 is not set
# CT_KERNEL_V_2_6_18_8 is not set
# CT_KERNEL_V_select is not set
# CT_KERNEL_LINUX_VERBOSITY_0 is not set
# CT_KERNEL_LINUX_VERBOSITY_1 is not set
# CT_KERNEL_LINUX_VERBOSITY_2 is not set
CT_KERNEL_LINUX_USE_CUSTOM_HEADERS=y
CT_KERNEL_LINUX_CUSTOM_IS_TARBALL=y
CT_KERNEL_LINUX_CUSTOM_PATH="/home/danielepa/telit/firmware-include.tar.gz"

#
# Common kernel options
#
CT_SHARED_LIBS=y

#
# Binary utilities
#
CT_ARCH_BINFMT_ELF=y
# CT_ARCH_BINFMT_FLAT is not set

#
# GNU binutils
#
CT_BINUTILS_VERSION="2.19.1"
# CT_BINUTILS_V_2_19_51_0_2 is not set
# CT_BINUTILS_V_2_19_51_0_1 is not set
# CT_BINUTILS_V_2_19_50_0_1 is not set
CT_BINUTILS_V_2_19_1=y
# CT_BINUTILS_V_2_19 is not set
# CT_BINUTILS_V_2_18_93 is not set
# CT_BINUTILS_V_2_18_92 is not set
# CT_BINUTILS_V_2_18_91 is not set
# CT_BINUTILS_V_2_18_90 is not set
# CT_BINUTILS_V_2_18_50_0_9 is not set
# CT_BINUTILS_V_2_18_50_0_8 is not set
# CT_BINUTILS_V_2_18_50_0_7 is not set
# CT_BINUTILS_V_2_18_50_0_6 is not set
# CT_BINUTILS_V_2_18_50_0_4 is not set
# CT_BINUTILS_V_2_18 is not set
# CT_BINUTILS_V_2_17 is not set
# CT_BINUTILS_V_2_16_1 is not set
# CT_BINUTILS_V_2_15 is not set
# CT_BINUTILS_V_2_14 is not set
CT_BINUTILS_EXTRA_CONFIG=""
CT_BINUTILS_FOR_TARGET=y
CT_BINUTILS_FOR_TARGET_IBERTY=y
CT_BINUTILS_FOR_TARGET_BFD=y

#
# C compiler
#
CT_CC="gcc"
CT_CC_VERSION="4.3.2"
CT_CC_gcc=y
# CT_CC_V_4_4_1 is not set
# CT_CC_V_4_4_0 is not set
# CT_CC_V_4_3_4 is not set
# CT_CC_V_4_3_3 is not set
CT_CC_V_4_3_2=y
# CT_CC_V_4_3_1 is not set
# CT_CC_V_4_3_0 is not set
# CT_CC_V_4_2_4 is not set
# CT_CC_V_4_2_3 is not set
# CT_CC_V_4_2_2 is not set
# CT_CC_V_4_2_1 is not set
# CT_CC_V_4_2_0 is not set
# CT_CC_V_4_1_2 is not set
# CT_CC_V_4_1_1 is not set
# CT_CC_V_4_1_0 is not set
# CT_CC_V_4_0_4 is not set
# CT_CC_V_4_0_3 is not set
# CT_CC_V_4_0_2 is not set
# CT_CC_V_4_0_1 is not set
# CT_CC_V_4_0_0 is not set
# CT_CC_V_3_4_6 is not set
# CT_CC_V_3_3_6 is not set
# CT_CC_V_3_2_3 is not set
CT_CC_GCC_4_3_or_later=y
# CT_CC_GCC_4_4_or_later is not set
CT_CC_CXA_ATEXIT=y
CT_CC_SJLJ_EXCEPTIONS_CONFIGURE=y
# CT_CC_SJLJ_EXCEPTIONS_USE is not set
# CT_CC_SJLJ_EXCEPTIONS_DONT_USE is not set
CT_CC_ENABLE_CXX_FLAGS=""
CT_CC_CORE_EXTRA_CONFIG=""
CT_CC_EXTRA_CONFIG=""
CT_CC_PKGVERSION="crosstool-NG-${CT_VERSION}"
CT_CC_BUGURL=""
CT_CC_SUPPORT_CXX=y
CT_CC_SUPPORT_FORTRAN=y
CT_CC_SUPPORT_JAVA=y
CT_CC_SUPPORT_ADA=y
CT_CC_SUPPORT_OBJC=y
CT_CC_SUPPORT_OBJCXX=y

#
# Additional supported languages:
#
CT_CC_LANG_CXX=y
# CT_CC_LANG_FORTRAN is not set
# CT_CC_LANG_JAVA is not set
CT_LIBC="glibc"

#
# C-library
#
CT_LIBC_VERSION="2.9"
# CT_LIBC_eglibc is not set
CT_LIBC_glibc=y
# CT_LIBC_newlib is not set
# CT_LIBC_uClibc is not set
# CT_LIBC_V_2_10 is not set
# CT_EGLIBC_V_2_9 is not set
# CT_EGLIBC_V_2_8 is not set
# CT_EGLIBC_V_2_7 is not set
# CT_EGLIBC_V_2_6 is not set
# CT_EGLIBC_V_2_5 is not set
# CT_EGLIBC_V_TRUNK is not set
CT_LIBC_V_2_9=y
# CT_LIBC_V_2_8 is not set
# CT_LIBC_V_2_7 is not set
# CT_LIBC_V_2_6_1 is not set
# CT_LIBC_V_2_6 is not set
# CT_LIBC_V_2_5_1 is not set
# CT_LIBC_V_2_5 is not set
# CT_LIBC_V_2_3_6 is not set
CT_LIBC_GLIBC_2_8_or_later=y
# CT_LIBC_GLIBC_TARBALL is not set
CT_LIBC_GLIBC_CVS=y
CT_LIBC_GLIBC_CVS_date=""

#
# glibc/eglibc common options
#
CT_LIBC_GLIBC_EXTRA_CONFIG=""
CT_LIBC_GLIBC_CONFIGPARMS=""
CT_LIBC_GLIBC_EXTRA_CFLAGS=""
CT_LIBC_EXTRA_CC_ARGS=""
CT_LIBC_GLIBC_USE_PORTS=y
CT_LIBC_ADDONS_LIST=""

#
# WARNING!!!
#

#
# For glibc >= 2.8, addons are only available via a CVS checkout.
#

#
# Be sure to review the associated options, above.
#
# CT_LIBC_GLIBC_KERNEL_VERSION_NONE is not set
CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS=y
# CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN is not set
CT_LIBC_GLIBC_MIN_KERNEL=""

#
# Common C library options
#
CT_LIBC_SUPPORT_NPTL=y
CT_LIBC_SUPPORT_LINUXTHREADS=y
CT_THREADS="nptl"
CT_THREADS_NPTL=y
# CT_THREADS_LINUXTHREADS is not set
# CT_THREADS_NONE is not set

#
# Debug facilities
#
CT_DEBUG_dmalloc=y
CT_DMALLOC_V_5_5_2=y
# CT_DMALLOC_V_5_4_3 is not set
CT_DMALLOC_VERSION="5.5.2"
CT_DEBUG_duma=y
CT_DUMA_A=y
CT_DUMA_SO=y
CT_DUMA_V_2_5_15=y
# CT_DUMA_V_2_5_14 is not set
# CT_DUMA_V_2_5_12 is not set
# CT_DUMA_V_2_5_8 is not set
# CT_DUMA_V_2_5_1 is not set
CT_DUMA_VERSION="2_5_15"
CT_DEBUG_gdb=y
CT_GDB_CROSS=y
# CT_GDB_CROSS_STATIC is not set
# CT_GDB_NATIVE is not set
CT_GDB_GDBSERVER=y
CT_GDB_GDBSERVER_STATIC=y
CT_GDB_V_6_8=y
# CT_GDB_V_6_7_1 is not set
# CT_GDB_V_6_7 is not set
# CT_GDB_V_6_6 is not set
# CT_GDB_V_6_5 is not set
# CT_GDB_V_6_4 is not set
# CT_GDB_V_snapshot is not set
CT_GDB_VERSION="6.8"
# CT_DEBUG_ltrace is not set
# CT_DEBUG_strace is not set

#
# Tools facilities
#
CT_TOOL_libelf=y
CT_LIBELF_V_0_8_12=y
# CT_LIBELF_V_0_8_11 is not set
# CT_LIBELF_V_0_8_10 is not set
CT_LIBELF_VERSION="0.8.12"
CT_TOOL_sstrip=y
CT_SSTRIP_BUILDROOT=y
# CT_SSTRIP_ELFKICKERS is not set
CT_SSTRIP_FROM="buildroot"

#
# Companion libraries
#
CT_WRAPPER_NEEDED=y
CT_GMP_MPFR=y
CT_GMP_V_4_3_1=y
# CT_GMP_V_4_3_0 is not set
# CT_GMP_V_4_2_4 is not set
# CT_GMP_V_4_2_2 is not set
CT_GMP_VERSION="4.3.1"
CT_MPFR_V_2_4_1=y
# CT_MPFR_V_2_4_0 is not set
# CT_MPFR_V_2_3_2 is not set
# CT_MPFR_V_2_3_1 is not set
CT_MPFR_VERSION="2.4.1"
# CT_PPL_CLOOG_MPC is not set

#
# Companion libraries common options
#
# CT_COMP_LIBS_CHECK is not set
# CT_COMP_LIBS_TARGET is not set
CT_TOOLS_WRAPPER_SCRIPT=y
# CT_TOOLS_WRAPPER_EXEC is not set
CT_TOOLS_WRAPPER="script"

[-- Attachment #3: build.log.bz2 --]
[-- Type: application/octet-stream, Size: 833747 bytes --]

[-- Attachment #4: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: "Disabling thread support in gdbserver" problem
  2010-02-12 10:15   ` Daniele Palmas
@ 2010-02-12 22:16     ` Khem Raj
  2010-02-15  8:50       ` Daniele Palmas
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2010-02-12 22:16 UTC (permalink / raw)
  To: Daniele Palmas; +Cc: Yann E. MORIN, crossgcc

On Fri, Feb 12, 2010 at 2:14 AM, Daniele Palmas
<Daniele.Palmas@telit.com> wrote:
> -----Original Message-----
>> From: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr]
>> Sent: giovedì 11 febbraio 2010 20.37
>> To: crossgcc@sourceware.org
>> Cc: Daniele Palmas
>> Subject: Re: "Disabling thread support in gdbserver" problem
>>
>> Hello Daniele, All,
>>
>>
>> We'll need at least the complete build.log file that is present in the
>> toolchain install directory, and optionally your .config file. Without
>> that, it's almost impossible to see what went wrong.
>
> Hello Yann,
>
> first of all thanks for your support.
> Attached you can find the needed file.
>
> Another piece of information that can be useful: configuring the gdbserver I've found the line
>
> [ALL  ]    checking for libthread_db... no
>
> I suspect this is the problem, however I have not understood why the build system doesn't find it since it exists. Should I force this check modifying the configure.ac?


Send the config.log for gdb/gdbserver most probably the test for
libthread_db is failing because its using the wrong libthread_db (from
host instead of target)

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-12 22:16     ` Khem Raj
@ 2010-02-15  8:50       ` Daniele Palmas
  2010-02-15 21:37         ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Daniele Palmas @ 2010-02-15  8:50 UTC (permalink / raw)
  To: Khem Raj; +Cc: Yann E. MORIN, crossgcc

[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]

-----Original Message-----
From: Khem Raj [mailto:raj.khem@gmail.com] 
Sent: venerdì 12 febbraio 2010 23.17
To: Daniele Palmas
Cc: Yann E. MORIN; crossgcc@sourceware.org
Subject: Re: "Disabling thread support in gdbserver" problem

>> Another piece of information that can be useful: configuring the gdbserver I've found the line
>>
>> [ALL  ]    checking for libthread_db... no
>>
>> I suspect this is the problem, however I have not understood why the build system doesn't find it since it exists. Should I force this check modifying the configure.ac?
>
>
> Send the config.log for gdb/gdbserver most probably the test for
> libthread_db is failing because its using the wrong libthread_db (from
> host instead of target)

Hello Khem,

in attachment you can find the config.log. For your convenience I've quoted the lines that seem important to me:

[SNIP]
configure:4062: checking for libthread_db
configure:4093: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  -lthread_db >&5
/home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: cannot find -lthread_db
collect2: ld returned 1 exit status
configure:4099: $? = 1
configure: failed program was:
[SNIP]
configure:4151: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  /lib/libthread_db.so.1 >&5
/home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: attempted static link of dynamic object `/lib/libthread_db.so.1'
collect2: ld returned 1 exit status
configure:4157: $? = 1
configure: failed program was:
[SNIP]

I can understand the second problem, but not the first one: should the linker not have a default path for the libraries like libthread_db?

Thanks,
Daniele

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 39685 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/src/gdb-6.8/gdb/gdbserver/configure --build=i486-build_pc-linux-gnu --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --prefix=/usr --sysconfdir=/etc --localstatedir=/var --includedir=/home/danielepa/x-tools/arm-unknown-linux-gnu/arm-unknown-linux-gnu//sys-root/usr/include --with-build-sysroot=/home/danielepa/x-tools/arm-unknown-linux-gnu/arm-unknown-linux-gnu//sys-root --program-prefix= --without-uiout --disable-tui --disable-gdbtk --without-x --without-included-gettext --without-develop --disable-werror

## --------- ##
## Platform. ##
## --------- ##

hostname = LD2011
uname -m = i686
uname -r = 2.6.28-11-generic
uname -s = Linux
uname -v = #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/danielepa/x-tools/arm-unknown-linux-gnu/buildtools
PATH: /home/danielepa/x-tools/arm-unknown-linux-gnu/bin
PATH: /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/arm-unknown-linux-gnu/build/gcc-core-shared/bin
PATH: /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/arm-unknown-linux-gnu/build/gcc-core-static/bin
PATH: /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /opt/crosstools-glibc/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1308: checking for arm-unknown-linux-gnu-gcc
configure:1324: found /home/danielepa/x-tools/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
configure:1334: result: arm-unknown-linux-gnu-gcc
configure:1616: checking for C compiler version
configure:1619: arm-unknown-linux-gnu-gcc --version </dev/null >&5
arm-unknown-linux-gnu-gcc (crosstool-NG-1.5.3) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1622: $? = 0
configure:1624: arm-unknown-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
Target: arm-unknown-linux-gnu
Configured with: /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/src/gcc-4.3.2/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=arm-unknown-linux-gnu --prefix=/home/danielepa/x-tools/arm-unknown-linux-gnu --with-sysroot=/home/danielepa/x-tools/arm-unknown-linux-gnu/arm-unknown-linux-gnu//sys-root --enable-languages=c,c++ --disable-multilib --with-float=soft --with-pkgversion=crosstool-NG-1.5.3 --enable-__cxa_atexit --with-gmp=/home/danielepa/x-tools/arm-unknown-linux-gnu --with-mpfr=/home/danielepa/x-tools/arm-unknown-linux-gnu --with-local-prefix=/home/danielepa/x-tools/arm-unknown-linux-gnu/arm-unknown-linux-gnu//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.3.2 (crosstool-NG-1.5.3) 
configure:1627: $? = 0
configure:1629: arm-unknown-linux-gnu-gcc -V </dev/null >&5
arm-unknown-linux-gnu-gcc: '-V' option must have argument
configure:1632: $? = 1
configure:1655: checking for C compiler default output file name
configure:1658: arm-unknown-linux-gnu-gcc   -static conftest.c  >&5
configure:1661: $? = 0
configure:1707: result: a.out
configure:1712: checking whether the C compiler works
configure:1738: result: yes
configure:1745: checking whether we are cross compiling
configure:1747: result: yes
configure:1750: checking for suffix of executables
configure:1752: arm-unknown-linux-gnu-gcc -o conftest   -static conftest.c  >&5
configure:1755: $? = 0
configure:1780: result: 
configure:1786: checking for suffix of object files
configure:1807: arm-unknown-linux-gnu-gcc -c   conftest.c >&5
configure:1810: $? = 0
configure:1832: result: o
configure:1836: checking whether we are using the GNU C compiler
configure:1860: arm-unknown-linux-gnu-gcc -c   conftest.c >&5
configure:1866: $? = 0
configure:1870: test -z 
			 || test ! -s conftest.err
configure:1873: $? = 0
configure:1876: test -s conftest.o
configure:1879: $? = 0
configure:1892: result: yes
configure:1898: checking whether arm-unknown-linux-gnu-gcc accepts -g
configure:1919: arm-unknown-linux-gnu-gcc -c -g  conftest.c >&5
configure:1925: $? = 0
configure:1929: test -z 
			 || test ! -s conftest.err
configure:1932: $? = 0
configure:1935: test -s conftest.o
configure:1938: $? = 0
configure:1949: result: yes
configure:1966: checking for arm-unknown-linux-gnu-gcc option to accept ANSI C
configure:2036: arm-unknown-linux-gnu-gcc  -c -g -O2  conftest.c >&5
configure:2042: $? = 0
configure:2046: test -z 
			 || test ! -s conftest.err
configure:2049: $? = 0
configure:2052: test -s conftest.o
configure:2055: $? = 0
configure:2073: result: none needed
configure:2091: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2097: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2268: checking build system type
configure:2286: result: i486-build_pc-linux-gnu
configure:2294: checking host system type
configure:2308: result: arm-unknown-linux-gnu
configure:2316: checking target system type
configure:2330: result: arm-unknown-linux-gnu
configure:2358: checking for a BSD-compatible install
configure:2413: result: /home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/bin/install -c
configure:2445: checking how to run the C preprocessor
configure:2480: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:2486: $? = 0
configure:2518: arm-unknown-linux-gnu-gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:2524: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2563: result: arm-unknown-linux-gnu-gcc -E
configure:2587: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:2593: $? = 0
configure:2625: arm-unknown-linux-gnu-gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:2631: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2675: checking for egrep
configure:2685: result: grep -E
configure:2690: checking for ANSI C header files
configure:2715: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2721: $? = 0
configure:2725: test -z 
			 || test ! -s conftest.err
configure:2728: $? = 0
configure:2731: test -s conftest.o
configure:2734: $? = 0
configure:2846: result: yes
configure:2871: checking for sys/types.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for sys/stat.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for stdlib.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for string.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for memory.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for strings.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for inttypes.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for stdint.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2871: checking for unistd.h
configure:2887: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2893: $? = 0
configure:2897: test -z 
			 || test ! -s conftest.err
configure:2900: $? = 0
configure:2903: test -s conftest.o
configure:2906: $? = 0
configure:2917: result: yes
configure:2965: checking sgtty.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sgtty.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sgtty.h
configure:3088: result: yes
configure:2965: checking termio.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking termio.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for termio.h
configure:3088: result: yes
configure:2965: checking termios.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking termios.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for termios.h
configure:3088: result: yes
configure:2965: checking sys/reg.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:57:21: error: sys/reg.h: No such file or directory
configure:2983: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/reg.h>
configure:3006: result: no
configure:3010: checking sys/reg.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
conftest.c:23:21: error: sys/reg.h: No such file or directory
configure:3026: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| /* end confdefs.h.  */
| #include <sys/reg.h>
configure:3046: result: no
configure:3081: checking for sys/reg.h
configure:3088: result: no
configure:2956: checking for string.h
configure:2961: result: yes
configure:2965: checking proc_service.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:58:26: error: proc_service.h: No such file or directory
configure:2983: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <proc_service.h>
configure:3006: result: no
configure:3010: checking proc_service.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
conftest.c:24:26: error: proc_service.h: No such file or directory
configure:3026: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h.  */
| #include <proc_service.h>
configure:3046: result: no
configure:3081: checking for proc_service.h
configure:3088: result: no
configure:2965: checking sys/procfs.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sys/procfs.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sys/procfs.h
configure:3088: result: yes
configure:2965: checking thread_db.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking thread_db.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for thread_db.h
configure:3088: result: yes
configure:2965: checking linux/elf.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking linux/elf.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for linux/elf.h
configure:3088: result: yes
configure:2956: checking for stdlib.h
configure:2961: result: yes
configure:2956: checking for unistd.h
configure:2961: result: yes
configure:2965: checking errno.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking errno.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for errno.h
configure:3088: result: yes
configure:2965: checking fcntl.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking fcntl.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for fcntl.h
configure:3088: result: yes
configure:2965: checking signal.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking signal.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for signal.h
configure:3088: result: yes
configure:2965: checking sys/file.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sys/file.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sys/file.h
configure:3088: result: yes
configure:2965: checking malloc.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking malloc.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for malloc.h
configure:3088: result: yes
configure:2965: checking sys/ioctl.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sys/ioctl.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sys/ioctl.h
configure:3088: result: yes
configure:2965: checking netinet/in.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking netinet/in.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for netinet/in.h
configure:3088: result: yes
configure:2965: checking sys/socket.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sys/socket.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sys/socket.h
configure:3088: result: yes
configure:2965: checking netdb.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking netdb.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for netdb.h
configure:3088: result: yes
configure:2965: checking netinet/tcp.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking netinet/tcp.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for netinet/tcp.h
configure:3088: result: yes
configure:2965: checking arpa/inet.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking arpa/inet.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for arpa/inet.h
configure:3088: result: yes
configure:2965: checking sys/wait.h usability
configure:2977: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2983: $? = 0
configure:2987: test -z 
			 || test ! -s conftest.err
configure:2990: $? = 0
configure:2993: test -s conftest.o
configure:2996: $? = 0
configure:3006: result: yes
configure:3010: checking sys/wait.h presence
configure:3020: arm-unknown-linux-gnu-gcc -E  conftest.c
configure:3026: $? = 0
configure:3046: result: yes
configure:3081: checking for sys/wait.h
configure:3088: result: yes
configure:3107: checking for pread
configure:3164: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  >&5
configure:3170: $? = 0
configure:3174: test -z 
			 || test ! -s conftest.err
configure:3177: $? = 0
configure:3180: test -s conftest
configure:3183: $? = 0
configure:3195: result: yes
configure:3107: checking for pwrite
configure:3164: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  >&5
configure:3170: $? = 0
configure:3174: test -z 
			 || test ! -s conftest.err
configure:3177: $? = 0
configure:3180: test -s conftest
configure:3183: $? = 0
configure:3195: result: yes
configure:3107: checking for pread64
configure:3164: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  >&5
configure:3170: $? = 0
configure:3174: test -z 
			 || test ! -s conftest.err
configure:3177: $? = 0
configure:3180: test -s conftest
configure:3183: $? = 0
configure:3195: result: yes
configure:3207: checking for errno
configure:3228: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  >&5
configure:3234: $? = 0
configure:3238: test -z 
			 || test ! -s conftest.err
configure:3241: $? = 0
configure:3244: test -s conftest
configure:3247: $? = 0
configure:3249: result: yes - in errno.h
configure:3324: checking whether strerror is declared
configure:3348: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3354: $? = 0
configure:3358: test -z 
			 || test ! -s conftest.err
configure:3361: $? = 0
configure:3364: test -s conftest.o
configure:3367: $? = 0
configure:3378: result: yes
configure:3394: checking whether perror is declared
configure:3418: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3424: $? = 0
configure:3428: test -z 
			 || test ! -s conftest.err
configure:3431: $? = 0
configure:3434: test -s conftest.o
configure:3437: $? = 0
configure:3448: result: yes
configure:3467: checking for socklen_t
configure:3494: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3500: $? = 0
configure:3504: test -z 
			 || test ! -s conftest.err
configure:3507: $? = 0
configure:3510: test -s conftest.o
configure:3513: $? = 0
configure:3524: result: yes
configure:3540: checking if iWMMXt is selected
configure:3569: result: no
configure:3669: checking for PTRACE_GETREGS
configure:3690: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3696: $? = 0
configure:3700: test -z 
			 || test ! -s conftest.err
configure:3703: $? = 0
configure:3706: test -s conftest.o
configure:3709: $? = 0
configure:3721: result: yes
configure:3731: checking for PTRACE_GETFPXREGS
configure:3752: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3758: $? = 0
configure:3762: test -z 
			 || test ! -s conftest.err
configure:3765: $? = 0
configure:3768: test -s conftest.o
configure:3771: $? = 0
configure:3783: result: yes
configure:3795: checking for lwpid_t in sys/procfs.h
configure:3818: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3824: $? = 0
configure:3828: test -z 
			 || test ! -s conftest.err
configure:3831: $? = 0
configure:3834: test -s conftest.o
configure:3837: $? = 0
configure:3857: result: yes
configure:3860: checking for psaddr_t in sys/procfs.h
configure:3883: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3889: $? = 0
configure:3893: test -z 
			 || test ! -s conftest.err
configure:3896: $? = 0
configure:3899: test -s conftest.o
configure:3902: $? = 0
configure:3922: result: yes
configure:3925: checking for prgregset_t in sys/procfs.h
configure:3948: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:3954: $? = 0
configure:3958: test -z 
			 || test ! -s conftest.err
configure:3961: $? = 0
configure:3964: test -s conftest.o
configure:3967: $? = 0
configure:3987: result: yes
configure:3990: checking for elf_fpregset_t in sys/procfs.h
configure:4013: arm-unknown-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:4019: $? = 0
configure:4023: test -z 
			 || test ! -s conftest.err
configure:4026: $? = 0
configure:4029: test -s conftest.o
configure:4032: $? = 0
configure:4052: result: yes
configure:4062: checking for libthread_db
configure:4093: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  -lthread_db >&5
/home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: cannot find -lthread_db
collect2: ld returned 1 exit status
configure:4099: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_PROCFS_H 1
| #define HAVE_THREAD_DB_H 1
| #define HAVE_LINUX_ELF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_PREAD 1
| #define HAVE_PWRITE 1
| #define HAVE_PREAD64 1
| #define HAVE_ERRNO 1
| #define HAVE_DECL_STRERROR 1
| #define HAVE_DECL_PERROR 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_LINUX_USRREGS 1
| #define HAVE_LINUX_REGSETS 1
| #define HAVE_PTRACE_GETREGS 1
| #define HAVE_PTRACE_GETFPXREGS 1
| #define HAVE_LWPID_T 1
| #define HAVE_PSADDR_T 1
| #define HAVE_PRGREGSET_T 1
| #define HAVE_ELF_FPREGSET_T 1
| /* end confdefs.h.  */
| void ps_pglobal_lookup() {}
|    void ps_pdread() {}
|    void ps_pdwrite() {}
|    void ps_lgetregs() {}
|    void ps_lsetregs() {}
|    void ps_lgetfpregs() {}
|    void ps_lsetfpregs() {}
|    void ps_get_thread_area() {}
|    void ps_getpid() {}
| int
| main ()
| {
| td_ta_new();
|   ;
|   return 0;
| }
configure:4151: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  /lib/libthread_db.so.1 >&5
/home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: attempted static link of dynamic object `/lib/libthread_db.so.1'
collect2: ld returned 1 exit status
configure:4157: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_PROCFS_H 1
| #define HAVE_THREAD_DB_H 1
| #define HAVE_LINUX_ELF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_PREAD 1
| #define HAVE_PWRITE 1
| #define HAVE_PREAD64 1
| #define HAVE_ERRNO 1
| #define HAVE_DECL_STRERROR 1
| #define HAVE_DECL_PERROR 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_LINUX_USRREGS 1
| #define HAVE_LINUX_REGSETS 1
| #define HAVE_PTRACE_GETREGS 1
| #define HAVE_PTRACE_GETFPXREGS 1
| #define HAVE_LWPID_T 1
| #define HAVE_PSADDR_T 1
| #define HAVE_PRGREGSET_T 1
| #define HAVE_ELF_FPREGSET_T 1
| /* end confdefs.h.  */
| void ps_pglobal_lookup() {}
|    void ps_pdread() {}
|    void ps_pdwrite() {}
|    void ps_lgetregs() {}
|    void ps_lsetregs() {}
|    void ps_lgetfpregs() {}
|    void ps_lsetfpregs() {}
|    void ps_get_thread_area() {}
|    void ps_getpid() {}
| int
| main ()
| {
| td_ta_new();
|   ;
|   return 0;
| }
configure:4188: result: no
configure:4191: WARNING: Could not find libthread_db.
configure:4193: WARNING: Disabling thread support in gdbserver.
configure:4283: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static -rdynamic conftest.c  >&5
configure:4289: $? = 0
configure:4293: test -z 
			 || test ! -s conftest.err
configure:4296: $? = 0
configure:4299: test -s conftest
configure:4302: $? = 0
configure:4513: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on LD2011

config.status:5234: creating Makefile
config.status:5337: creating config.h
config.status:5639: executing default commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build='i486-build_pc-linux-gnu'
ac_cv_build_alias='i486-build_pc-linux-gnu'
ac_cv_c_compiler_gnu='yes'
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set='set'
ac_cv_env_LDFLAGS_value='-static'
ac_cv_env_build_alias_set='set'
ac_cv_env_build_alias_value='i486-build_pc-linux-gnu'
ac_cv_env_host_alias_set='set'
ac_cv_env_host_alias_value='arm-unknown-linux-gnu'
ac_cv_env_target_alias_set='set'
ac_cv_env_target_alias_value='arm-unknown-linux-gnu'
ac_cv_exeext=''
ac_cv_func_pread='yes'
ac_cv_func_pread64='yes'
ac_cv_func_pwrite='yes'
ac_cv_have_decl_perror='yes'
ac_cv_have_decl_strerror='yes'
ac_cv_header_arpa_inet_h='yes'
ac_cv_header_errno_h='yes'
ac_cv_header_fcntl_h='yes'
ac_cv_header_inttypes_h='yes'
ac_cv_header_linux_elf_h='yes'
ac_cv_header_malloc_h='yes'
ac_cv_header_memory_h='yes'
ac_cv_header_netdb_h='yes'
ac_cv_header_netinet_in_h='yes'
ac_cv_header_netinet_tcp_h='yes'
ac_cv_header_proc_service_h='no'
ac_cv_header_sgtty_h='yes'
ac_cv_header_signal_h='yes'
ac_cv_header_stdc='yes'
ac_cv_header_stdint_h='yes'
ac_cv_header_stdlib_h='yes'
ac_cv_header_string_h='yes'
ac_cv_header_strings_h='yes'
ac_cv_header_sys_file_h='yes'
ac_cv_header_sys_ioctl_h='yes'
ac_cv_header_sys_procfs_h='yes'
ac_cv_header_sys_reg_h='no'
ac_cv_header_sys_socket_h='yes'
ac_cv_header_sys_stat_h='yes'
ac_cv_header_sys_types_h='yes'
ac_cv_header_sys_wait_h='yes'
ac_cv_header_termio_h='yes'
ac_cv_header_termios_h='yes'
ac_cv_header_thread_db_h='yes'
ac_cv_header_unistd_h='yes'
ac_cv_host='arm-unknown-linux-gnu'
ac_cv_host_alias='arm-unknown-linux-gnu'
ac_cv_objext='o'
ac_cv_path_install='/home/danielepa/telit/crosstool-ng-1.5.3/built/bin/targets/bin/install -c'
ac_cv_prog_CC='arm-unknown-linux-gnu-gcc'
ac_cv_prog_CPP='arm-unknown-linux-gnu-gcc -E'
ac_cv_prog_cc_g='yes'
ac_cv_prog_cc_stdc=''
ac_cv_prog_egrep='grep -E'
ac_cv_target='arm-unknown-linux-gnu'
ac_cv_target_alias='arm-unknown-linux-gnu'
ac_cv_type_socklen_t='yes'
bfd_cv_have_sys_procfs_type_elf_fpregset_t='yes'
bfd_cv_have_sys_procfs_type_lwpid_t='yes'
bfd_cv_have_sys_procfs_type_prgregset_t='yes'
bfd_cv_have_sys_procfs_type_psaddr_t='yes'
gdb_cv_arm_iwmmxt='no'
gdbsrv_cv_have_ptrace_getfpxregs='yes'
gdbsrv_cv_have_ptrace_getregs='yes'
srv_cv_thread_db='no'

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='arm-unknown-linux-gnu-gcc'
CFLAGS='-g -O2'
CPP='arm-unknown-linux-gnu-gcc -E'
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
GDBSERVER_DEPFILES='reg-arm.o linux-low.o linux-arm-low.o hostio-errno.o '
GDBSERVER_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS='-static'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RDYNAMIC='-rdynamic'
SHELL='/bin/bash'
USE_THREAD_DB=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i486-build_pc-linux-gnu'
build_alias='i486-build_pc-linux-gnu'
build_cpu='i486'
build_os='linux-gnu'
build_vendor='build_pc'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host='arm-unknown-linux-gnu'
host_alias='arm-unknown-linux-gnu'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
includedir='/home/danielepa/x-tools/arm-unknown-linux-gnu/arm-unknown-linux-gnu//sys-root/usr/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,^,,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
srv_xmlbuiltin=''
srv_xmlfiles=''
srv_xmltarget=''
sysconfdir='/etc'
target='arm-unknown-linux-gnu'
target_alias='arm-unknown-linux-gnu'
target_cpu='arm'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_ARPA_INET_H 1
#define HAVE_DECL_PERROR 1
#define HAVE_DECL_STRERROR 1
#define HAVE_ELF_FPREGSET_T 1
#define HAVE_ERRNO 1
#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LINUX_ELF_H 1
#define HAVE_LINUX_REGSETS 1
#define HAVE_LINUX_USRREGS 1
#define HAVE_LWPID_T 1
#define HAVE_MALLOC_H 1
#define HAVE_MEMORY_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_PREAD 1
#define HAVE_PREAD64 1
#define HAVE_PRGREGSET_T 1
#define HAVE_PSADDR_T 1
#define HAVE_PTRACE_GETFPXREGS 1
#define HAVE_PTRACE_GETREGS 1
#define HAVE_PWRITE 1
#define HAVE_SGTTY_H 1
#define HAVE_SIGNAL_H 1
#define HAVE_SOCKLEN_T 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_FILE_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_PROCFS_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_TERMIO_H 1
#define HAVE_THREAD_DB_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STDC_HEADERS 1
#define _GNU_SOURCE 1

configure: exit 0

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = config.h:config.in
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on LD2011

config.status:5337: creating config.h
config.status:5479: config.h is unchanged
config.status:5639: executing default commands

[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: "Disabling thread support in gdbserver" problem
  2010-02-15  8:50       ` Daniele Palmas
@ 2010-02-15 21:37         ` Khem Raj
  2010-02-16  7:58           ` Daniele Palmas
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2010-02-15 21:37 UTC (permalink / raw)
  To: Daniele Palmas; +Cc: Yann E. MORIN, crossgcc

On Mon, Feb 15, 2010 at 12:49 AM, Daniele Palmas
<Daniele.Palmas@telit.com> wrote:
> -----Original Message-----
> From: Khem Raj [mailto:raj.khem@gmail.com]
> Sent: venerdì 12 febbraio 2010 23.17
> To: Daniele Palmas
> Cc: Yann E. MORIN; crossgcc@sourceware.org
> Subject: Re: "Disabling thread support in gdbserver" problem
>
>>> Another piece of information that can be useful: configuring the gdbserver I've found the line
>>>
>>> [ALL  ]    checking for libthread_db... no
>>>
>>> I suspect this is the problem, however I have not understood why the build system doesn't find it since it exists. Should I force this check modifying the configure.ac?
>>
>>
>> Send the config.log for gdb/gdbserver most probably the test for
>> libthread_db is failing because its using the wrong libthread_db (from
>> host instead of target)
>
> Hello Khem,
>
> in attachment you can find the config.log. For your convenience I've quoted the lines that seem important to me:
>
> [SNIP]
> configure:4062: checking for libthread_db
> configure:4093: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  -lthread_db >&5
> /home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: cannot find -lthread_db
> collect2: ld returned 1 exit status
> configure:4099: $? = 1
> configure: failed program was:
> [SNIP]
> configure:4151: arm-unknown-linux-gnu-gcc -o conftest -g -O2  -static conftest.c  /lib/libthread_db.so.1 >&5
> /home/danielepa/x-tools/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.3.2/../../../../arm-unknown-linux-gnu/bin/ld: attempted static link of dynamic object `/lib/libthread_db.so.1'
> collect2: ld returned 1 exit status
> configure:4157: $? = 1
> configure: failed program was:
> [SNIP]
>
> I can understand the second problem, but not the first one: should the linker not have a default path for the libraries like libthread_db?

It seems to me that you are trying to build static gdbserver with
multi-threading support.
you need to have static version of libthread_db installed for that in
your <sysroot>/usr/lib
and this should be same as the one the programs that you intend to
debug will be linked against
otherwise the multi-threaded debugging may not work well.

If there are no restrictions to use shared libs then I would suggest
that you compile gdbsever with
shared library support. If not then you have to compile the static
version of libthread_db (libthread_db.a) during libc build step.

-Khem

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-15 21:37         ` Khem Raj
@ 2010-02-16  7:58           ` Daniele Palmas
  2010-02-16 12:47             ` Daniele Palmas
  0 siblings, 1 reply; 11+ messages in thread
From: Daniele Palmas @ 2010-02-16  7:58 UTC (permalink / raw)
  To: Khem Raj; +Cc: Yann E. MORIN, crossgcc

-----Original Message-----
From: Khem Raj [mailto:raj.khem@gmail.com] 
Sent: lunedì 15 febbraio 2010 22.37
To: Daniele Palmas
Cc: Yann E. MORIN; crossgcc@sourceware.org
Subject: Re: "Disabling thread support in gdbserver" problem

> It seems to me that you are trying to build static gdbserver with
> multi-threading support.
> you need to have static version of libthread_db installed for that in
> your <sysroot>/usr/lib
> and this should be same as the one the programs that you intend to
> debug will be linked against
> otherwise the multi-threaded debugging may not work well.
>
> If there are no restrictions to use shared libs then I would suggest
> that you compile gdbsever with
> shared library support. If not then you have to compile the static
> version of libthread_db (libthread_db.a) during libc build step.

My idea was to use shared library support. In crosstools-NG menuconfig I have checked the flag Operating System -> Build Shared Libraries.

Is this enough? If yes the problem has another reason or maybe there is a bug in the build system.

If not, could you suggest me which other options should I check for enabling shared library support? I cannot find any other reference in crosstools-NG menuconfig.

Thanks for your support,
Daniele

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-16  7:58           ` Daniele Palmas
@ 2010-02-16 12:47             ` Daniele Palmas
  0 siblings, 0 replies; 11+ messages in thread
From: Daniele Palmas @ 2010-02-16 12:47 UTC (permalink / raw)
  To: Khem Raj; +Cc: Yann E. MORIN, crossgcc

-----Original Message-----
From: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org] On Behalf Of Daniele Palmas
Sent: martedì 16 febbraio 2010 8.58
To: Khem Raj
Cc: Yann E. MORIN; crossgcc@sourceware.org
Subject: RE: "Disabling thread support in gdbserver" problem

> My idea was to use shared library support. In crosstools-NG menuconfig I have checked the flag Operating System -> Build Shared Libraries.
>
>Is this enough? If yes the problem has another reason or maybe there is a bug in the build system.
>
> If not, could you suggest me which other options should I check for enabling shared library support? I cannot find any other reference in crosstools-NG menuconfig.

Please don't consider my last message. I totally missed the gdb submenu and, by default, the static option was checked. Unchecking it has made the warning to be removed.

Now I'll try the compiler with my firmware/applications and hopefully the problem is solved.

I thank all of you for your help and apologize for my thoughtlessness.

Regards,
Daniele

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: "Disabling thread support in gdbserver" problem
  2010-02-08 14:39 "Disabling thread support in gdbserver" problem Daniele Palmas
  2010-02-11 19:36 ` Yann E. MORIN
@ 2010-02-25 18:50 ` Yann E. MORIN
  2010-02-26  9:04   ` Daniele Palmas
  2010-03-17 14:00   ` Daniele Palmas
  1 sibling, 2 replies; 11+ messages in thread
From: Yann E. MORIN @ 2010-02-25 18:50 UTC (permalink / raw)
  To: crossgcc; +Cc: Daniele Palmas

Daniele, All,

On Monday 08 February 2010 15:38:55 Daniele Palmas wrote:
> I'm using crosstool-NG 1.6.0 for building a glibc toolchain for my AT91SAM9260
> target (binutils 2.19.1, gcc 4.3.2, glibc 2.9). 
> Building the toolchain succeeded correctly, but analyzing the log I've found
> the following lines: 
[--SNIP--]
> [INFO ]  Installing gdbserver
> [EXTRA]    Configuring gdbserver
> [WARN ]    configure: WARNING: Could not find libthread_db.
> [WARN ]    configure: WARNING: Disabling thread support in gdbserver.
[--SNIP--]
> Any hint?

Well, I was really sckeptical about this issue, and while I was trying
to solve it, I noticed that I do not have the issue! My gdbserver is
statically built, and properly finds the static version of libthread_db.

If you manage to somehow understand why it fails on your side, I would be
glad to hear about it, so we can try and fix it.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-25 18:50 ` Yann E. MORIN
@ 2010-02-26  9:04   ` Daniele Palmas
  2010-03-17 14:00   ` Daniele Palmas
  1 sibling, 0 replies; 11+ messages in thread
From: Daniele Palmas @ 2010-02-26  9:04 UTC (permalink / raw)
  To: Yann E. MORIN, crossgcc

-----Original Message-----
From: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr] 
Sent: giovedì 25 febbraio 2010 19.50
To: crossgcc@sourceware.org
Cc: Daniele Palmas
Subject: Re: "Disabling thread support in gdbserver" problem

>> Building the toolchain succeeded correctly, but analyzing the log I've found
>> the following lines: 
>> [--SNIP--]
>> [INFO ]  Installing gdbserver
>> [EXTRA]    Configuring gdbserver
>> [WARN ]    configure: WARNING: Could not find libthread_db.
>> [WARN ]    configure: WARNING: Disabling thread support in gdbserver.
>> [--SNIP--]
>> Any hint?

> Well, I was really sckeptical about this issue, and while I was trying
> to solve it, I noticed that I do not have the issue! My gdbserver is
> statically built, and properly finds the static version of libthread_db.
>
> If you manage to somehow understand why it fails on your side, I would be
> glad to hear about it, so we can try and fix it.
>
> Regards,
> Yann E. MORIN.

I'll try to take a look into that.

Please also note that the gdbserver built with gdb 6.8 doesn't work with my target (ptrace error when debugging threads that stops the debugger).

I had to compile separately from crosstool-NG the gdb and gdbserver 7.0 for being able to debug threads.

Regards,
Daniele

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: "Disabling thread support in gdbserver" problem
  2010-02-25 18:50 ` Yann E. MORIN
  2010-02-26  9:04   ` Daniele Palmas
@ 2010-03-17 14:00   ` Daniele Palmas
  1 sibling, 0 replies; 11+ messages in thread
From: Daniele Palmas @ 2010-03-17 14:00 UTC (permalink / raw)
  To: Yann E. MORIN, crossgcc

Yann,

-----Original Message-----
From: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr] 
Sent: giovedì 25 febbraio 2010 19.50
To: crossgcc@sourceware.org
Cc: Daniele Palmas
Subject: Re: "Disabling thread support in gdbserver" problem

> Daniele, All,

> On Monday 08 February 2010 15:38:55 Daniele Palmas wrote:
>> I'm using crosstool-NG 1.6.0 for building a glibc toolchain for my AT91SAM9260
>> target (binutils 2.19.1, gcc 4.3.2, glibc 2.9). 
>> Building the toolchain succeeded correctly, but analyzing the log I've found
>> the following lines: 
[--SNIP--]
>> [INFO ]  Installing gdbserver
>> [EXTRA]    Configuring gdbserver
>> [WARN ]    configure: WARNING: Could not find libthread_db.
>> [WARN ]    configure: WARNING: Disabling thread support in gdbserver.
[--SNIP--]
>> Any hint?

> Well, I was really sckeptical about this issue, and while I was trying
> to solve it, I noticed that I do not have the issue! My gdbserver is
> statically built, and properly finds the static version of libthread_db.
>
> If you manage to somehow understand why it fails on your side, I would be
> glad to hear about it, so we can try and fix it.

I've finally found some time for investigating the issue. The problem was that the libthread_db.a library was not generated during glibc compiling.

I've found this solution:

http://sources.redhat.com/ml/gdb/2003-04/msg00230.html

This is quite old, but it still works well.

Now the scripts find the static version of the library and gdb correctly builds.

Regards,
Daniele

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-03-17 14:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08 14:39 "Disabling thread support in gdbserver" problem Daniele Palmas
2010-02-11 19:36 ` Yann E. MORIN
2010-02-12 10:15   ` Daniele Palmas
2010-02-12 22:16     ` Khem Raj
2010-02-15  8:50       ` Daniele Palmas
2010-02-15 21:37         ` Khem Raj
2010-02-16  7:58           ` Daniele Palmas
2010-02-16 12:47             ` Daniele Palmas
2010-02-25 18:50 ` Yann E. MORIN
2010-02-26  9:04   ` Daniele Palmas
2010-03-17 14:00   ` Daniele Palmas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).