Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153650 - media-gfx/pixie build issues + 1.7.6 version bump
Summary: media-gfx/pixie build issues + 1.7.6 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: http://www.cs.utexas.edu/~okan/Pixie/...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-11-01 00:25 UTC by Hanni Ali
Modified: 2007-03-18 18:15 UTC (History)
3 users (show)

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


Attachments
pixie-1.7.6.ebuild (pixie-1.7.6.ebuild,1.28 KB, text/plain)
2006-11-01 00:28 UTC, Hanni Ali
Details
pixie-1.7.6-shader.patch (pixie-1.7.6-shader.patch,413 bytes, patch)
2006-11-01 00:29 UTC, Hanni Ali
Details | Diff
Pixie 2.0.2 ebuild (pixie-2.0.2.ebuild,1.04 KB, text/plain)
2007-02-20 15:57 UTC, Alan Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanni Ali 2006-11-01 00:25:55 UTC
When trying to emerge pixie I ran into two problems:

1. execute.cpp is a huge file which caused me to run out of Virtual Memory (my spec 1G RAM 3G SWAP P4 2.8GHz, I don't think this is too shabby) and suggest we set the CXXFLAG to -O1 this worked better for me and I noticed others had had problems in the forums. Perhaps we should also set MAKEOPTS="-j1" as well?

2. Picked up a newer version from the website, I haven't implemented the previous patch for libcommon yet, if someone else want to feel free. I'm too concerned with getting things to work first. I patched it for a bug mentioned in their forums which causes the build to cut out shader.h.

Anyone any opinions on this ebuild
Comment 1 Hanni Ali 2006-11-01 00:28:21 UTC
Created attachment 100939 [details]
pixie-1.7.6.ebuild

New ebuild for Pixie
Comment 2 Hanni Ali 2006-11-01 00:29:14 UTC
Created attachment 100941 [details, diff]
pixie-1.7.6-shader.patch

shader.h patch as suggested in the Pixie Forum on Sourceforge
Comment 3 Hans Nieser 2006-11-13 09:40:01 UTC
(In reply to comment #2)
> Created an attachment (id=100941) [edit]
> pixie-1.7.6-shader.patch
> 
> shader.h patch as suggested in the Pixie Forum on Sourceforge
> 

Tganks for your efforts! 

Unfortunately I am still having trouble compiling this on my 1GB RAM system :( I used your ebuild/patch and made sure to comment my MAKEOPTS="-j2" line in /etc/make.conf but the compilation still runs out of memory and fails at:

 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -O1 -MT execute.lo -
MD -MP -MF .deps/execute.Tpo -c execute.cpp  -fPIC -DPIC -o .libs/execute.o
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [execute.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/pixie-1.7.6/work/Pixie/sr
c/ri'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/pixie-1.7.6/work/Pixie/sr
c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/pixie-1.7.6/work/Pixie'
make: *** [all] Error 2

Comment 4 Hanni Ali 2006-11-13 11:03:20 UTC
How much swap have you got?

When I build it compiling execute.cpp takesa about 20-30 min depending on what else I'm trying to do, and uses about 2.6G swap in addition to 70-80% of my ram.

Hanni
Comment 5 Hans Nieser 2006-11-20 21:32:13 UTC
(In reply to comment #4)
> How much swap have you got?
> 
> When I build it compiling execute.cpp takesa about 20-30 min depending on what
> else I'm trying to do, and uses about 2.6G swap in addition to 70-80% of my
> ram.
> 
> Hanni
> 

Ahh, well that explains it. I have a meager 512MB of swap space, not sure why I opted for such a small amount. I'll see if I can increase it and report back if I still run into problems.
Comment 6 Hanni Ali 2006-11-21 02:05:23 UTC
Cool, well let me know, alternatively aqsis is renderman complient and on a par with pixie.

> Ahh, well that explains it. I have a meager 512MB of swap space, not sure why I
> opted for such a small amount. I'll see if I can increase it and report back if
> I still run into problems.
> 
Comment 7 Hans Nieser 2006-11-21 03:41:37 UTC
(In reply to comment #6)
> Cool, well let me know, alternatively aqsis is renderman complient and on a par
> with pixie.

Yeah aqsis was actually the first renderer I tried (for use with K-3D), but the current stable version wouldn't compile with gcc4 (see bug # 115485) which led me to try pixie :)

I did succeed at compiling the development snapshot of aqsis though the other day, so for now I'm good

Comment 8 konrad okurowski 2006-12-31 13:33:02 UTC
virtual memory exhausted: Cannot allocate memory
make[3]: *** [stochastic.lo] B&#322;&#261;d 1
make[3]: *** Oczekiwanie na niezako&#324;czone zadania....
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [execute.lo] B&#322;&#261;d 1
make[2]: *** [all-recursive] B&#322;&#261;d 1
make[1]: *** [all-recursive] B&#322;&#261;d 1
make: *** [all] B&#322;&#261;d 2

!!! ERROR: media-gfx/pixie-1.7.6 failed.

:/ I had to turn off swap due to heavy disk usage, about 10 mb/s .After that I got error as above.
Comment 9 Hanni Ali 2007-01-01 07:47:34 UTC
(In reply to comment #8)
> virtual memory exhausted: Cannot allocate memory
> make[3]: *** [stochastic.lo] B&#322;&#261;d 1
> make[3]: *** Oczekiwanie na niezako&#324;czone zadania....
> i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
> Please submit a full bug report.
> See <URL:http://bugs.gentoo.org/> for instructions.
> make[3]: *** [execute.lo] B&#322;&#261;d 1
> make[2]: *** [all-recursive] B&#322;&#261;d 1
> make[1]: *** [all-recursive] B&#322;&#261;d 1
> make: *** [all] B&#322;&#261;d 2
> 
> !!! ERROR: media-gfx/pixie-1.7.6 failed.
> 
> :/ I had to turn off swap due to heavy disk usage, about 10 mb/s .After that I
> got error as above.
> 

This program requires about 3.6 gig total available memory to compile execute.cpp, you have to use swap unless you have a very impressive machine.

Hanni

Comment 10 konrad okurowski 2007-01-01 12:43:55 UTC
Ok, setting jobs to -j1 and -O2 solved problem;)
Comment 11 Alan Jones 2007-02-12 12:29:00 UTC
2.0.1 was just released
https://sourceforge.net/project/showfiles.php?group_id=59462

I've tried just modifying the ebuild, but it maxes out my CPU and uses all my ram in compiling and just sits there part way through.

all changes in the patch on 1.6.3 are already in there except for
-LIBCOMMON_CURRENT_VERSION=0
-LIBCOMMON_REVISION_VERSION=0
-LIBCOMMON_AGE_VERSION=0
+LIBPIXIECOMMON_CURRENT_VERSION=0
+LIBPIXIECOMMON_REVISION_VERSION=0
+LIBPIXIECOMMON_AGE_VERSION=0

i.e. all the libcommon has been changed to libpixiecommon

Cheers,

Alan.
Comment 12 Hanni Ali 2007-02-12 12:41:46 UTC
(In reply to comment #11)
> 2.0.1 was just released
> https://sourceforge.net/project/showfiles.php?group_id=59462
> 
> I've tried just modifying the ebuild, but it maxes out my CPU and uses all my
> ram in compiling and just sits there part way through.
> 
> all changes in the patch on 1.6.3 are already in there except for
> -LIBCOMMON_CURRENT_VERSION=0
> -LIBCOMMON_REVISION_VERSION=0
> -LIBCOMMON_AGE_VERSION=0
> +LIBPIXIECOMMON_CURRENT_VERSION=0
> +LIBPIXIECOMMON_REVISION_VERSION=0
> +LIBPIXIECOMMON_AGE_VERSION=0
> 
> i.e. all the libcommon has been changed to libpixiecommon
> 
> Cheers,
> 
> Alan.
> 

Post your modified ebuild and I'll check it on my machine, the execute.cpp file - in the 1.7 version at any rate - takes about 30min of CPU time to compile (P4 2.8GHz) And used all my 1G ram and about 2.6G SWAP. Thanks for patching the libpixie too.

Cheers,

Hanni

Comment 13 Alan Jones 2007-02-20 15:57:27 UTC
Created attachment 110734 [details]
Pixie 2.0.2 ebuild

Hi,

2.0.2 has just come out - it supports 64bit officially now. I'm compiling at the moment - it all appears to be good so far.

Thanks for the info on execute - it seems it was a lack of patience on my part. When compiled with -O0 it compiles very quickly - so there must be some serious optimization going on there.

Will post again if I need to patch this to make it work, but it seems we're good for a pretty much straight install on the new releases.

Cheers,

Alan.
Comment 14 Alan Jones 2007-02-22 09:42:13 UTC
Just a quick note - 2.0.2 final compiled quickly here - even execute.lo took very little time on -O2

I also noticed pixie runs a lot faster compiled under O2 than O0.

Cheers,

Alan.
Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2007-03-09 13:02:11 UTC
In CVS, thanks.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2007-03-18 18:15:17 UTC
I've investigated this issue a bit, and I can't fully reproduce the problem.  I do get much more memory consumption with gcc-4.1 over 3.4 and 4.0 when compiling pixie (1400M compared to 500M), but it's nowhere near the 2700M reported here.

I have created a toolchain bug (bug #171367) with my findings, and I would greatly appreciate comments in that bug report from those of you who did experience this problem.