Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luau 0.615 build failure #1178

Closed
chenrui333 opened this issue Mar 3, 2024 · 5 comments
Closed

luau 0.615 build failure #1178

chenrui333 opened this issue Mar 3, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@chenrui333
Copy link

👋 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::Type const*>(Luau::NotNull<Luau::Scope>, 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::Type const*>(Luau::NotNull<Luau::Scope>, Luau::Location, Luau::Type const*, Luau::Type const*)'
/usr/bin/ld: BuiltinDefinitions.cpp:(.text+0x2f57): 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: libLuau.Analysis.a(BuiltinDefinitions.cpp.o): in function `Luau::dcrMagicFunctionFind(Luau::MagicFunctionCallContext)':
BuiltinDefinitions.cpp:(.text+0x3343): 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+0x35c7): 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: libLuau.Analysis.a(BuiltinDefinitions.cpp.o):BuiltinDefinitions.cpp:(.text+0x35f3): more undefined references to `bool Luau::ConstraintSolver::unify<Luau::Type const*>(Luau::NotNull<Luau::Scope>, 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

@chenrui333 chenrui333 added the bug Something isn't working label Mar 3, 2024
@edunad
Copy link

edunad commented Mar 4, 2024

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 vegorov-rbx self-assigned this Mar 4, 2024
@vegorov-rbx
Copy link
Collaborator

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

@vegorov-rbx
Copy link
Collaborator

A fix has been merged to master branch.

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

@chenrui333
Copy link
Author

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

@chenrui333
Copy link
Author

The patch works for me, close via Homebrew/homebrew-core#164787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants