| View previous topic :: View next topic |
| Author |
Message |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 3:54 am Post subject: povray build fails |
|
|
Hi there!
Nothing much to say but povray fails to build properly =(
Here is the emerge's output
| Code: |
# ~ emerge povray
...
...
Compiling
---------
checking whether to enable pipes for communications... yes
checking whether g++ accepts -pipe... ./configure: line 14314: "\-p|ipe": command not found
./configure: line 14320: \-p|ipe: command not found
yes
checking whether g++ accepts -Wno-multichar... ./configure: line 14528: "\-W|no-multichar": command not found
./configure: line 14534: \-W|no-multichar: command not found
yes
checking whether to enable I/O restrictions... yes
checking whether to enable debugging... no
checking whether to enable profiling... no
checking whether to enable stripping... no
checking whether to enable optimizations... yes
checking whether g++ accepts -O3... ./configure: line 15563: "\-O|3": command not found
./configure: line 15569: \-O|3: command not found
yes
checking whether g++ accepts -msse... ./configure: line 17063: "\-m|sse": command not found
./configure: line 17069: \-m|sse: command not found
yes
checking whether g++ accepts -mfpmath=sse... ./configure: line 17266: "\-m|fpmath=sse": command not found
./configure: line 17272: \-m|fpmath=sse: command not found
yes
checking whether g++ accepts -march=pentium-m -mtune=pentium-m... ./configure: line 17726: "\-m|arch=pentium-m|\-m|tune=pentium-m": command not found
./configure: line 17732: \-m|arch=pentium-m|\-m|tune=pentium-m: command not found
yes
checking whether g++ accepts -malign-double... ./configure: line 18652: "\-m|align-double": command not found
./configure: line 18658: \-m|align-double: command not found
yes
checking whether g++ accepts -minline-all-stringops... ./configure: line 18652: "\-m|inline-all-stringops": command not found
./configure: line 18658: \-m|inline-all-stringops: command not found
yes
Makefiles
---------
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: creating libraries/Makefile
config.status: WARNING: source/base/Makefile.in seems to ignore the --datarootdir setting
config.status: creating source/frontend/Makefile
config.status: WARNING: source/frontend/Makefile.in seems to ignore the --datarootdir setting
config.status: creating source/Makefile
config.status: WARNING: source/Makefile.in seems to ignore the --datarootdir setting
config.status: creating unix/Makefile
config.status: WARNING: unix/Makefile.in seems to ignore the --datarootdir setting
config.status: creating conf.h
config.status: executing depfiles commands
===============================================================================
POV-Ray 3.6.1 has been configured with the following features:
I/O restrictions: enabled
X Window display: enabled
SVGAlib display : disabled
Type 'make' to build, and 'make install' to install all files in the hierarchy
/usr
===============================================================================
* Building povray
make all-recursive
make[1]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1'
Making all in libraries
make[2]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
make[3]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
make[2]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/libraries'
Making all in source
make[2]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source'
Making all in base
make[3]: Entering directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source/base'
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../source -I../../unix -I/usr/X11R6/include -pipe -Wno-multichar -O3 -msse -mfpmath=sse -march=pentium-m -mtune=pentium-m -malign-double -minline-all-stringops -O2 -march=pentium3 -c -o fileinputoutput.o `test -f 'fileinputoutput.cpp' || echo './'`fileinputoutput.cpp
cc1plus: error: invalid option `tune=pentium-m'
make[3]: *** [fileinputoutput.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source/base'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1'
make: *** [all] Error 2
!!! ERROR: media-gfx/povray-3.6.1-r1 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
povray-3.6.1-r1.ebuild, line 51: Called die
!!! build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
I Have found too little regarding povray build problems...
Best Regards,
Guillermo |
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Wed Aug 02, 2006 4:01 am Post subject: |
|
|
It appears that those errors are related to the flags being passed to the compiler. What is the output of...
_________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
Master Shake l33t


Joined: 10 Apr 2005 Posts: 755 Location: Wilmington, Delaware
|
Posted: Wed Aug 02, 2006 4:01 am Post subject: |
|
|
| Code: | | cc1plus: error: invalid option `tune=pentium-m' |
That's your problem. Check your /etc/make.conf to see if you forgot the m before the tune. Also you should use march instead of mtune. _________________ System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz |
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 4:14 am Post subject: |
|
|
it is something like:
| Code: |
zeus ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.11.4-ZEUS-1 i686)
=================================================================
System uname: 2.6.11.4-ZEUS-1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
app-admin/eselect-compiler: [Not Present]
dev-lang/python: 2.3.4, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.10
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.14.90.0.8-r1
sys-devel/gcc-config: 1.3.6-r3
sys-devel/libtool: 1.5.2-r5
virtual/os-headers: 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png postgresql pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
|
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 4:16 am Post subject: |
|
|
If this helps, this is my /etc/make.conf content:
| Code: |
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="alsa oss -gnome -mysql postgresql -apache2"
ALSA_CARDS="emu10k1"
|
|
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Wed Aug 02, 2006 4:41 am Post subject: |
|
|
| guinux wrote: | If this helps, this is my /etc/make.conf content:
| Code: |
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="alsa oss -gnome -mysql postgresql -apache2"
ALSA_CARDS="emu10k1"
|
|
Yes, emerge --info indicates the same. There are some weird CFLAGS options being used when povray is trying to compile. I just tried to emerge it but it fails with "compiler cannont create executables" on my amd64 system, which is obviously not correct as nothing else has failed and I can compile and run my own programs successfully. _________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
yabbadabbadont Advocate


