Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399549 - sys-libs/glibc 2.13-r4 - c cleanup handling
Summary: sys-libs/glibc 2.13-r4 - c cleanup handling
Status: RESOLVED DUPLICATE of bug 392461
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 20:08 UTC by Matias Jose Seco
Modified: 2012-01-24 17:38 UTC (History)
0 users

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


Attachments
Config.log (glibc_v2_13_config.log,39.77 KB, text/plain)
2012-01-20 20:08 UTC, Matias Jose Seco
Details
Emerge info (Emerge_Info_GentooTest.txt,4.06 KB, text/plain)
2012-01-20 20:09 UTC, Matias Jose Seco
Details
Build log (Update_World_07012012_1900.log,13.75 KB, text/plain)
2012-01-20 20:10 UTC, Matias Jose Seco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matias Jose Seco 2012-01-20 20:08:10 UTC
Created attachment 299415 [details]
Config.log

Greetings,
attempting to perform a glibc update from 2.12.2 to 2.13-r4, but it failed:
during GLIBC configuration for nptl, it stopped when checking "C cleanup handling" because "compiler must support it"

GCC version is 4.5.3-r1.

I'm aware of the Bug ID '392461', but i would like to know if i could help fixing it, or provide further information to
Comment 1 Matias Jose Seco 2012-01-20 20:09:19 UTC
Created attachment 299419 [details]
Emerge info
Comment 2 Matias Jose Seco 2012-01-20 20:10:21 UTC
Created attachment 299425 [details]
Build log
Comment 3 Matias Jose Seco 2012-01-20 20:14:27 UTC
I've opened this issue over the forum:
http://forums.gentoo.org/viewtopic-t-908292-highlight-.html

and Hu's analysis result was:

This appears to be a bug in the configure script. They assume that they can pass -Werror, but they use code which causes a warning, which then becomes fatal when they add -Werror. 

sames as bug ID '392461',
so my concern is if i could help in some way for the confgure script

Greetings
Comment 4 Rafał Mużyło 2012-01-20 20:17:42 UTC
cc1: warnings being treated as errors
conftest.c: In function 'cl':
conftest.c:44:16: error: unused parameter 'a'

CFLAGS="...-Wall -Wextra"
so sort of INVALID.

Hu missed a point: '-Werror' was there on purpose, as otherwise the check wouldn't have worked - gcc would only generate a warning.
Comment 5 Matias Jose Seco 2012-01-20 20:21:12 UTC
are -Wall -Wextra unusable only for glibc or many others?

if latter: as long as per-package Cflags is not suggested, how can i use them for debugging porpouses?
(or they are the unique exception for cflag-per-package-usage ?)

THanks, Matias
Comment 6 Matias Jose Seco 2012-01-21 13:19:46 UTC
From Hu:

The upstream check for the attribute requires using -Werror, but there is no reason for them to include an unused parameter in their implementation of cl. That unused parameter will generate a warning when compiled with -Wall -Wextra. Their code should leave the parameter anonymous, cast it to void, or use some other construct to ensure that the parameter is not considered unused.
Comment 7 Rafał Mużyło 2012-01-22 20:05:42 UTC
Well, the point is made in the comment of this commit (http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=54c726aa5c0414148d03059c1bce14baaa0c7c09).
"...It's unwise to use GCC that way, but apparently enough people do it nowadays that it's an issue...."
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-24 17:38:16 UTC

*** This bug has been marked as a duplicate of bug 392461 ***