Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300596 - sys-libs/glibc some conftests fail when CFLAGS="-Wextra -Wall"
Summary: sys-libs/glibc some conftests fail when CFLAGS="-Wextra -Wall"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Highest major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-11 15:34 UTC by Fabio Correa
Modified: 2010-01-15 15:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
System info and ebuild logs (300596.tar.bz2,115.70 KB, application/octet-stream)
2010-01-11 15:40 UTC, Fabio Correa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Correa 2010-01-11 15:34:18 UTC
Hello, I took the liberty of raising the priority of this bug, due to the stabilization of this revision. So testing and confirmation would both be appreciated.

On emerging glibc, the -Werror option was automatically included in the configuration tests and as a result one of them failed, resulting in the emerge failing. Here is an excerpt of config.log:

configure:92: checking for C cleanup handling
configure:122: i686-pc-linux-gnu-gcc -o conftest -march=i686 -pipe -Wall -Wextra -O2 -fno-strict-aliasing -Werror -fexceptions -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -Wl,-O1 conftest.c  >&5
cc1: warnings being treated as errors
conftest.c: In function 'cl':
conftest.c:40: error: unused parameter 'a'
configure:128: $? = 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 HAVE_LIBIDN 1
| #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_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_LONG_DOUBLE 12
| #define HAVE_TLS_SUPPORT 1
| #define PI_STATIC_AND_HIDDEN 1
| #define HAVE_FORCED_UNWIND 1
| /* end confdefs.h.  */
|
| #include <stdio.h>
| void cl (void *a) { }
| int
| main ()
| {
|
|   int a __attribute__ ((cleanup (cl)));
|   puts ("test")
|   ;
|   return 0;
| }
configure:145: result: no
configure:153: error: the compiler must support C cleanup handling
Comment 1 Fabio Correa 2010-01-11 15:40:06 UTC
Created attachment 216072 [details]
System info and ebuild logs

paludis-info, paludis build log and the build tree, in which the file config.log is found.
Comment 2 SpanKY gentoo-dev 2010-01-15 08:08:41 UTC
this code is not new, nor is using -Werror here incorrect.  just the opposite -- it is required for proper detection.

it is only failing for you because you're using -Wextra -Wall.  lose one and everything will work just fine.
Comment 3 Fabio Correa 2010-01-15 15:00:50 UTC
Thank you very much, it worked.