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

[Bug]: Assert on building with LLVM 19.1 #740

Open
kumarak opened this issue Oct 29, 2024 · 0 comments
Open

[Bug]: Assert on building with LLVM 19.1 #740

kumarak opened this issue Oct 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kumarak
Copy link
Member

kumarak commented Oct 29, 2024

VAST version

v0.0.41

LLVM version

19.1

Operating system

MacOS

Description

Assertion failure on compiling vast with llvm 19.1

[11/173] Building HighLevel.h.inc...
FAILED: include/vast/Dialect/HighLevel/HighLevel.h.inc /Users/akshayk/Documents/workspace/src/vast/builds/default/include/vast/Dialect/HighLevel/HighLevel.h.inc 
cd /Users/akshayk/Documents/workspace/src/vast/builds/default && /Users/akshayk/Documents/workspace/install/bin/mlir-tblgen -gen-op-decls -I /Users/akshayk/Documents/workspace/src/vast/include/vast/Dialect/HighLevel -I/Users/akshayk/Documents/workspace/install/include -I/Users/akshayk/Documents/workspace/src/vast/include /Users/akshayk/Documents/workspace/src/vast/include/vast/Dialect/HighLevel/HighLevel.td --write-if-changed -o include/vast/Dialect/HighLevel/HighLevel.h.inc -d include/vast/Dialect/HighLevel/HighLevel.h.inc.d && /opt/homebrew/Cellar/cmake/3.30.2/bin/cmake -E cmake_transform_depfile Ninja\ Multi-Config gccdepfile /Users/akshayk/Documents/workspace/src/vast /Users/akshayk/Documents/workspace/src/vast/include/vast/Dialect/HighLevel /Users/akshayk/Documents/workspace/src/vast/builds/default /Users/akshayk/Documents/workspace/src/vast/builds/default/include/vast/Dialect/HighLevel /Users/akshayk/Documents/workspace/src/vast/builds/default/include/vast/Dialect/HighLevel/HighLevel.h.inc.d /Users/akshayk/Documents/workspace/src/vast/builds/default/CMakeFiles/d/b13cab8409f476c0ded2f3d7fb6c5c3de401c1e3ef9522ebf3791b35805b258e.d
Assertion failed: (!empty()), function front, file ArrayRef.h, line 169.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/akshayk/Documents/workspace/install/bin/mlir-tblgen -gen-op-decls -I /Users/akshayk/Documents/workspace/src/vast/include/vast/Dialect/HighLevel -I/Users/akshayk/Documents/workspace/install/include -I/Users/akshayk/Documents/workspace/src/vast/include /Users/akshayk/Documents/workspace/src/vast/include/vast/Dialect/HighLevel/HighLevel.td --write-if-changed -o include/vast/Dialect/HighLevel/HighLevel.h.inc -d include/vast/Dialect/HighLevel/HighLevel.h.inc.d
 #0 0x0000000101103adc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x1003b7adc)
 #1 0x00000001011040cc PrintStackTraceSignalHandler(void*) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x1003b80cc)
 #2 0x0000000101101c50 llvm::sys::RunSignalHandlers() (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x1003b5c50)
 #3 0x0000000101104b70 SignalHandler(int) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x1003b8b70)
 #4 0x0000000187654184 (/usr/lib/system/libsystem_platform.dylib+0x180484184)
 #5 0x000000018761ef70 (/usr/lib/system/libsystem_pthread.dylib+0x18044ef70)
 #6 0x000000018752b908 (/usr/lib/system/libsystem_c.dylib+0x18035b908)
 #7 0x000000018752ac1c (/usr/lib/system/libsystem_c.dylib+0x18035ac1c)
 #8 0x0000000100da0cf8 llvm::ArrayRef<mlir::tblgen::FormatElement*>::front() const (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x100054cf8)
 #9 0x0000000100ee7848 (anonymous namespace)::OperationFormat::genElementParser(mlir::tblgen::FormatElement*, mlir::tblgen::MethodBody&, mlir::tblgen::FmtContext&, (anonymous namespace)::OperationFormat::GenContext) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x10019b848)
#10 0x0000000100ec1ec0 (anonymous namespace)::OperationFormat::genParser(mlir::tblgen::Operator&, mlir::tblgen::OpClass&) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x100175ec0)
#11 0x0000000100ec1c14 mlir::tblgen::generateOpFormat(mlir::tblgen::Operator const&, mlir::tblgen::OpClass&) (/Users/akshayk/Documents/workspace/install/bin/mlir-tblgen+0x100175c14)

Steps to Reproduce

Steps to reproduce:

  1. Install debug build of llvm 19.1 on macOS
  2. cmake --preset default
  3. cmake --build --preset debug/release

I don't see any issue with release build of llvm 19.1

@kumarak kumarak added the bug Something isn't working label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant