Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 444550

Summary: sys-devel/llvm-2.9-r2 - Intercept.cpp:69:67: error: ‘lseek64’ was not declared in this scope
Product: Gentoo Linux Reporter: José Romildo Malaquias <jrmalaq>
Component: [OLD] Core systemAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of "emerge --info"
sys-devel:llvm-2.9-r2:20121124-123047.log

Description José Romildo Malaquias 2012-11-24 12:50:01 UTC
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
Comment 1 José Romildo Malaquias 2012-11-24 12:51:17 UTC
Created attachment 330428 [details]
sys-devel:llvm-2.9-r2:20121124-123047.log

Log file written by emerge.
Comment 2 Bernard Cafarelli gentoo-dev 2012-11-30 15:44:34 UTC
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 :)
Comment 3 Daniel Scharrer 2013-05-27 14:22:53 UTC
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.
Comment 4 Bernard Cafarelli gentoo-dev 2013-06-10 22:26:09 UTC
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