This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug admin/6679] New: Broken caching of libc_cv_gnu89_inline


The configure script caches a wrong value for libc_cv_gnu89_inline (or checks 
the cached value incorrectly depending on how you look at it).

Around line 1651 of configure.in, a cached check is started to determine wether 
-fgnu89-inline is a valid compiler switch and stores either 'yes' or 'no' in 
the libc_cv_gnu89_inline variable. A couple of lines down (around line 1668) 
this variable is tested for the value 'yes' and then overwritten with either '-
fgnu89-inline' or an empty value. This results in '-fgnu89-inline' being the 
cached value for libc_cv_gnu89_inline.

If you run configure again with the same cache file, libc_cv_gnu89_inline will 
have the value '-fgnu89-inline' which doesn't equal 'yes' so 
libc_cv_gnu89_inline will be set to an empty value breaking the build of glibc 
(in my case in io/stat.c because of a redefined __stat function).

This can be a real nuisance when generating a cross-compiler toolchain for 
which you want to provide a config.cache to pre-determine the outcome of 
certain configure tests.

-- 
           Summary: Broken caching of libc_cv_gnu89_inline
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: admin
        AssignedTo: roland at gnu dot org
        ReportedBy: iksteen at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6679

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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