2023-12-06 01:18 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006452Spring engineGeneralpublic2022-09-12 10:06
Assigned Toabma 
PrioritynormalSeverityminorReproducibilityhave not tried
Product Version 
Target VersionFixed in Version 
Summary0006452: gcc 12 compile error
Descriptionsomeone from chat:

i am compiling spring with gcc 12, instead of gcc 11
i had to replace:
./rts/Lua/LuaMaterial.h:279: spring::unsynced_map<int, std::array<LuaMatUniform, 16>> objectUniforms[2];
./rts/Lua/LuaMaterial.h:279: spring::unsynced_map<int, std::vector<LuaMatUniform>> objectUniforms[2];
some error related to "must be an unbounded array" ...
not sure it gonna work tho
this is the exact message: "template argument must be a complete class or an unbounded array"
and an array<xxx, nn> is indeed bounded
while vector is not

I think vector is not as fast as array, there must be a better option than vector.

Good luck

* dependency graph for games-strategy/spring-9999
`-- games-strategy/spring-9999 ~amd64
  `-- dev-libs/boost-1.79.0 (>=dev-libs/boost-1.35) amd64
  `-- sys-libs/zlib-1.2.12-r2 (>=sys-libs/zlib- amd64 [minizip]
  `-- media-libs/devil-1.7.8-r4 (media-libs/devil) amd64 [jpeg png]
  `-- virtual/jdk-1.8.0-r6 (>=virtual/jdk-1.8) amd64
  `-- media-libs/freetype-2.12.1 (>=media-libs/freetype-2.0.0) ~amd64
  `-- media-libs/glew-2.2.0 (>=media-libs/glew-1.6) amd64
  `-- media-libs/libsdl2-2.0.20-r1 (media-libs/libsdl2) amd64 [X opengl]
  `-- x11-libs/libXcursor-1.2.1 (x11-libs/libXcursor) amd64
  `-- media-libs/openal-1.22.2 (media-libs/openal) ~amd64
  `-- media-libs/libvorbis-1.3.7 (media-libs/libvorbis) amd64
  `-- media-libs/libogg-1.3.5 (media-libs/libogg) ~amd64
  `-- virtual/glu-9.0-r2 (virtual/glu) amd64
  `-- virtual/opengl-7.0-r2 (virtual/opengl) amd64
  `-- sys-devel/gcc-12.1.1_p20220625 (>=sys-devel/gcc-4.2) ~amd64
  `-- app-arch/p7zip-16.02-r8 (app-arch/p7zip) amd64
  `-- dev-util/cmake-3.22.4 (>=dev-util/cmake-2.6.0) amd64
  `-- dev-util/google-perftools-2.9.1-r2 (dev-util/google-perftools) amd64
  `-- sys-libs/libunwind-1.6.2 (sys-libs/libunwind) amd64
  `-- dev-java/java-config-2.3.1 (>=dev-java/java-config-2.2.0-r3) amd64
  `-- dev-vcs/git-2.35.1 (>=dev-vcs/git- amd64 [curl]
  `-- dev-util/ninja-1.10.2-r1 (>=dev-util/ninja-1.8.2) amd64
TagsNo tags attached.
Checked infolog.txt for ErrorsIrrelevant
Attached Files




abma (administrator)

i've compiled current spring development version and fixed some errors.

can you please try again with the development branch?

-Issue History
Date Modified Username Field Change
2022-07-08 13:41 abma New Issue
2022-09-12 10:06 abma Assigned To => abma
2022-09-12 10:06 abma Status new => feedback
2022-09-12 10:06 abma Note Added: 0020615
+Issue History