Joined: 14 Mar 2003 Posts: 4790 Location: 2 exits past crazy
|
Posted: Wed Aug 02, 2006 4:50 am Post subject: |
|
|
| The ebuild doesn't appear to be the one doing this, unless the flag-o-matic eclass is changing things. I wonder if the Makefile included with the source has hardcoded CFLAGS? If someone who has already downloaded the source can look at (probably) Makefile.in or Makefile in /var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1 please let us know. |
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Wed Aug 02, 2006 5:18 am Post subject: |
|
|
| yabbadabbadont wrote: | | The ebuild doesn't appear to be the one doing this, unless the flag-o-matic eclass is changing things. I wonder if the Makefile included with the source has hardcoded CFLAGS? If someone who has already downloaded the source can look at (probably) Makefile.in or Makefile in /var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1 please let us know. |
I was just looking at the Makefile in /var/tmp/portage and saw that indeed CFLAGS were added that were not in my make.conf. Additionally, scrolling back in my buffer I found similar errors as the OP:
| Code: |
checking whether x86_64-pc-linux-gnu-g++ accepts -march=k8 -mtune=k8... ./configure: line 17726: "\-m|arch=k8|\-m|tune=k8": command not found
|
I'll try to build from the original source package and see what happens. _________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Wed Aug 02, 2006 5:25 am Post subject: |
|
|
Yep, it builds fine from the source tarball:
| Code: |
~/projects/povray-3.6.1 $ ls -l unix
total 2012
-rw-r--r-- 1 dex dex 14082 Aug 2 01:19 Makefile
-rw-r--r-- 1 dex dex 2403 Aug 2 2004 Makefile.am
-rw-r--r-- 1 dex dex 14022 Aug 2 2004 Makefile.in
-rw-r--r-- 1 dex dex 7682 Aug 2 2004 config.h
-rwxr-xr-x 1 dex dex 1623999 Aug 2 01:21 povray
-rw-r--r-- 1 dex dex 14708 Aug 2 2004 svga.cpp
-rw-r--r-- 1 dex dex 2541 Aug 2 2004 svga.h
-rw-r--r-- 1 dex dex 922 Aug 2 01:21 svga.o
-rw-r--r-- 1 dex dex 75071 Aug 2 2004 unix.cpp
-rw-r--r-- 1 dex dex 3991 Aug 2 2004 unix.h
-rw-r--r-- 1 dex dex 50304 Aug 2 01:21 unix.o
-rw-r--r-- 1 dex dex 413 Aug 2 2004 xbgmap.xpm
-rw-r--r-- 1 dex dex 1566 Aug 2 2004 xpovicon.xbm
-rw-r--r-- 1 dex dex 8102 Aug 2 2004 xpovicon.xpm
-rw-r--r-- 1 dex dex 1566 Aug 2 2004 xpovmask.xbm
-rw-r--r-- 1 dex dex 99247 Aug 2 2004 xwin.cpp
-rw-r--r-- 1 dex dex 2530 Aug 2 2004 xwin.h
-rw-r--r-- 1 dex dex 78888 Aug 2 01:21 xwin.o
|
_________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 5:44 am Post subject: |
|
|
| yabbadabbadont wrote: | | The ebuild doesn't appear to be the one doing this, unless the flag-o-matic eclass is changing things. I wonder if the Makefile included with the source has hardcoded CFLAGS? If someone who has already downloaded the source can look at (probably) Makefile.in or Makefile in /var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1 please let us know. |
Makefile in /var/tmp/portage/povray-3.6.1-r1/work/povray-3.6.1 :
| Code: |
CFLAGS = -O2 -march=pentium3
CXXFLAGS = -pipe -Wno-multichar -O3 -msse -mfpmath=sse -march=pentium-m -mtune=pentium-m -malign-double -minline-all-stringops -O2 -march=pentium3
|
makefile's CXXFLAGS doesn't honour my system CXXFLAGS
Makefile.in ( in povray's source code ) :
| Code: |
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
|
I wonder how two -march flags are specified by configure... and I wonder where -march=pentium-m ( and friends ) cames from! |
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 5:48 am Post subject: |
|
|
| EzInKy wrote: | Yep, it builds fine from the source tarball:
| Code: |
~/projects/povray-3.6.1 $ ls -l unix
total 2012
-rw-r--r-- 1 dex dex 14082 Aug 2 01:19 Makefile
-rw-r--r-- 1 dex dex 2403 Aug 2 2004 Makefile.am
-rw-r--r-- 1 dex dex 14022 Aug 2 2004 Makefile.in
-rw-r--r-- 1 dex dex 7682 Aug 2 2004 config.h
-rwxr-xr-x 1 dex dex 1623999 Aug 2 01:21 povray
-rw-r--r-- 1 dex dex 14708 Aug 2 2004 svga.cpp
-rw-r--r-- 1 dex dex 2541 Aug 2 2004 svga.h
-rw-r--r-- 1 dex dex 922 Aug 2 01:21 svga.o
-rw-r--r-- 1 dex dex 75071 Aug 2 2004 unix.cpp
-rw-r--r-- 1 dex dex 3991 Aug 2 2004 unix.h
-rw-r--r-- 1 dex dex 50304 Aug 2 01:21 unix.o
-rw-r--r-- 1 dex dex 413 Aug 2 2004 xbgmap.xpm
-rw-r--r-- 1 dex dex 1566 Aug 2 2004 xpovicon.xbm
-rw-r--r-- 1 dex dex 8102 Aug 2 2004 xpovicon.xpm
-rw-r--r-- 1 dex dex 1566 Aug 2 2004 xpovmask.xbm
-rw-r--r-- 1 dex dex 99247 Aug 2 2004 xwin.cpp
-rw-r--r-- 1 dex dex 2530 Aug 2 2004 xwin.h
-rw-r--r-- 1 dex dex 78888 Aug 2 01:21 xwin.o
|
|
That means Makefile in source code doesn't have hard-coded anything, doesn't it?
Or at least that can be notice by looking the Makefile.in's content:
| Code: |
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
|
|
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Wed Aug 02, 2006 6:06 am Post subject: |
|
|
| guinux wrote: |
I wonder how two -march flags are specified by configure... and I wonder where -march=pentium-m ( and friends ) cames from!
|
The source package itself adds flags, and in fact builds just fine with ./configure and make. Portage is messing up configure, possibly when applying the configure.ac patch, which I also successfully applied by hand.
I've submitted a bug report. _________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Wed Aug 02, 2006 1:59 pm Post subject: |
|
|
| EzInKy wrote: | | guinux wrote: |
I wonder how two -march flags are specified by configure... and I wonder where -march=pentium-m ( and friends ) cames from!
|
The source package itself adds flags, and in fact builds just fine with ./configure and make. Portage is messing up configure, possibly when applying the configure.ac patch, which I also successfully applied by hand.
I've submitted a bug report. |
Well, I'll do the same, compile it from the tarball and leave the source code around until the problem is solved.
A "make uninstall" would help then to clean the filesystem from this outsider installation.
Basically, do the things that we were used to =) |
|
| Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1734 Location: Kentucky
|
Posted: Fri Aug 04, 2006 2:17 am Post subject: |
|
|
I played some with the ebuild today in my portage overlay. Commenting out eautoconf allowed the package to be successfully patched and built. Tested povray with a couple of scenes in it's share directory which rendered successfully. _________________ Time is what keeps everything from happening all at once. |
|
| Back to top |
|
 |
