This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Incorrect bound check flag
- From: JohnT <jrt at worldlinc dot net>
- To: libc-help at sourceware dot org
- Date: Wed, 11 Mar 2009 07:53:08 -0600
- Subject: Incorrect bound check flag
Hi. Recently I've been trying to build glibc from tarballs from
http://ftp.gnu.org/gnu/glibc/, working with versions 2.4, 2.5.1, 2.6.1,
2.7 and 2.9. I've found several issues that I didn't find in the glibc
bugzilla or mail archive.
System: Mandriva 2006 Powerpack, i686, installed kernel 2.6.12, glibc
2.3.5, gcc 4.2.4 (secondary version 4.0.1), gettext 0.17, binutils 2.18,
gmp 4.2.4, mpfr 2.31.
Here's a build error set off by trying the option --enable-bounded. I
think the correct gcc compiler flag is -fbounds-check (or if
single-threaded, -fmudflap). Wherever the build script is (not in
Makefile), it uses this wrong gcc flag. Because I don't know where the
real build script is, I was unable to fix it. I didn't check out all of
the above versions for this, but several have the wrong flag.
cc1: error: unrecognized command line option "-fbounded-pointers"
make[2]: *** [/home2/bild29/csu/init-first.ob] Error 1
make[2]: Leaving directory `/home2/glibc-2.9/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home2/glibc-2.9'
make: *** [all] Error 2