Created attachment 330424 [details] Output of "emerge --info" When emerging sys-devel/llvm-2.9-r2 on my ~amd64 system, compilation fails with the error: Intercept.cpp: In constructor ‘{anonymous}::StatSymbols::StatSymbols()’: Intercept.cpp:69:67: error: ‘lseek64’ was not declared in this scope
Created attachment 330428 [details] sys-devel:llvm-2.9-r2:20121124-123047.log Log file written by emerge.
The usual missing unistd.h include with (~arch) gcc 4.7... Thanks for the report! I added the include to llvm-2.9-r2 so it will work on your next sync So it looks like 2.9 will stay in tree a bit longer :)
The patch also is also needed in llvm-2.8. And while you're at it, please add epatch_user to the 2.8 and 2.9 ebuilds.
Here you go + 10 Jun 2013; Bernard Cafarelli <voyageur@gentoo.org> llvm-2.8-r2.ebuild, + llvm-2.9-r2.ebuild: + Allow 2.8 compilation with gcc 4.7, add epatch_user to 2.8/2.9