View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0006452 | Spring engine | General | public | 2022-07-08 13:41 | 2022-09-12 10:06 | ||||||||
Reporter | abma | ||||||||||||
Assigned To | abma | ||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||
Status | feedback | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0006452: gcc 12 compile error | ||||||||||||
Description | someone 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]; to ./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-1.2.5.1) 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-1.8.2.1) amd64 [curl] `-- dev-util/ninja-1.10.2-r1 (>=dev-util/ninja-1.8.2) amd64 | ||||||||||||
Tags | No tags attached. | ||||||||||||
Checked infolog.txt for Errors | Irrelevant | ||||||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2022-09-12 10:06 |
i've compiled current spring development version and fixed some errors. can you please try again with the development branch? |