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

Build failure in llvm-wrapper #17

Open
sagacity opened this issue Oct 28, 2022 · 3 comments
Open

Build failure in llvm-wrapper #17

sagacity opened this issue Oct 28, 2022 · 3 comments

Comments

@sagacity
Copy link

Thanks for your work on this project!

When compiling llvm-wrapper/PassWrapper.cpp I get this error:

  cargo:warning=llvm-wrapper/PassWrapper.cpp:321:57: error: no member named 'getCPUTable' in 'llvm::MCSubtargetInfo'
  cargo:warning=  const ArrayRef<SubtargetSubTypeKV> CPUTable = MCInfo->getCPUTable();
  cargo:warning=                                                ~~~~~~  ^

This is with llvm-mos/llvm-mos@50b5e6c and llvm-mos/llvm-mos-sdk@3db8fe6 (so pretty much the current commits at the time of writing). Is there something I can do to fix this?

@sagacity
Copy link
Author

Just as an exercise I removed the references to getCPUTable and the hardware features table and replaced them with some dummy values (1 CPU, no features). This caused the rest of the compilation to succeed. However, trying to compile any example rust code causes a crash inside the compiler so I guess having no hardware features is not really an option :)

@sagacity
Copy link
Author

sagacity commented Nov 1, 2022

I've also tried a build with the revisions mentioned in #16 but that returns the same error.

@titanlab
Copy link

@sagacity

I had the same problems and got this running by setting llvm-has-rust-patches to false in the config.toml.

Also I used his llvm-mos fork from here: https://github.com/mrk-its/llvm-mos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants