LuaLS / LuaLS/lua-language-server

note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’

Offen
#3,331 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Lua
Sterne
4.4k
Forks
442
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Fehler mit luarocks make und den gemeldeten GCC-, Clang- und CMake-Versionen. Untersuche 3rd/mimalloc-2.0.9/include/mimalloc-atomic.h und 3rd/mimalloc-2.0.9/src/os.c; als abgeschlossen gilt die Aufgabe, wenn die gebündelte EmmyLuaCodeStyle-Abhängigkeit erfolgreich erstellt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
c, cmake, lua
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.