Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449752 - app-misc/mc reports wrong CC in configure tests (but uses correct one eventually)
Summary: app-misc/mc reports wrong CC in configure tests (but uses correct one eventua...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Alexander (RETIRED)
URL: https://github.com/MidnightCommander/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 11:27 UTC by Agostino Sarubbo
Modified: 2013-07-18 20:52 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-01-02 11:27:33 UTC
You receive this bug because this package does not respect my system's CC ( x86_64-pc-linux-gnu-gcc - /usr/bin/x86_64-pc-linux-gnu-gcc ) and calls directly gcc -/usr/bin/gcc
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"


Pay attention: CC is respected in the compile phase, but in the configure phase it does half tests 
with $CC and half test directly with gcc; from the log:

checking whether gcc accepts -Wcomment... yes
checking whether gcc accepts -Wdeclaration-after-statement... yes
checking whether gcc accepts -Wfloat-equal... yes
checking whether gcc accepts -Wformat... yes
checking whether gcc accepts -Wformat-security... yes
checking whether gcc accepts -Wimplicit... yes
checking whether gcc accepts -Wignored-qualifiers... yes
checking whether gcc accepts -Wmissing-braces... yes
checking whether gcc accepts -Wmissing-declarations... yes
checking whether gcc accepts -Wmissing-parameter-type... yes
checking whether gcc accepts -Wmissing-prototypes... yes
checking whether gcc accepts -Wnested-externs... yes
checking whether gcc accepts -Wno-long-long... yes
checking whether gcc accepts -Wno-unreachable-code... yes
checking whether gcc accepts -Wparentheses... yes
checking whether gcc accepts -Wpointer-sign... yes
checking whether gcc accepts -Wreturn-type... yes
checking whether gcc accepts -Wsequence-point... yes
checking whether gcc accepts -Wshadow... yes
checking whether gcc accepts -Wsign-compare... yes
checking whether gcc accepts -Wswitch... yes
checking whether gcc accepts -Wtype-limits... yes
checking whether gcc accepts -Wuninitialized... yes
checking whether gcc accepts -Wunused-function... yes
checking whether gcc accepts -Wunused-label... yes
checking whether gcc accepts -Wunused-parameter... yes
checking whether gcc accepts -Wunused-result... yes
checking whether gcc accepts -Wunused-value... yes
checking whether gcc accepts -Wunused-variable... yes
checking whether gcc accepts -Wwrite-strings... yes
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2013-01-02 12:14:59 UTC
Did you eyeball it or you have some sort of automated check for it?
I want it too :]
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-01-02 13:27:02 UTC
I've pushed that cosmetic fix upstream:

    https://github.com/MidnightCommander/mc/commit/4b3d88f07c8d68a245f86b72024cca28d9a3b340

As mc-4.8.7 is being stabilized I'll wait a bit.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2013-07-18 20:52:29 UTC
Should be fixed in app-misc/mc-4.8.8 and upper in tree.