guinux n00b


Joined: 28 Jul 2006 Posts: 13
|
Posted: Fri Aug 04, 2006 2:46 am Post subject: |
|
|
| EzInKy wrote: | | I played some with the ebuild today in my portage overlay. Commenting out eautoconf allowed the package to be successfully patched and built. Tested povray with a couple of scenes in it's share directory which rendered successfully. |
I'll give it a try.  |
|
| Back to top |
|
 |
rjw8703 Apprentice

Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Wed Oct 11, 2006 3:02 pm Post subject: |
|
|
| Is povray's ebuild going to be fixed? This thread is about 2 months old and the ebuild still isn't fixed. |
|
| Back to top |
|
 |
rjw8703 Apprentice

Joined: 14 Aug 2004 Posts: 246 Location: Auburn, Al
|
Posted: Thu Oct 12, 2006 10:43 am Post subject: |
|
|
| bump |
|
| Back to top |
|
 |
theiq n00b

Joined: 06 Jun 2004 Posts: 11 Location: Germany,Berlin
|
Posted: Fri Oct 20, 2006 4:02 pm Post subject: |
|
|
| Same problem here,nontheless i found out the reaon for this problem isn't the configure patch. the problem seems to be autoconf. I commented out eautoconf in the ebuild and after a recreaction of the ebuild digest it compiles+installs just fine. |
|
| Back to top |
|
 |
