Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5956 - media-gfx/povray-3.50a.ebuild won't compile
Summary: media-gfx/povray-3.50a.ebuild won't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-03 04:46 UTC by Rigo
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
povray-3.50a.ebuild (povray-3.50a.ebuild,3.34 KB, text/plain)
2002-08-09 02:27 UTC, Ryan Phillips (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rigo 2002-08-03 04:46:36 UTC
1.3a, gcc 3.2pre, x86

Is variable S set correctly this way ? (SRC_URI=povuni_s.tgz <> P)


root # emerge -u world
Calculating world dependencies ...done!
>>> emerge media-gfx/povray-3.50a to /
>>> md5 ;-) povuni_s.tgz
>>> Unpacking source...
>>> Unpacking povuni_s.tgz
>>> Source unpacked.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -136, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-gfx/povray/povray-3.50a.ebuild .
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-08-04 20:16:43 UTC
I think this is due to the mirroring of the file... The filenames of the ebuilds
are the same... It should be resolved now.
Comment 2 Felipe Ghellar 2002-08-05 02:13:06 UTC
The ebuild failed to compile here with gcc-2.95.3-r5 on i686.
The last lines are:


g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c csg.cpp
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c discs.cpp
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c express.cpp
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c file_pov.cpp
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c fncode.cpp
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\"   -march=i686 -O3 -pipe 
-finline-functions -ffast-math  -ansi -c   `if [ "Xgcc" = "Xgcc" ]; then echo
"-Wno-multichar"; fi ` -c fnintern.cpp
express.cpp: In function `void Parse_Num_Factor(double *, int *)':
express.cpp:724: implicit declaration of function `int acosh(...)'
express.cpp:727: implicit declaration of function `int asinh(...)'
express.cpp:730: implicit declaration of function `int atanh(...)'
express.cpp:1023: warning: assignment to `int' from `double'
make: *** [express.o] Error 1
make: *** Waiting for unfinished jobs....
fnintern.cpp: In function `double f_hetero_mf(double *, unsigned int)':
fnintern.cpp:641: warning: initialization to `int' from `double'
fnintern.cpp:647: warning: `double' used for argument 1 of `pov_malloc(unsigned
int, char *, int, char *)'
fnintern.cpp: In function `double f_ridge(double *, unsigned int)':
fnintern.cpp:956: warning: initialization to `int' from `double'
fnintern.cpp: In function `double f_ridged_mf(double *, unsigned int)':
fnintern.cpp:1000: warning: initialization to `int' from `double'
fnintern.cpp:1009: warning: `double' used for argument 1 of `pov_malloc(unsigned
int, char *, int, char *)'
fnintern.cpp: In function `double f_noise_generator(double *, unsigned int)':
fnintern.cpp:1224: warning: initialization to `int' from `double'

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-gfx/povray/povray-3.50a.ebuild .
Comment 3 Rigo 2002-08-05 09:15:16 UTC
Hmm, strange that it even started to compile at your machine....All mine did now
was building a corrupt file (started downloading +/- 950K from ibiblio, and went
on after the new file at povray.org ~;) ?

<SNIP>
Calculating world dependencies ...done!
>>> emerge media-gfx/povray-3.50a to /
>>> Downloading
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/povuni_s.tgz
--15:42:43-- 
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/povuni_s.tgz
           => `/usr/portage/distfiles/povuni_s.tgz'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 946,513 [application/x-tar]

100%[==================================================================================================>]
946,513      213.08K/s    ETA 00:00

15:42:47 (213.08 KB/s) - `/usr/portage/distfiles/povuni_s.tgz' saved [946513/946513]

>>> Resuming download...
>>> Downloading ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
--15:42:47--  ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
           => `/usr/portage/distfiles/povuni_s.tgz'
Resolving ftp.povray.org... done.
Connecting to ftp.povray.org[204.213.191.228]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/povray/Official/Unix ... done.
==> SIZE povuni_s.tgz ... done.
==> PASV ... done.    ==> REST 946513 ... done.    
==> RETR povuni_s.tgz ... done.
Length: 6,732,280 [5,785,767 to go]

100%[==================================================================================================>]
6,732,280     47.70K/s    ETA 00:00

15:44:51 (47.70 KB/s) - `/usr/portage/distfiles/povuni_s.tgz' saved [6732280]


!!! povuni_s.tgz: message digests do not match!
!!! povuni_s.tgz is corrupt or incomplete.
>>> our recorded digest: 4df1711c15d39ee6265ada8ceff78f52
>>>  your file's digest: de497b8eeff7e51741724eaac8a56345
>>> Please delete /usr/portage/distfiles/povuni_s.tgz and refetch.

!!! emerge aborting on  /usr/portage/media-gfx/povray/povray-3.50a.ebuild .
</SNIP>
Comment 4 Rigo 2002-08-05 09:16:58 UTC
Duh, & after the digest message: 

<SNIP>
Calculating world dependencies ...done!
>>> emerge media-gfx/povray-3.50a to /
>>> md5 ;-) povuni_s.tgz
>>> Unpacking source...
>>> Unpacking povuni_s.tgz

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors
/usr/sbin/ebuild.sh: die: command not found
>>> Source unpacked.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -137, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-gfx/povray/povray-3.50a.ebuild .
</SNIP>
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2002-08-05 11:00:05 UTC
The package file should be fixed on ibiblio in about an hour of this post... 
The mirroring just has to take affect.
Comment 6 Felipe Ghellar 2002-08-05 14:08:42 UTC
The error I posted above happened with the correct tgz file, which I had
manually downloaded from
ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz and put in
/usr/portage/distfiles.
Comment 7 Bartosch Pixa (RETIRED) gentoo-dev 2002-08-06 16:25:25 UTC
same error with icc
Comment 8 Bartosch Pixa (RETIRED) gentoo-dev 2002-08-06 16:31:10 UTC
sorry, it's already late here ;)

