public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* glibc configure error: forced unwind support is required
@ 2009-04-01 16:41 suma sharma
2009-04-02 15:39 ` Carmelo Amoroso
0 siblings, 1 reply; 3+ messages in thread
From: suma sharma @ 2009-04-01 16:41 UTC (permalink / raw)
To: glibc-bugs
Hi,
I am trying to build a native toolchain using the following sources:
Binutils-2.19
Gcc-4.4-20090327
Glibc-2.9
Linux kernel headers-2.6.29
I am using the following variables:
HOST: i686-linux
TARGET: i386-linux
The configure options specified for the various stages of the build are
as follows:
LINUX KERNEL HEADERS:
---------------------
HEADERS_SRC_DIR=/home/sumas/src/linux-2.6.29
cp -r ${HEADERS_SRC}/include/linux ${HEADERS_DIR}
# HEADERS_DIR=/home/sumas/prefix/i386-linux/sys-root/usr/include
cp -r ${HEADERS_SRC}/include/asm-x86 ${HEADERS_DIR}/asm
cp -r ${HEADERS_SRC}/include/asm-generic/ ${HEADERS_DIR}/include
BINUTILS:
---------
${BINUTILS_SRC}/configure \
--host=${HOST} \
--target=${TARGET} \
--prefix=${PREFIX} \ #PREFIX=/home/sumas/prefix
--with-sysroot=${SYSROOT_DIR} \
#SYSROOT_DIR=$PREFIX/i386-linux/sys-root
--disable-nls &> configure.out
GLIBC HEADERS:
--------------
CC=gcc \
${GLIBC_SRC}/configure \
--build=${HOST} \
--host=${TARGET} \
--prefix=/usr \
--disable-sanity-checks \
--without-cvs \
--with-__thread \
--with-headers=${HEADERS_DIR} \
--enable-add-ons=nptl &> configure.out
BOOTSTRAP GCC:
-------------
${GCC_SRC}/configure \
--host=${HOST} \
--target=${TARGET} \
--prefix=${CORE_PREFIX} \ #
CORE_PREFIX=${BUILD_DIR}/gcc-core-prefix
--with-local-prefix=${SYSROOT_DIR} \
--with-sysroot=${SYSROOT_DIR} \
--without-headers \
--without-libs \
--disable-nls \
--disable-shared \
--with-tls \
--enable-threads=posix \
--enable-symvers=gnu \
--with-gmp=/home/sumas/linux-gmp-mpfr/prefix
--with-mpfr=/home/sumas/linux-gmp-mpfr/prefix \
--disable-__cxa_atexit \
--enable-languages="c,c++" &> configure.out
GLIBC:
------
CC="${TARGET}-gcc \
AR=${TARGET}-ar \
RANLIB=${TARGET}-ranlib \
${GLIBC_SRC}/configure \
--build=${HOST} \
--host=${TARGET} \
--prefix=/usr \
--enable-shared \
--enable-kernel=2.6.0 \
--disable-profile \
--disable-debug \
--with-headers=${HEADERS_DIR} \
--with-tls \
--with-__thread \
--without-cvs \
--without-gd \
--enable-add-ons=nptl &> configure.out
I am getting an error in the glibc configure stage. The error is as
follows:
------------------------------------------------------------------------
"checking size of long double... 12
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required"
------------------------------------------------------------------------
Could anyone please throw some light on this issue.
Thanking you in anticipation.
Regards,
Suma Samyukta
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: glibc configure error: forced unwind support is required
2009-04-01 16:41 glibc configure error: forced unwind support is required suma sharma
@ 2009-04-02 15:39 ` Carmelo Amoroso
2009-04-03 9:12 ` suma sharma
0 siblings, 1 reply; 3+ messages in thread
From: Carmelo Amoroso @ 2009-04-02 15:39 UTC (permalink / raw)
To: suma sharma; +Cc: glibc-bugs
suma sharma wrote:
> Hi,
> I am trying to build a native toolchain using the following sources:
> Binutils-2.19
> Gcc-4.4-20090327
> Glibc-2.9
> Linux kernel headers-2.6.29
>
> I am using the following variables:
> HOST: i686-linux
> TARGET: i386-linux
>
> The configure options specified for the various stages of the build are
> as follows:
> LINUX KERNEL HEADERS:
> ---------------------
> HEADERS_SRC_DIR=/home/sumas/src/linux-2.6.29
> cp -r ${HEADERS_SRC}/include/linux ${HEADERS_DIR}
> # HEADERS_DIR=/home/sumas/prefix/i386-linux/sys-root/usr/include
> cp -r ${HEADERS_SRC}/include/asm-x86 ${HEADERS_DIR}/asm
> cp -r ${HEADERS_SRC}/include/asm-generic/ ${HEADERS_DIR}/include
>
> BINUTILS:
> ---------
> ${BINUTILS_SRC}/configure \
> --host=${HOST} \
> --target=${TARGET} \
> --prefix=${PREFIX} \ #PREFIX=/home/sumas/prefix
> --with-sysroot=${SYSROOT_DIR} \
> #SYSROOT_DIR=$PREFIX/i386-linux/sys-root
> --disable-nls &> configure.out
>
> GLIBC HEADERS:
> --------------
> CC=gcc \
> ${GLIBC_SRC}/configure \
> --build=${HOST} \
> --host=${TARGET} \
> --prefix=/usr \
> --disable-sanity-checks \
> --without-cvs \
> --with-__thread \
> --with-headers=${HEADERS_DIR} \
> --enable-add-ons=nptl &> configure.out
>
> BOOTSTRAP GCC:
> -------------
> ${GCC_SRC}/configure \
> --host=${HOST} \
> --target=${TARGET} \
> --prefix=${CORE_PREFIX} \ #
> CORE_PREFIX=${BUILD_DIR}/gcc-core-prefix
> --with-local-prefix=${SYSROOT_DIR} \
> --with-sysroot=${SYSROOT_DIR} \
> --without-headers \
> --without-libs \
> --disable-nls \
> --disable-shared \
I think that you need --enable-shared for generating libgcc,
that will provide stack unwind support.
> --with-tls \
> --enable-threads=posix \
> --enable-symvers=gnu \
> --with-gmp=/home/sumas/linux-gmp-mpfr/prefix
> --with-mpfr=/home/sumas/linux-gmp-mpfr/prefix \
> --disable-__cxa_atexit \
> --enable-languages="c,c++" &> configure.out
>
> GLIBC:
> ------
> CC="${TARGET}-gcc \
> AR=${TARGET}-ar \
> RANLIB=${TARGET}-ranlib \
> ${GLIBC_SRC}/configure \
> --build=${HOST} \
> --host=${TARGET} \
> --prefix=/usr \
> --enable-shared \
> --enable-kernel=2.6.0 \
> --disable-profile \
> --disable-debug \
> --with-headers=${HEADERS_DIR} \
> --with-tls \
> --with-__thread \
> --without-cvs \
> --without-gd \
> --enable-add-ons=nptl &> configure.out
>
> I am getting an error in the glibc configure stage. The error is as
> follows:
> ------------------------------------------------------------------------
> "checking size of long double... 12
> running configure fragment for sysdeps/i386/elf
> checking for i386 TLS support... yes
> running configure fragment for nptl/sysdeps/pthread
> checking for forced unwind support... no
> configure: error: forced unwind support is required"
> ------------------------------------------------------------------------
>
> Could anyone please throw some light on this issue.
> Thanking you in anticipation.
>
> Regards,
> Suma Samyukta
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: glibc configure error: forced unwind support is required
2009-04-02 15:39 ` Carmelo Amoroso
@ 2009-04-03 9:12 ` suma sharma
0 siblings, 0 replies; 3+ messages in thread
From: suma sharma @ 2009-04-03 9:12 UTC (permalink / raw)
To: carmelo73; +Cc: glibc-bugs
>>I think that you need --enable-shared for generating libgcc,
> that will provide stack unwind support.
I tried using the option "enable-shared" for configuring the bootstrap
gcc... But it did not help :( I got the same error as before...
So, i checked my 'config.log'.. It reported the following errors:
-----------------------------------------------------------------------
ERROR 1: ((/../../../../i386-linux/sys-include/stdio.h:141:28: error:
-------- bits/stdio_lim.h: No such file or directory))
configure:3411: checking whether
/home/sumas/native_tc/prefix/bin/i386-linux-gcc accepts -g
configure:3441: /home/sumas/native_tc/prefix/bin/i386-linux-gcc -c -g
conftest.c >&5
configure:3447: $? = 0
configure:3546: result: yes
configure:3563: checking for
/home/sumas/native_tc/prefix/bin/i386-linux-gcc option to accept ISO
C89
configure:3637: /home/sumas/native_tc/prefix/bin/i386-linux-gcc -c -g
-O2 conftest.c >&5 In file included from conftest.c:10:
/home/sumas/native_tc/prefix/bin/../lib/gcc/i386-linux/4.4.0/../../../../i386-linux/sys-include/stdio.h:141:28:
error: bits/stdio_lim.h: No such file or directory
configure:3643: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.
| */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat
| *, int); static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...) {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
------------------------------------------------------------------------
------------------------------------------------------------------------
ERROR 2: ((/../../../../i386-linux/bin/ld: Scrt1.o: No such file: No such
-------- file or directory))
configure:6359: checking for -fpie
configure:6370: /home/sumas/native_tc/prefix/bin/i386-linux-gcc -g -O2
-pie -fpie
-o conftest conftest.c 1>&5
/home/sumas/native_tc/prefix/bin/../lib/gcc/i386-linux/4.4.0/../../../../i386-linux/bin/ld:
Scrt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:6373: $? = 1
configure:6382: result: no
------------------------------------------------------------------------
------------------------------------------------------------------------
ERROR 3: ((/../../../../i386-linux/bin/ld: crt1.o: No such file: No such
-------- file or directory))
configure:7197: checking for is_selinux_enabled in -lselinux
configure:7232: /home/sumas/native_tc/prefix/bin/i386-linux-gcc -o
conftest -g -O2 conftest.c -lselinux >&5
/home/sumas/native_tc/prefix/bin/../lib/gcc/i386-linux/4.4.0/../../../../i386-linux/bin/ld:
crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:7238: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus extern "C"
| #endif
| char is_selinux_enabled ();
| int
| main ()
| {
| return is_selinux_enabled ();
| ;
| return 0;
| }
------------------------------------------------------------------------
------------------------------------------------------------------------
ERROR 4: ((error: forced unwind support is required))
--------
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define SIZEOF_LONG_DOUBLE 0
| #define HAVE_TLS_SUPPORT 1
| #define PI_STATIC_AND_HIDDEN 1
| /* end confdefs.h. */
| #include <unwind.h>
| int
| main ()
| {
|
| struct _Unwind_Exception exc;
| struct _Unwind_Context *context;
| _Unwind_GetCFA (context)
| ;
| return 0;
| }
configure:79: result: no
configure:150: error: forced unwind support is required
------------------------------------------------------------------------
Help me please....
Regards,
Suma
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-03 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-01 16:41 glibc configure error: forced unwind support is required suma sharma
2009-04-02 15:39 ` Carmelo Amoroso
2009-04-03 9:12 ` suma sharma
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).