mattjgalloway l33t

Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Fri Nov 24, 2006 2:10 pm Post subject: |
|
|
Any chance of getting this fixed soon? _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Last edited by mattjgalloway on Sat Nov 25, 2006 3:18 pm; edited 1 time in total |
|
| Back to top |
|
 |
dleverton Guru

Joined: 28 Aug 2006 Posts: 517
|
Posted: Fri Nov 24, 2006 2:50 pm Post subject: |
|
|
| I submitted a patch to Bugzilla for this problem, see bug 142498. If you're on AMD64, you might also need the patch in bug 153538. Hopefully someone'll put these in Portage at some point, but there's no-one maintaining the POV-Ray ebuild right now, so don't hold your breath. |
|
| Back to top |
|
 |
mattjgalloway l33t

Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Mon Nov 27, 2006 2:20 pm Post subject: |
|
|
Yep your patches seem to work for me which is good! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
| Back to top |
|
 |
raulpober n00b


Joined: 26 Oct 2006 Posts: 36
|
Posted: Wed Dec 06, 2006 9:13 pm Post subject: |
|
|
| Patches work for me on AMD64. |
|
| Back to top |
|
 |
orange_juice Guru


Joined: 16 Feb 2006 Posts: 588 Location: Athens - Greece
|
Posted: Sat Dec 09, 2006 6:57 pm Post subject: |
|
|
Sorry for the noobish question but... how can I apply these patches?
Kind regards,
orange_juice |
|
| Back to top |
|
 |
dleverton Guru

Joined: 28 Aug 2006 Posts: 517
|
Posted: Sat Dec 09, 2006 8:11 pm Post subject: |
|
|
| orange_juice wrote: | | Sorry for the noobish question but... how can I apply these patches? |
See the instructions on the Gentoo wiki. Note that, as well as adding the "epatch" line as described on the page, you also need a line containing just "eaclocal", just before the one with "eautoreconf". |
|
| Back to top |
|
 |
orange_juice Guru


Joined: 16 Feb 2006 Posts: 588 Location: Athens - Greece
|
Posted: Sun Dec 10, 2006 3:39 pm Post subject: |
|
|
Thank you for your answer but I still do not get it...
I have an AMD64 platform, therefore I will use bug15358.
There are 2 patches: a) the ebuild patch and b) the working patch
So... the problems are:
1) In the ebuild patch, one of the lines added is | Code: | | epatch "${FILESDIR}"/3.6.1-use-system-libpng.diff | which calls a nonexistent file 3.6.1-use-system-libpng.diff, and exits with an error.
2) The most reasonable solution would be to create such a file containing the working patch but... the working patch gives some instructions on altering 2 files:
i) povray-3.6.1/acinclude.m4
ii) povray-3.6.1/source/png_pov.cpp
After altering those packages and tarring and bzipping again the source file of povray, I cannot emerge it because emerge downloads again the file since the expexted size does not match...
How can I overcome this situation?
Kind regards,
orange_juice |
|
| Back to top |
|
 |
|