here's the error:

g++: /var/tmp/portage/povray-3.50a/icc-pgo: linker input file unused since
linking not done
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.icc\" -DSYSCONFDIR=\"/etc\"   -prof_gen  -prof_dir
/var/tmp/portage/povray-3.50a/icc-pgo  -O3 -axiMKW  -ansi -c   `if [ "Xicc" =
"Xicc" ]; then echo "-Wno-multichar"; fi ` -c discs.cpp
g++: unrecognized option `-prof_gen'
g++: unrecognized option `-prof_dir'
g++: /var/tmp/portage/povray-3.50a/icc-pgo: linker input file unused since
linking not done
g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.icc\" -DSYSCONFDIR=\"/etc\"   -prof_gen  -prof_dir
/var/tmp/portage/povray-3.50a/icc-pgo  -O3 -axiMKW  -ansi -c   `if [ "Xicc" =
"Xicc" ]; then echo "-Wno-multichar"; fi ` -c express.cpp
g++: unrecognized option `-prof_gen'
g++: unrecognized option `-prof_dir'
express.cpp: In function `void Parse_Num_Factor(double *, int *)':
express.cpp:724: implicit declaration of function `int acosh(...)'
express.cpp:727: implicit declaration of function `int asinh(...)'
express.cpp:730: implicit declaration of function `int atanh(...)'
express.cpp:1023: warning: assignment to `int' from `double'
make: *** [express.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-gfx/povray/povray-3.50a.ebuild .
Comment 9 Ryan Phillips (RETIRED) gentoo-dev 2002-08-09 02:26:11 UTC
Tweaked the ebuild... committed it, but I'll post it here too.
Comment 10 Ryan Phillips (RETIRED) gentoo-dev 2002-08-09 02:27:00 UTC
Created attachment 2942 [details]
povray-3.50a.ebuild
Comment 11 Bartosch Pixa (RETIRED) gentoo-dev 2002-08-12 06:44:07 UTC
for me the ebuild now works with both gcc and icc (icc only whith USE="-icc-pgo"
because there are no pgo profiles in the ebuild)

but there still seem to be a few bugs with icc:

[snip]
icc -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.icc\" -DSYSCONFDIR=\"/etc\"   -O3 -xiK -wp_ipo    `if [
"Xicc" = "Xicc" ]; then echo "-Wno-multichar"; fi ` -c unix.cpp
icc: Command line warning: ignoring option '-W'; no argument required
unix.cpp
icc -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.icc\" -DSYSCONFDIR=\"/etc\"   -O3 -xiK -wp_ipo   
-mcpu=i686 -march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 -c
povxlib.c
icc: Command line warning: ignoring unknown option '-mcpu=i686'
icc: Command line warning: ignoring unknown option '-march=i686'
icc: Command line warning: ignoring option '-p'; no argument required
icc: Command line warning: ignoring unknown option '-fforce-addr'
icc: Command line warning: ignoring unknown option '-fomit-frame-pointer'
icc: Command line warning: ignoring unknown option '-funroll-loops'
icc: Command line warning: ignoring unknown option '-frerun-cse-after-loop'
icc: Command line warning: ignoring unknown option '-frerun-loop-opt'
icc: Command line warning: ignoring unknown option '-malign-functions=4'
povxlib.c
icc  `if [ "Xicc" = "Xicc" ]; then echo "-Wno-multichar"; fi ` -static 
-I/usr/X11R6/include -o povray  atmosph.o bbox.o bcyl.o benchmark.o bezier.o
blob.o boxes.o bsphere.o camera.o chi2.o colour.o colutils.o cones.o csg.o
discs.o express.o file_pov.o fncode.o fnintern.o fnpovfpu.o fnsyntax.o
fpmetric.o fractal.o function.o gif.o gifdecod.o hcmplx.o hfield.o histogra.o
iff.o image.o interior.o isosurf.o jpeg_pov.o lathe.o lbuffer.o lightgrp.o
lighting.o matrices.o media.o mesh.o normal.o objects.o octree.o optin.o
optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o photons.o pigment.o
planes.o png_pov.o point.o poly.o polygon.o polysolv.o pov_mem.o povms.o
povmscpp.o povmsend.o povmsrec.o povray.o pov_util.o ppm.o prism.o quadrics.o
quatern.o rad_data.o radiosit.o ray.o render.o renderio.o sor.o spheres.o
sphsweep.o splines.o statspov.o super.o targa.o texture.o tiff_pov.o tokenize.o
torus.o triangle.o truetype.o txttest.o userdisp.o userio.o vbuffer.o vlbuffer.o
warps.o unix.o povxlib.o -L/usr/X11R6/lib -lvgagl -lvga -ltiff -ljpeg -lpng -lz
-lm  -lX11 -ldl
icc: Command line warning: ignoring option '-W'; no argument required

[snip]

it compiled and merged even though there was this malformed icc call right
before the final linking, and it seems that -Wno-multichar confuses icc too.
Comment 12 Ryan Phillips (RETIRED) gentoo-dev 2002-08-18 19:24:26 UTC
Bartosch: is ICC in your use flags?
Comment 13 Bartosch Pixa (RETIRED) gentoo-dev 2002-08-19 04:21:34 UTC
sure, icc and icc-pgo (that's why i have to emerge it with USE="icc-pgo") but
icc-pgo doesn't work with the povray 3.50 ebuild because there are no pgo
profiles yet.
Comment 14 Ryan Phillips (RETIRED) gentoo-dev 2002-08-26 14:43:04 UTC
unmasked.