Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449368 - games-strategy/megaglest-3.7.1 does not compile with clang-3.2
Summary: games-strategy/megaglest-3.7.1 does not compile with clang-3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2012-12-30 23:40 UTC by Julian Ospald
Modified: 2013-11-20 19:27 UTC (History)
5 users (show)

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


Attachments
megaglest-3.7.1:20121230-233811.log (megaglest-3.7.1:20121230-233811.log,7.19 KB, text/plain)
2012-12-30 23:40 UTC, Julian Ospald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2012-12-30 23:40:23 UTC
Created attachment 333810 [details]
megaglest-3.7.1:20121230-233811.log

# clang --version
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-pc-linux-gnu
Thread model: posix

# cat /etc/portage/env/clang
FEATURES="-ccache -buildpkg -distcc -splitdebug"
USE="clang"
CC=clang
CXX=clang++
CFLAGS="-march=core2 -O3 -Wall"
CXXFLAGS="${CFLAGS}"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2013-10-12 04:11:08 UTC
Looks like it dislikes non-GCC:
> IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)

Adding
> megaglest-3.7.1.ebuild
> +               -DCMAKE_COMPILER_IS_GNUCXX=YES
>         ) 
>        cmake-utils_src_configure

makes all checks pass, but it needs a bit more porting to cleaner C++ upstream:

> source/glest_game/world/world.h:143:18: error: reference to 'StaticSound' is ambiguous
>         std::map<string,StaticSound *> staticSoundList;
>                         ^
> source/glest_game/world/world.h:52:7: note: candidate found by name lookup is 'Glest::Game::StaticSound'
> class StaticSound;
>       ^
> source/glest_game/world/time_flow.h:28:22: note: candidate found by name lookup is 'Glest::Game::StaticSound'
> using Shared::Sound::StaticSound;
>                      ^

HTH
Comment 2 Mark Vejvoda 2013-11-19 22:31:32 UTC
These issues are fixed in svn head on the megaglest repo on sourceforge.

Thanks
Comment 3 Julian Ospald 2013-11-20 19:27:17 UTC
fixed in 3.9.0.4