luau-lang / luau

A fast, small, safe, gradually typed embeddable scripting language derived from Lua
https://luau.org
MIT License
3.98k stars 373 forks source link

luau 0.615 build failure #1178

Closed chenrui333 closed 7 months ago

chenrui333 commented 7 months ago

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log ``` [100%] Linking CXX executable luau-analyze /home/linuxbrew/.linuxbrew/Cellar/cmake/3.28.3/bin/cmake -E cmake_link_script CMakeFiles/Luau.Analyze.CLI.dir/link.txt --verbose=1 /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11 -O3 -DNDEBUG -rdynamic CMakeFiles/Luau.Analyze.CLI.dir/CLI/FileUtils.cpp.o CMakeFiles/Luau.Analyze.CLI.dir/CLI/Flags.cpp.o CMakeFiles/Luau.Analyze.CLI.dir/CLI/Analyze.cpp.o -o luau-analyze -lpthread libLuau.Analysis.a libLuau.Config.a libLuau.Ast.a /usr/bin/ld: libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionFormat(Luau::MagicFunctionCallContext)': BuiltinDefinitions.cpp:(.text+0x269c): undefined reference to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' /usr/bin/ld: libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionMatch(Luau::MagicFunctionCallContext)': BuiltinDefinitions.cpp:(.text+0x2eac): undefined reference to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' /usr/bin/ld: BuiltinDefinitions.cpp:(.text+0x2f57): undefined reference to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' /usr/bin/ld: libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionFind(Luau::MagicFunctionCallContext)': BuiltinDefinitions.cpp:(.text+0x3343): undefined reference to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' /usr/bin/ld: BuiltinDefinitions.cpp:(.text+0x35c7): undefined reference to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' /usr/bin/ld: libLuau.Analysis.a(BuiltinDefinitions.cpp.o):BuiltinDefinitions.cpp:(.text+0x35f3): more undefined references to `bool Luau::ConstraintSolver::unify(Luau::NotNull, Luau::Location, Luau::Type const*, Luau::Type const*)' follow collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/Luau.Analyze.CLI.dir/build.make:135: luau-analyze] Error 1 make[2]: Leaving directory '/tmp/luau-20240303-3269-713rqr/luau-0.615/build' make[1]: *** [CMakeFiles/Makefile2:377: CMakeFiles/Luau.Analyze.CLI.dir/all] Error 2 make[1]: Leaving directory '/tmp/luau-20240303-3269-713rqr/luau-0.615/build' make: *** [Makefile:94: all] Error 2 ```

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/8117550031/job/22191529709 relates to Homebrew/homebrew-core#164787

edunad commented 7 months ago

Having the same issue after updating to the new version

/usr/bin/ld: _deps/luau-build/libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionFormat(Luau::MagicFunctionCallContext)':
BuiltinDefinitions.cpp:(.text+0x3185): undefined reference to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: _deps/luau-build/libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionMatch(Luau::MagicFunctionCallContext)':
BuiltinDefinitions.cpp:(.text+0x3ec6): undefined reference to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: BuiltinDefinitions.cpp:(.text+0x3f5d): undefined reference to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: _deps/luau-build/libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionGmatch(Luau::MagicFunctionCallContext)':
BuiltinDefinitions.cpp:(.text+0x41f4): undefined reference to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: _deps/luau-build/libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionFind(Luau::MagicFunctionCallContext)':
BuiltinDefinitions.cpp:(.text+0x45c3): undefined reference to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: _deps/luau-build/libLuau.Analysis.a(BuiltinDefinitions.cpp.o):BuiltinDefinitions.cpp:(.text+0x480d): more undefined references to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)' follow

https://github.com/edunad/rawrbox/actions/runs/8141946914/job/22250392487

vegorov-rbx commented 7 months ago

I can confirm this issue with make, we will be looking into it.

vegorov-rbx commented 7 months ago

A fix has been merged to master branch.

New release with the fix will be made on Friday as usual.

chenrui333 commented 7 months ago

Nice, I will try the patch with this release as well. 👍

chenrui333 commented 7 months ago

The patch works for me, close via https://github.com/Homebrew/homebrew-core/pull/164787