This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem building glibc 2.1.2 with -fexceptions turned on


I am trying to enable exception handling in the 'c' library so we can throw
an exception from a signal handler.  I have looked in the archives and
someone accomplished this feat by building the glibc library with the
'-fexceptions' compiler switch turned on.  

I am using the default tools that came with Redhat 6.0 distribution, which
are gcc 2.91.66 and bin tools 2.9.1

When I try to build with make CFLAGS='-fexceptions', I get an error that
looks like this:

make  -C csu subdir_lib
make[2]: Entering directory `/usr/src/glibc-2.1.2/csu'
gcc /usr/src/glibc-2.1.2/build/csu/crti.S -c  -I../include -I.
-I/usr/src/glibc-2.1.2/build/csu -I.. -I../libio
-I/usr/src/glibc-2.1.2/build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386
-I../crypt/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386/i686
-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 -I../sysdeps/i386/i486 -I../sysdeps/libm-i387/i686
-I../sysdeps/i386/fpu -I../sysdeps/libm-i387 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic   -D_LIBC_REENTRANT -include
../include/libc-symbols.h     -DHAVE_INITFINI -DASSEMBLER
-I/usr/src/glibc-2.1.2/build/csu/. -DGAS_SYNTAX  -g0  -o
/usr/src/glibc-2.1.2/build/csu/crti.o
/tmp/ccNiyNcf.s: Assembler messages:
/tmp/ccNiyNcf.s:489: Error: Can't emit reloc {- *UND*-seg symbol ".LFB1"} @
file address 32.
/tmp/ccNiyNcf.s:515: Error: Can't emit reloc {- .init-seg symbol ".LFB2"} @
file address 64.
/tmp/ccNiyNcf.s:537: Error: Can't emit reloc {- .fini-seg symbol ".LFB3"} @
file address 92.
make[2]: *** [/usr/src/glibc-2.1.2/build/csu/crti.o] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.1.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.1.2'
make: *** [all] Error 2


Any help would be appreciated,

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]