You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NeonEmitter.cpp:249: error: ‘TGError’ was not declared in this scope #6188
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
I've noticed that if I just type make check again after getting this error, the build system happily goes on to build Rust. It should still be fixed, though!
Turns out this is due to having stale submodules in a build tree -- fresh checkouts don't even include clang anymore.
cd ${srcdir}
rm -rf src/llvm/tools/clang
rm -rf src/llvm/projects/compiler-rt # also extraneous, also likely to be present
rm -rf .git/modules/src/llvm/modules
cd ${builddir}
rm -rf llvm/*/tools/clang
rm -rf llvm/*/projects/compiler-rt
Activity
bdaehlie commentedon May 2, 2013
Seems like TGError was supposed to be in the included file "llvm/TableGen/Record.h", but it's not there.
catamorphism commentedon May 2, 2013
I've noticed that if I just type
make checkagain after getting this error, the build system happily goes on to build Rust. It should still be fixed, though!utkarshkukreti commentedon May 7, 2013
👍 I was getting the same error, and @catamorphism's solution worked for me too.
catamorphism commentedon May 27, 2013
This is still happening, and should be fixed. Nominating for milestone 5, production-ready. (Though hopefully it'll get fixed sooner!)
acertain commentedon Jun 13, 2013
make checkdoesn't fix it for me.acertain commentedon Jun 18, 2013
Now
make checkseems to have fixed it...catamorphism commentedon Jul 1, 2013
Still happening, 040ac2a
catamorphism commentedon Aug 16, 2013
Still an issue as of 680eb71
pkgw commentedon Aug 21, 2013
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.
graydon commentedon Aug 22, 2013
just a bug, removing milestone/nomination.
emberian commentedon Jan 6, 2014
This still happens sometimes. It's a race in one of the build systems, somewhere.
emberian commentedon Jan 6, 2014
Can usually be fixed by rerunning make.
alexcrichton commentedon Apr 10, 2014
Closing, I think that LLVM has long since fixed this, or long since changed. I haven't seen this recently.
Auto merge of rust-lang#6188 - ebroto:primary_package, r=flip1995
Merge rust-lang#6188