Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201828 - dev-lang/mercury-0.13.1-r1: memory overflow during building 64-bit version
Summary: dev-lang/mercury-0.13.1-r1: memory overflow during building 64-bit version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Keri Harris
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-10 07:30 UTC by Nikolay Orlyuk
Modified: 2008-08-21 07:03 UTC (History)
0 users

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


Attachments
build.log.bz2 (build.log.bz2,15.66 KB, application/x-bzip2)
2007-12-10 09:31 UTC, Nikolay Orlyuk
Details
emerge_start.log.bz2 (emerge_start.log.bz2,818 bytes, application/x-bzip2)
2007-12-10 09:33 UTC, Nikolay Orlyuk
Details
environment.bz2 (environment.bz2,20.96 KB, application/x-bzip2)
2007-12-10 09:33 UTC, Nikolay Orlyuk
Details
config.log.bz2 (config.log.bz2,16.99 KB, application/x-bzip2)
2007-12-10 09:34 UTC, Nikolay Orlyuk
Details
building with gcc-4.3.1 (ebuild-end.log.bz2,3.48 KB, application/x-bzip2)
2008-06-28 08:01 UTC, Nikolay Orlyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Orlyuk 2007-12-10 07:30:37 UTC
For all details see: http://bugs.mercury.csse.unimelb.edu.au/view.php?id=31

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-10 08:00:39 UTC
(In reply to comment #0)
> For all details see: http://bugs.mercury.csse.unimelb.edu.au/view.php?id=31

I can't because it shows nothing without login. Please post the relevant errors and emerge --info output here.
Comment 2 Nikolay Orlyuk 2007-12-10 09:31:28 UTC
Created attachment 138140 [details]
build.log.bz2

build log
Comment 3 Nikolay Orlyuk 2007-12-10 09:33:09 UTC
Created attachment 138142 [details]
emerge_start.log.bz2

ulimit info and building start not included into build.log.bz2
Comment 4 Nikolay Orlyuk 2007-12-10 09:33:57 UTC
Created attachment 138144 [details]
environment.bz2

environment dump (by emerge)
Comment 5 Nikolay Orlyuk 2007-12-10 09:34:49 UTC
Created attachment 138146 [details]
config.log.bz2

log of configure (autoconf)
Comment 6 Nikolay Orlyuk 2007-12-10 09:37:01 UTC
During building process of v0.13.1 on amd64-compatible platform there is stage with building modules (Internals) and at that moment there is huge memory usage which finally produce out of memory (tried at 2 GB ram + 4 GB swap).
As contrary to that 32-bit version is built normally on the same platform.

You can find building process log in attachment build.log.bz2.
At this time I've limited memory usage to 1.5 GB to avoid breaking of other processes. Please see emerge_start.log.bz2 for info.
config.log.bz2 - is copied and compressed from topdir.

juliensf>The entire configuration process looks very odd for that type of machine.
juliensf>My guess is that it is something to do with the way the Gentoo package is running the build process.

juliensf>I think this should be reported as a bug in the Gentoo Mercury package, via bugs.gentoo.org.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-12-10 11:43:05 UTC
Thanks. These semi-public issues trackers really suck. :/
Comment 8 Keri Harris gentoo-dev 2007-12-15 21:09:46 UTC
Thanks for the bug report. It looks like mcc will build but not run correctly with gcc optimizations provided by gcc-4.2.x. Dialing back CFLAGS to -O0 works but isn't really ideal. :-(
Comment 9 Nikolay Orlyuk 2008-06-28 08:01:27 UTC
Created attachment 158729 [details]
building with gcc-4.3.1

CFLAGS='-O3 -march=core2 -mtune=core2 -msse -msse2 -msse3 -maccumulate-outgoing-args -minline-all-stringops -pipe'
Comment 10 Keri Harris gentoo-dev 2008-08-21 07:03:22 UTC
I've committed mercury-0.13.1-r2 to CVS. This has an upstream fix for mmc on 64bit systems.

Keri