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
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.
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.
Thank you very much, it worked.