LuaLS / LuaLS/lua-language-server
note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’
Đang mở
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
eacc3d8ed6a298e63a93bcf26cb4d572c797453a
luarocks make
Warning: falling back to wget - install luasec >= 1.1 to get native HTTPS support
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at 3rd/googletest-1.13.0/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at 3rd/googletest-1.13.0/googlemock/CMakeLists.txt:39 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at 3rd/googletest-1.13.0/googletest/CMakeLists.txt:49 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Found Python: /home/chiller/.pyenv/shims/python3.11 (found version "3.11.11") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/build.luarocks
[ 1%] Building C object Util/uriparser.out/CMakeFiles/uriparser.dir/src/UriCommon.c.o
[ 2%] Building C object Util/uriparser.out/CMakeFiles/uriparser.dir/src/UriCompare.c.o
[ 2%] Building C object Util/uriparser.out/CMakeFiles/uriparser.dir/src/UriEscape.c.o
[..]
[ 82%] Building CXX object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/src/Service/FormatService.cpp.o
[ 83%] Building CXX object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/src/Service/DiagnosticService.cpp.o
[ 84%] Building CXX object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/src/Service/CommandService.cpp.o
[ 84%] Building CXX object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/src/Service/CodeActionService.cpp.o
[ 85%] Building CXX object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/src/Service/ConfigService.cpp.o
[ 86%] Building C object CodeFormatServer/CMakeFiles/CodeFormatServer.dir/__/3rd/mimalloc-2.0.9/src/static.c.o
In file included from /tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/include/mimalloc-types.h:13,
from /tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/include/mimalloc-internal.h:11,
from /tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/src/static.c:17:
/tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/src/os.c: In function ‘mi_os_resetx’:
/tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/include/mimalloc-atomic.h:42:33: error: implicit declaration of function ‘ATOMIC_VAR_INIT’; did you mean ‘ATOMIC_FLAG_INIT’? [-Wimplicit-function-declaration]
42 | #define MI_ATOMIC_VAR_INIT(x) ATOMIC_VAR_INIT(x)
| ^~~~~~~~~~~~~~~
/tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/src/os.c:1048:35: note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’
1048 | static _Atomic(size_t) advice = MI_ATOMIC_VAR_INIT(MADV_FREE);
| ^~~~~~~~~~~~~~~~~~
/tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/include/mimalloc-atomic.h:42:33: error: initializer element is not constant
42 | #define MI_ATOMIC_VAR_INIT(x) ATOMIC_VAR_INIT(x)
| ^~~~~~~~~~~~~~~
/tmp/luarocks_emmyluacodestyle-1.5.7-1--jywRSD/EmmyLuaCodeStyle-1.5.7/3rd/mimalloc-2.0.9/src/os.c:1048:35: note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’
1048 | static _Atomic(size_t) advice = MI_ATOMIC_VAR_INIT(MADV_FREE);
| ^~~~~~~~~~~~~~~~~~
[..]
make[2]: *** [CodeFormatServer/CMakeFiles/CodeFormatServer.dir/build.make:401: CodeFormatServer/CMakeFiles/CodeFormatServer.dir/__/3rd/mimalloc-2.0.9/src/static.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:644: CodeFormatServer/CMakeFiles/CodeFormatServer.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Error: Failed installing dependency: https://luarocks.org/emmyluacodestyle-1.5.7-1.src.rock - Build error: Failed building.
Missing dependencies for lua-language-server scm-1:
emmyluacodestyle (not installed)
bee.lua (not installed)
lua-language-server scm-1 depends on lpeglabel (1.6.2-1 installed: success)
lua-language-server scm-1 depends on emmyluacodestyle (not installed)
Installing https://luarocks.org/emmyluacodestyle-1.5.7-1.src.rock
Applying patch install-lua-module.diff...
$ g++ --version
g++ (GCC) 15.2.1 20251112
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ clang++ --version
clang version 21.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ cmake --version
cmake version 4.2.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ uname -a
Linux archlinux 6.18.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 02 Jan 2026 17:52:55 +0000 x86_64 GNU/Linux
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện lỗi với luarocks make và các phiên bản GCC, Clang và CMake được báo cáo. Kiểm tra 3rd/mimalloc-2.0.9/include/mimalloc-atomic.h và 3rd/mimalloc-2.0.9/src/os.c; công việc được xem là hoàn tất khi dependency EmmyLuaCodeStyle đi kèm được build thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c, cmake, lua
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100