bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FLOATING_STACKS on ix86 was: make bug: make fails on linking libc.so


From: Frank Pettit
Subject: FLOATING_STACKS on ix86 was: make bug: make fails on linking libc.so
Date: Wed, 16 Jul 2003 17:01:01 -0700 (PDT)

Hello Wolfram,
Thank you for your help.

You are right, I should say that make failed not crashed. And you are
right that setting CFLAGS="-DFLOATING_STACKS" is the cause of the
failure. I tried setting CFLAGS="" and now make goes to completion.

Anyway with CFLAGS="", make now completes, but "make check" fails
because the linker ld-linux.so.2 immediately segmentation faults.
(This kind of sounds like issue 2.6 from the glibc FAQ, but my specs
file appears OK.)

Before, I set CFLAGS="-DFLOATING_STACKS" because I was trying to
install Intel C++ for Linux, and the Install document says "POSIX
threaded programs that require a large stack size may not run
correctly on some versions of Linux because of hard-coded stack size
limits in some versions of the Linux POSIX threads libraries...To
avoid these limitations, please use a version of glibc built with the
FLOATING_STACKS parameter defined, typically version 2.2.4 or
later..."

I cannot set --enable-kernel=2.4.21 as you suggested because my
current kernel is 2.4.3. Thus I have no way of defining the parameter
FLOATING_STACKS myself, and no way to update my glibc because make
check fails.

System info below.

** ARCHITECTURE / SYSTEM **
i686-pc-linux-gnu
Linux kernel 2.4.3
Mandrake 8.0
current glibc: 2.2.2
trying to install glibc: 2.3.2

** GCC CONFIGURATION **
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --with-stabs
--with-as=/usr/bin/as --with-ld=/usr/bin/ld
--enable-languages=c,c++,f77,java --enable-threads=posix :
(reconfigured) ../gcc-3.3/configure --with-stabs --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,f77,java
--enable-threads=posix
Thread model: posix
gcc version 3.3

** GLIBC 2.3.2 CONFIGURATION **
../glibc-2.3.2/configure --prefix=/usr --enable-add-ons \
 --host=i686-pc-linux-gnu

** ENVIRONMENT VARIABLES **
LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib
CC=/usr/local/bin/gcc
CFLAGS=""
LD_RUN_PATH=/usr/local/lib

** END OF ERROR OUTPUT FROM MAKE CHECK **
make[2]: Entering directory `/usr/local/src/glibc-2.3.2/iconv'
/usr/local/bin/gcc tst-iconv2.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g      -I../include -I.
-I/usr/local/src/glibc-2.3.2-linux-obj/iconv -I.. -I../libio
-I/usr/local/src/glibc-2.3.2-linux-obj -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1
-o /usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2.o

/usr/local/bin/gcc -nostdlib -nostartfiles -o
/usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2
-Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc
/usr/local/src/glibc-2.3.2-linux-obj/csu/crt1.o
/usr/local/src/glibc-2.3.2-linux-obj/csu/crti.o `/usr/local/bin/gcc
--print-file-name=crtbegin.o`
/usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2.o
-Wl,-rpath-link=/usr/local/src/glibc-2.3.2-linux-obj:/usr/local/src/glibc-2.3.2-linux-obj/math:/usr/local/src/glibc-2.3.2-linux-obj/elf:/usr/local/src/glibc-2.3.2-linux-obj/dlfcn:/usr/local/src/glibc-2.3.2-linux-obj/nss:/usr/local/src/glibc-2.3.2-linux-obj/nis:/usr/local/src/glibc-2.3.2-linux-obj/rt:/usr/local/src/glibc-2.3.2-linux-obj/resolv:/usr/local/src/glibc-2.3.2-linux-obj/crypt:/usr/local/src/glibc-2.3.2-linux-obj/linuxthreads
/usr/local/src/glibc-2.3.2-linux-obj/libc.so.6
/usr/local/src/glibc-2.3.2-linux-obj/libc_nonshared.a -lgcc
`/usr/local/bin/gcc --print-file-name=crtend.o`
/usr/local/src/glibc-2.3.2-linux-obj/csu/crtn.o

GCONV_PATH=/usr/local/src/glibc-2.3.2-linux-obj/iconvdata LC_ALL=C
/usr/local/src/glibc-2.3.2-linux-obj/elf/ld-linux.so.2 --library-path
/usr/local/src/glibc-2.3.2-linux-obj:/usr/local/src/glibc-2.3.2-linux-obj/math:/usr/local/src/glibc-2.3.2-linux-obj/elf:/usr/local/src/glibc-2.3.2-linux-obj/dlfcn:/usr/local/src/glibc-2.3.2-linux-obj/nss:/usr/local/src/glibc-2.3.2-linux-obj/nis:/usr/local/src/glibc-2.3.2-linux-obj/rt:/usr/local/src/glibc-2.3.2-linux-obj/resolv:/usr/local/src/glibc-2.3.2-linux-obj/crypt:/usr/local/src/glibc-2.3.2-linux-obj/linuxthreads
/usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2  >
/usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2.out
make[2]: ***
[/usr/local/src/glibc-2.3.2-linux-obj/iconv/tst-iconv2.out] Error 139
make[2]: Leaving directory `/usr/local/src/glibc-2.3.2/iconv'
make[1]: *** [iconv/tests] Error 2
make[1]: Leaving directory `/usr/local/src/glibc-2.3.2'
make: *** [check] Error 2

-----------------------------------------------------------------
On Tue, 15 Jul 2003 address@hidden wrote:

> Date: 15 Jul 2003 09:02:23 -0000
> From: address@hidden
> To: address@hidden
> Cc: address@hidden
> Subject: FLOATING_STACKS on ix86 was: Re: make bug: make crashes on
>     linking libc.so
>
> Hi,
>
> > I am trying to compile glibc 2.3.2 on Linux Mandrake, and have found
> > that the 'make' command crashes at the step where libc.so is linked,
> > due to undefined references into pthreads.
>
> Please be clear: make doesn't crash, it just doesn't succeed.  I
> nearly missed your message because of the misleading subject.
>
> > My attempt to compile is all standard except that I define CFLAGS with
> > option -DFLOATING_STACKS.
>
> I'm pretty sure you can't do that.  To get the effect you're looking
> for, you need to configure for i686 architecture and possibly use
> --enable-kernel=2.4.21.  Then FLOATING_STACKS will be defined
> automatically and correctly along with other symbols like THREAD_SELF.
>
> Regards,
> Wolfram.
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]