LuaLS / LuaLS/lua-language-server

note: in expansion of macro ‘MI_ATOMIC_VAR_INIT’

Open
#3,331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with luarocks make and the reported GCC, Clang, and CMake versions. Inspect 3rd/mimalloc-2.0.9/include/mimalloc-atomic.h and 3rd/mimalloc-2.0.9/src/os.c; done means the bundled EmmyLuaCodeStyle dependency builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, lua
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.