2019-12-07 07:58 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006061Spring engineLinuxpublic2019-02-28 10:07
ReporterThinkSome 
Assigned Toabma 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006061: maintenance 4704adf4 does not link due to undefined reference to lzma*
Description...
gs.c.o CMakeFiles/engine-legacy.dir/__/__/System/SplashScreen.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/SpringApp.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/StartScriptGen.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/DumpState.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/FPUCheck.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/Logger.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/SHA512.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/SyncChecker.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/SyncDebugger.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/SyncTracer.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/SyncedFloat3.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/backtrace.c.o CMakeFiles/engine-legacy.dir/__/__/System/Sync/get_executable_name.c.o CMakeFiles/engine-legacy.dir/__/__/System/TdfParser.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Threading/ThreadPool.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/TimeProfiler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/TimeUtil.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/UriParser.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/StringHash.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/StringUtil.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/type2.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/float3.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/float4.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/myMath.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/creg/SerializeLuaState.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/creg/Serializer.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/creg/VarTypes.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/creg/creg.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/creg/creg_runtime_tests.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/ArchiveNameResolver.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/ArchiveLoader.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/ArchiveScanner.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/CacheDir.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/DataDirLocater.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/DataDirsAccess.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/FileFilter.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/FileHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/FileSystem.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/FileSystemAbstraction.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/FileSystemInitializer.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/GZFileHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/RapidHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/SimpleParser.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/FileSystem/VFSHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/Backend.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/DefaultFilter.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/DefaultFormatter.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/FramePrefixer.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/LogSinkHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Log/LogUtil.c.o CMakeFiles/engine-legacy.dir/__/__/System/Log/ConsoleSink.cpp.o
CMakeFiles/engine-legacy.dir/__/__/System/Log/FileSink.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/CrashHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/SoLib.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/MessageBox.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/WindowManagerHelper.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/CpuID.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Threading.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/Futex.cpp.o CMakeFiles/engine-legacy.dir/__/__/System/Platform/Linux/ThreadSupport.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AICallback.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AICheats.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AIInterfaceKey.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AIInterfaceLibrary.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AIInterfaceLibraryInfo.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AILibraryManager.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/AISCommands.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/EngineOutHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/LuaAIImplHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SAIInterfaceCallbackImpl.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SSkirmishAICallbackImpl.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAIData.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAIHandler.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAIKey.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAILibrary.cpp.o
CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAILibraryInfo.cpp.o CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAIWrapper.cpp.o -o ../../../spring -Wl,-Bstatic -lSDL2main -lSDL2main -Wl,-Bdynamic -lSDL2 -lpthread -lpthread -lGL -lGLU -lGLEW -lfontconfig -lexpat -lfreetype -lbz2 -lXcursor -lX11 ../../lib/squish/libsquish.a ../../lib/rg-etc1/librgetc1.a ../../System/Sound/libsound.a ../../System/Net/libengineSystemNet.a -Wl,-Bstatic -lc -lm -Wl,-Bdynamic -ldl -lIL -ljpeg -lpng -ltiff -lgif ../../lib/7z/lib7zip.a -lminizip -lz ../../lib/lua/liblua.a ../../lib/luasocket/libluasocket.a ../../System/FileSystem/Archives/libarchives.a ../../lib/assimp/code/libassimp.a ../../lib/gflags/libgflags_nothreads.a ../../lib/streflop/libstreflop.a -ltcmalloc -Wl,-Bstatic -lunwind ../../aGui/libengineaGui.a -Wl,-Bdynamic -Wl,-whole-archive ../../Sim/libengineSim.a -Wl,-no-whole-archive ../../Sim/libengineSim.a ../../../tools/pr-downloader/src/libpr-downloader_static.a -lvorbisfile -lvorbis -logg -lopenal ../../lib/7z/lib7zip.a ../../lib/assimp/contrib/irrXML/libIrrXML.a -ldl ../../../tools/pr-downloader/src/libDownloader.a -lcurl -lssl -lcrypto -lminizip -lz ../../../tools/pr-downloader/src/lib/md5/libpr-md5.a ../../../tools/pr-downloader/src/lib/sha1/libpr-sha1.a ../../../tools/pr-downloader/src/lib/bencode/libbencode.a ../../../tools/pr-downloader/src/lib/7z/libpr-7z.a
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_eh.a(unwind-dw2.o): multiple definition of '_Unwind_GetIP'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(GetIP.o): previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_eh.a(unwind-dw2.o): multiple definition of '_Unwind_Resume'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(Resume.o): previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_eh.a(unwind-dw2.o): multiple definition of '_Unwind_Backtrace'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(Backtrace.o): previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_stream_footer_decode'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_index_buffer_decode'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_index_size'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_index_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_index_uncompressed_size'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_index_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libunwind.a(elf64.o):elf64.c:function _Uelf64_get_proc_name_in_image: error: undefined reference to 'lzma_stream_buffer_decode'
collect2: error: ld returned 1 exit status
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0019458

abma (administrator)

IMHO thats a missing feature in:
https://github.com/spring/spring/blob/30862626214bd263b1c4489bb197ef1c3dbc0738/rts/build/cmake/FindLibunwind.cmake

very likely running cmake with -DLIBUNWIND_LIBRARIES="unwind lzma" fixes it.

~0019463

ThinkSome (reporter)

Same error.

>>> Working in BUILD_DIR: "/tmp/portage/games-strategy/spring-20181031/work/spring-20181031_build"
cmake --no-warn-unused-cli -C /tmp/portage/games-strategy/spring-20181031/work/spring-20181031_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DPREFER_STATIC_LIBS=1 -DUSE_TCMALLOC=yes -DUSE_LIBSQUISH=yes -DUSE_THREADPOOL=yes -DLTO=no -DAI_TYPES=NATIVE -DBUILD_spring-default=yes -DBUILD_spring-headless=no -DBUILD_spring-dedicated=no -DCMAKE_INSTALL_PREFIX=/opt/springrts.com/spring/20181031 -DLIBUNWIND_LIBRARIES="unwind lzma" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_TOOLCHAIN_FILE=/tmp/portage/games-strategy/spring-20181031/work/spring-20181031_build/gentoo_toolchain.cmake /tmp/portage/games-strategy/spring-20181031/work/spring-20181031

~0019464

abma (administrator)

can you provide the full output of the second try, please?

~0019465

ThinkSome (reporter)

Here

~0019466

ThinkSome (reporter)

Attempt#2

~0019467

ThinkSome (reporter)

Oh, it actually worked. Now there are three copies.

~0019661

ThinkSome (reporter)

The erorr is still there in 9c8a5d12c996f6ae3fd46b4316051c8bba79fa19, even with added " -DLIBUNWIND_LIBRARIES="unwind lzma"". I don't know why I made the previous comment, perha
ps I was confused by an even earlier checkout's build?

~0019711

ThinkSome (reporter)

reproduced in 1e16912bd412c4d92c041bfbefa5723f820a795c .. february 13th 2019 maintenance.

~0019774

abma (administrator)

why do you try to build a static linked spring on linux?

IMHO you should follow the setup we use on our buildlsaves: https://springrts.com/wiki/Buildbot:LXC

~0019790

ThinkSome (reporter)

Hmm, not sure how the mycmakeargs+=(-DPREFER_STATIC_LIBS=1) sneaked into ebuilds, but it builds without it.
+Notes

-Issue History
Date Modified Username Field Change
2018-11-01 02:09 ThinkSome New Issue
2018-11-01 18:28 abma Note Added: 0019458
2018-11-03 02:59 ThinkSome Note Added: 0019463
2018-11-03 17:11 abma Assigned To => abma
2018-11-03 17:11 abma Status new => feedback
2018-11-03 17:11 abma Note Added: 0019464
2018-11-03 20:49 ThinkSome File Added: spring-20181031:20181103-012713.log.xz
2018-11-03 20:50 ThinkSome File Added: spring-20181031:20181103-012713.log-2.xz
2018-11-03 20:50 ThinkSome Note Added: 0019465
2018-11-03 20:50 ThinkSome Status feedback => assigned
2018-11-03 21:05 ThinkSome File Added: spring-20181031:20181103-012713.log-3.xz
2018-11-03 21:05 ThinkSome Note Added: 0019466
2018-11-03 21:06 ThinkSome Note Added: 0019467
2019-01-13 12:20 ThinkSome Note Added: 0019661
2019-02-14 00:21 ThinkSome Note Added: 0019711
2019-02-26 11:39 abma Note Added: 0019774
2019-02-28 02:18 ThinkSome Note Added: 0019790
2019-02-28 10:07 abma Status assigned => resolved
2019-02-28 10:07 abma Resolution open => no change required
+Issue History