-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
NeonEmitter.cpp:249: error: ‘TGError’ was not declared in this scope #6188
Comments
Seems like TGError was supposed to be in the included file "llvm/TableGen/Record.h", but it's not there. |
I've noticed that if I just type |
👍 I was getting the same error, and @catamorphism's solution worked for me too. |
This is still happening, and should be fixed. Nominating for milestone 5, production-ready. (Though hopefully it'll get fixed sooner!) |
|
Now |
Still happening, 040ac2a |
Still an issue as of 680eb71 |
Turns out this is due to having stale submodules in a build tree -- fresh checkouts don't even include clang anymore.
That fixes things up for me. |
just a bug, removing milestone/nomination. |
This still happens sometimes. It's a race in one of the build systems, somewhere. |
Can usually be fixed by rerunning make. |
Closing, I think that LLVM has long since fixed this, or long since changed. I haven't seen this recently. |
Add --no-deps option to avoid running on path dependencies in workspaces Since rust-lang/cargo#8758 has hit nightly, this allows us to address the second bullet point and [the concern related to `--fix`](rust-lang/cargo#8143 (comment)) in the [RUSTC_WORKSPACE_WRAPPER tracking issue](rust-lang/cargo#8143). As a reminder stabilizing that env var will solve rust-lang#4612 (Clippy not running after `cargo check` in stable) and would allow to stabilize the `--fix` option in Clippy. changelog: Add `--no-deps` option to avoid running on path dependencies in workspaces Fixes rust-lang#3025
When building servo's copy of rust (pretty recent merge) on OS X 10.8:
llvm[5]: Compiling NeonEmitter.cpp for Release+Asserts build
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp: In function ‘void ParseTypes(llvm::Record_, std::string&, llvm::SmallVectorImplllvm::StringRef&)’:
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp:249: error: ‘TGError’ was not declared in this scope
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp: In member function ‘void::NeonEmitter::emitIntrinsic(llvm::raw_ostream&, llvm::Record_)’:
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp:1384: error: ‘TGError’ was not declared in this scope
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp: In member function ‘void::NeonEmitter::runHeader(llvm::raw_ostream&)’:
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp:1459: error: ‘TGError’ was not declared in this scope
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp:1504: error: ‘TGError’ was not declared in this scope
/Users/josh/src/mozilla/bdaehlie-servo/src/rust/src/llvm/tools/clang/utils/TableGen/NeonEmitter.cpp:1603: error: ‘TGError’ was not declared in this scope
make[5]: *** [/Users/josh/src/mozilla/bdaehlie-servo/build/src/rust/llvm/x86_64-apple-darwin/tools/clang/utils/TableGen/Release+Asserts/NeonEmitter.o] Error 1
The text was updated successfully, but these errors were encountered: