You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling azerothcore with mod-eluna I get a random intermittent compilation failure that I believe is a race condition.
I clean build each time.
When compiling with make -j1 the issue never occurs HOWEVER when compiling with multiple threads make -j10 I randomly get this failure with linking liblua52.a
I have had this randomly occur on a ubuntu 24.04 docker container and a debian 12 vm.
I have limited knowledge with c++ so I figured I would report this. Providing the cmake list for mod eluna to chat gpt believes there is a race condition. Which I think is correct.
In src/lualib/lua/CMakeLists.txt line 71 to 78
Failure 1:
[ 6%] Linking C static library liblua52.a
[ 6%] Linking C static library liblua52.a
bfd plugin: LLVM gold plugin has failed to create LTO module: section table goes past the end of file
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
bfd plugin: LLVM gold plugin has failed to create LTO module: The end of the file was unexpectedly encountered
/usr/bin/ranlib: liblua52.a: error reading lvm.c.o: file truncated
make[2]: *** [modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib.dir/build.make:594: modules/mod-eluna/src/lualib/lua/liblua52.a] Error 1
make[2]: *** Deleting file 'modules/mod-eluna/src/lualib/lua/liblua52.a'
[ 6%] Built target lualib_static
make[1]: *** [CMakeFiles/Makefile2:658: modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Failure 2:
[ 7%] Building C object modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib_static.dir/__/__/__/__/__/_deps/lua52-src/src/lzio.c.o
[ 7%] Building C object modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib.dir/__/__/__/__/__/_deps/lua52-src/src/lzio.c.o
[ 7%] Linking C static library liblua52.a
[ 7%] Linking C static library liblua52.a
/usr/bin/ar: unable to copy file 'liblua52.a'; reason: No such file or directory
make[2]: *** [modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib_static.dir/build.make:594: modules/mod-eluna/src/lualib/lua/liblua52.a] Error 1
make[1]: *** [CMakeFiles/Makefile2:684: modules/mod-eluna/src/lualib/lua/CMakeFiles/lualib_static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered:
When compiling azerothcore with mod-eluna I get a random intermittent compilation failure that I believe is a race condition.
I clean build each time.
When compiling with
make -j1
the issue never occurs HOWEVER when compiling with multiple threadsmake -j10
I randomly get this failure with linking liblua52.aI have had this randomly occur on a ubuntu 24.04 docker container and a debian 12 vm.
I have limited knowledge with c++ so I figured I would report this. Providing the cmake list for mod eluna to chat gpt believes there is a race condition. Which I think is correct.
In src/lualib/lua/CMakeLists.txt line 71 to 78

Failure 1:
Failure 2:
The text was updated successfully, but these errors were encountered: