Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510742 - test-flag-PROG() CXX c++ -std=c++11 fails with clang
Summary: test-flag-PROG() CXX c++ -std=c++11 fails with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-19 13:28 UTC by Justin Lecher (RETIRED)
Modified: 2014-05-22 19:38 UTC (History)
0 users

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 Justin Lecher (RETIRED) gentoo-dev 2014-05-19 13:28:27 UTC
the error is following

 clang++ -std=c++11 -c -o /opt/scisoft64/var/tmp/portage/net-libs/webkit-gtk-2.2.6/temp/tf-CXX-2.c++.o /opt/scisoft64/var/tmp/portage/net-libs/webkit-gtk-2.2.6/temp/tf-CXX-2.c++
/opt/scisoft64/var/tmp/portage/net-libs/webkit-gtk-2.2.6/temp/tf-CXX-2.c++:1:1: error: C++ requires a type specifier for all declarations
main() {}
^~~~
1 error generated.


The eclass differs from the tree version.

Simply exchanging in line "main() {}" with "int main() { return(0); }" fixes the problem.
Comment 1 Fabian Groffen gentoo-dev 2014-05-22 19:38:53 UTC
fixed, thanks