LuaLS / LuaLS/lua-language-server

note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’

オープン
#3,331 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Lua
スター
4.4k
フォーク
442
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

luarocks make と報告された GCC、Clang、CMake のバージョンで失敗を再現します。3rd/mimalloc-2.0.9/include/mimalloc-atomic.h3rd/mimalloc-2.0.9/src/os.c を調査します。バンドルされている EmmyLuaCodeStyle 依存関係のビルドが正常に成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, cmake, lua
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。