Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444550 - sys-devel/llvm-2.9-r2 - Intercept.cpp:69:67: error: ‘lseek64’ was not declared in this scope
Summary: sys-devel/llvm-2.9-r2 - Intercept.cpp:69:67: error: ‘lseek64’ was not declare...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-24 12:50 UTC by José Romildo Malaquias
Modified: 2013-06-10 22:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of "emerge --info" (emerge.info.txt,16.03 KB, text/plain)
2012-11-24 12:50 UTC, José Romildo Malaquias
Details
sys-devel:llvm-2.9-r2:20121124-123047.log (sys-devel:llvm-2.9-r2:20121124-123047.log,788.56 KB, text/plain)
2012-11-24 12:51 UTC, José Romildo Malaquias
Details

Note You need to log in before you can comment on or make changes to this bug.
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