Title
Details
- Reviewers
wraitii nephele Itms - Commits
- rP24337: Fix compilation on FreeBSD by removing the evct dependency.
- Trac Tickets
- #1325
Test it works on all oses.
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2275/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3939/display/redirect
build/premake/extern_libs5.lua | ||
---|---|---|
248 ↗ | (On Diff #14396) | This is getting out of hand now. Maybe my own taste, so consider that too I guess. My suggestion for this is either use the standard library, or wrap the ad-hoc implementation in a platform directive. But strongly the first one. This quite simple issue is quickly becoming overwhelming. |
build/premake/extern_libs5.lua | ||
---|---|---|
248 ↗ | (On Diff #14396) |
Posix has deprecated this symbol, hence the test. there is no standard library to use on some platforms. We already do this for backtrack symbols from execinfo that glibc provides but other libc's don't, where is the difference here? The other option would be to ifdef for FreeBSD for now and keep ifdeffing for any other platform that has removed ecve or does so in the future, doing it once with a detection seems, to me, to be a more proper solution. just my 2 cents though. |
build/premake/extern_libs5.lua | ||
---|---|---|
248 ↗ | (On Diff #14396) | I mean isocpp standard which if the compiler cannot support can;t build the the project anyway. Again, I don't understand why using a decade old c++ standard is not the preferred alternative rather than trying to do things the C way.
Hence more reason to not carry that baggage around anymore. There is probably a reason why POSIX deprecated it. This is C++, so use the C++ libraries.
I don't like that either. That too is non standard and availble in glibc. Why not just #if defined(__GNU_LIBRARY__)?. |
build/premake/extern_libs5.lua | ||
---|---|---|
248 ↗ | (On Diff #14396) |
Are you suggesting to rewrite the calls to ecvt instead? that would work better i suppose.
Nobody suggested it at the time, that might work too, if you would like to change that? |
(In case I sound passive aggressive, that is not the intention here. I just talk really directly.)
Have to say -> changing the one function to not use ecvt but something else seems a much better solution.
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2280/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2281/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2282/display/redirect
I feel like the regex is kind of overkill still?
libraries/source/fcollada/src/FCollada/FUtils/FUStringBuilderTest.cpp | ||
---|---|---|
55 ↗ | (On Diff #14404) | why is this one deleted? |
Successful build - Chance fights ever on the side of the prudent.
builderr-release-gcc7.txt In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In member function 'virtual void TestMapGenerator::setUp()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~ In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In member function 'virtual void TestComponentScripts::setUp()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~ In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In function 'OsPath DataDir()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3943/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3944/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3945/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2284/display/redirect
libraries/source/fcollada/src/FCollada/FUtils/FUStringBuilderTest.cpp | ||
---|---|---|
55 ↗ | (On Diff #14404) | As per my comment on IRC today. Previously evct would crop numbers this one was turned into "102315" as per the 6 digits precision in FloatToString. While it makes sense for exponents, I don't think it does for plain numbers like this one. |
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2285/display/redirect
Successful build - Chance fights ever on the side of the prudent.
builderr-release-gcc7.txt In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In member function 'virtual void TestMapGenerator::setUp()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~ In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In member function 'virtual void TestComponentScripts::setUp()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~ In file included from ../../../source/lib/os_path.h:26, from ../../../source/lib/self_test.h:28, from ../../../source/simulation2/system/ComponentTest.h:21, from ../../../source/pch/test/precompiled.h:22: ../../../source/lib/path.h: In function 'OsPath DataDir()': ../../../source/lib/path.h:264:68: warning: '<anonymous>.Path::separator' may be used uninitialized in this function [-Wmaybe-uninitialized] debug_printf("Path %s, separator %c\n", string8().c_str(), (char)separator); ^~~~~~~~~
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3947/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2286/display/redirect
Build failure - The Moirai have given mortals hearts that can endure.
Link to build: https://jenkins.wildfiregames.com/job/macos-differential/2287/display/redirect