note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
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.
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
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Merge trung bình
- 8 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 1
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.
Issue khác của LuaLS/lua-language-server
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
LuaLS/lua-language-server#1776 ·
-
泛型for迭代器的类型推导漏掉了带__call的类 Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
LuaLS/lua-language-server#3463 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
LuaLS/lua-language-server#3461 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
LuaLS/lua-language-server#3460 · 1 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
LuaLS/lua-language-server#3459 · 1 reaction ·
Tất cả issue của LuaLS/lua-language-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
HenrikBengtsson/CBI-software#134 ·
-
Nmap
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
secondlife/slua#96 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100