Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cairo Emerge Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kargh
n00b
n00b


Joined: 01 Dec 2005
Posts: 5

PostPosted: Thu Dec 01, 2005 9:00 pm    Post subject: Cairo Emerge Problems Reply with quote

I wasn't able to locate a solution to this anywhere else. Perhaps someone out there might have a suggestion or two.

Code:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/include/libpng12 -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O3 -march=pentium4 -pipe -fomit-frame-pointer -funroll-loops -MT cairo-gstate.lo -MD -MP -MF .deps/cairo-gstate.Tpo -c cairo-gstate.c  -fPIC -DPIC -o .libs/cairo-gstate.o
cairo-gstate.c: In function `_cairo_gstate_set_dash':
cairo-gstate.c:478: internal compiler error: in try_split, at emit-rtl.c:3343
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/cairo-1.0.2/temp/ccb0zT1g.out file, please attach this to your bugreport.
make[2]: *** [cairo-gstate.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/include/libpng12 -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O3 -march=pentium4 -pipe -fomit-frame-pointer -funroll-loops -MT cairo-hash.lo -MD -MP -MF .deps/cairo-hash.Tpo -c cairo-hash.c  -fPIC -DPIC -o .libs/cairo-hash.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/include/libpng12 -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O3 -march=pentium4 -pipe -fomit-frame-pointer -funroll-loops -MT cairo-hash.lo -MD -MP -MF .deps/cairo-hash.Tpo -c cairo-hash.c -o cairo-hash.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.0.2 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! Compilation failed


Apologies for the length of the quote but I didn't want to miss anything. This is stopping me from updating Firefox, which is the only thing I want to do :)

Thanks,
Jess
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Fri Dec 02, 2005 6:30 am    Post subject: Reply with quote

Could you please post the output of 'emerge --info'
Back to top
View user's profile Send private message
kargh
n00b
n00b


Joined: 01 Dec 2005
Posts: 5

PostPosted: Fri Dec 02, 2005 2:09 pm    Post subject: Reply with quote

Code:
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.10
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.7
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dba eds emacs emboss encode esd exif expat fam fastcgi fbcon ffmpeg flac flash foomaticdb fortran gd gd-external gdbm ggi gif glut gnome gphoto2 gpm gstreamer gtk2 icq idn imagemagick imap imlib ipv6 jabber java jpeg junit kde lcms libg++ libwww mad mhash mikmod ming mng motif mozilla mp3 mpeg mplayer mysql ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl php png python qt quicktime readline recode sdl session slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb videos vorbis xine xml2 xmms xv xvid yahoo zeo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sat Dec 03, 2005 2:54 am    Post subject: Reply with quote

Edit your CFLAGs change -O3 :arrow: -O2, remove -funroll-loops and try emerging again.
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Dec 03, 2005 3:11 am    Post subject: Reply with quote

Even with the -fomgwtf CFLAGS, you've got ICE on valid code, which is Bad. Especially as you're using gcc-3.4.3-20050110 so it's almost certainly not the compiler at fault.
Try remerging gcc and check your hardware for errors (memtest86+prime95).
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
kargh
n00b
n00b


Joined: 01 Dec 2005
Posts: 5

PostPosted: Sat Dec 03, 2005 9:20 pm    Post subject: Reply with quote

Ok, I removed the -03, changed it to -02 and removed -funroll-loops then attempted to emerge -u gcc

It errored with the same error that cairo does. Here is a quote:

Code:
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/hashtable.c:310: internal compiler error: in try_split, at emit-rtl.c:3343
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/gcc-3.4.4-r1/temp/ccn9KNGa.out file, please attach this to your bugreport.
make[2]: *** [hashtable.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1311, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Dec 03, 2005 11:55 pm    Post subject: Reply with quote

ICE on valid code. Hardware fault. Use prime95 and memtest86.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
kargh
n00b
n00b


Joined: 01 Dec 2005
Posts: 5

PostPosted: Mon Dec 05, 2005 9:04 pm    Post subject: Reply with quote

Alright. I ran prime95 for 22 hours with zero errors and memtest86 for 5+ hours with zero errors. Nothing memory related showed up. Any further suggestions?

This being the problem bit in both compile attempts:

Code:
internal compiler error: in try_split, at emit-rtl.c:3343
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue Dec 06, 2005 2:00 pm    Post subject: Reply with quote

That's very, very strange. You'll have to grab a binary of gcc and use that to rebuild your system - sorry, but I can't see what else you could do.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
kargh
n00b
n00b


Joined: 01 Dec 2005
Posts: 5

PostPosted: Tue Dec 06, 2005 3:39 pm    Post subject: Reply with quote

Alright. Thanks for all your suggestions. I've solved the issue by switching to an older version of gcc (3.3.4) and re-emerging the newest version available (3.4.4). Now everything compiles fine. I guess I should have thought of switching compilers earlier but it never crossed my mind until yesterday afternoon. Infact, I completely forgot you could have multiple versions installed.
Back to top
View user's profile Send private message
Narius
n00b
n00b


Joined: 12 Jan 2006
Posts: 47
Location: Exeter

PostPosted: Fri Jan 13, 2006 1:27 am    Post subject: [solved] Reply with quote

[solved]

I also am having difficulties with emerging cairo, while doing emerge world --newuse, after following instructions in https://forums.gentoo.org/viewtopic-t-263174-highlight-chinese+locale.html. It is new ebuild, but I already have glib, atk, pango, gtk+ which are further on in the world list to be updated. So far I have tried remerging gtk-doc, as it is mentioned in the errors but that has not helped at all. Any help would be much appreciated. Thank You

Here is what I'm getting, sorry its a bit long, but like kargh I didn't want to miss anything, and I'm not quite sure what's going on. I've looked for cairo-unused.txt on my computer but can't find it, I'm not sure if I'm looking in the right place, I've done a search but to no avail.

Code:
WARNING: No declaration found for: CAIRO_VERSION_STRING
=============================================================================
WARNING: 1 unused declarations.
  These can be found in cairo-unused.txt.
  They should be added to cairo-sections.txt in the appropriate place.
=============================================================================
touch tmpl-build.stamp
gtk-doc: Building XML
cd . && \
gtkdoc-mkdb --module=cairo --source-dir=../../src --output-format=xml --expand-content-files="" --main-sgml-file=cairo-docs.xml --sgml-mode --output-format=xml
WARNING: No declaration found for: CAIRO_VERSION_STRING
79% symbol docs coverage (222 symbols documented, 0 symbols incomplete, 58 not documented)
See cairo-undocumented.txt for a list of missing docs.
The doc coverage percentage doesn't include intro sections.
touch sgml-build.stamp
gtk-doc: Building HTML
rm -rf ./html
mkdir ./html
cd ./html && gtkdoc-mkhtml cairo ../cairo-docs.xml
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/autotoc.xsl line 550 element div
Attribute template class: failed to compile $titles
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/lists.xsl line 735 element ol
Attribute template type: failed to compile $numeration
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/callout.xsl line 158 element img
Attribute template src: failed to compile $callout.graphics.path
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/callout.xsl line 158 element img
Attribute template alt: failed to compile $conum
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/formal.xsl line 19 element div
Attribute template class: failed to compile $class
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/formal.xsl line 71 element div
Attribute template class: failed to compile $class
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/inline.xsl line 856 element a
Attribute template href: failed to compile $chunkbase
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/inline.xsl line 934 element code
Attribute template class: failed to compile $class
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/html.xsl line 24 element a
Attribute template name: failed to compile $id
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/index.xsl line 115 element a
Attribute template name: failed to compile $id
XPath error : Undefined variable
concat('ln-',$id,$html.ext)
                ^
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/titlepage.xsl line 475 element a
Attribute template href: failed to compile concat('ln-',$id,$html.ext)
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/titlepage.xsl line 502 element a
Attribute template name: failed to compile $id
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/titlepage.xsl line 780 element a
Attribute template name: failed to compile $id
XPath error : Undefined variable
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 138 element base
Attribute template href: failed to compile $html.base
XPath error : Undefined variable
substring-before($stylesheets, ' ')
                             ^
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 198 element link
Attribute template href: failed to compile substring-before($stylesheets, ' ')
XPath error : Undefined variable
substring-after($href,'#')
                     ^
compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 431 element link
Attribute template linkend: failed to compile substring-after($href,'#')
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 47 element book
Attribute template title: failed to compile $title
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 47 element book
Attribute template author: failed to compile $author
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 79 element sub
Attribute template name: failed to compile $title
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 79 element sub
Attribute template link: failed to compile $target
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 102 element function
Attribute template name: failed to compile $title
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/devhelp.xsl line 102 element function
Attribute template link: failed to compile $target
XPath error : Undefined variable
compilation error: file /usr/share/gtk-doc/data/gtk-doc.xsl line 122 element meta
Attribute template content: failed to compile $gtkdoc.version
make[3]: *** [html-build.stamp] Error 5
make[3]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/doc/public'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.0.2 failed.
!!! Function src_compile, Line 54, Exitcode 2


Last edited by Narius on Fri Jan 13, 2006 7:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri Jan 13, 2006 3:02 am    Post subject: Reply with quote

I've seen this before, but I forget the fix. Try upgrading libxslt if you're not running 1.1.15. That, or compile cairo without USE="doc".
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Narius
n00b
n00b


Joined: 12 Jan 2006
Posts: 47
Location: Exeter

PostPosted: Fri Jan 13, 2006 5:02 pm    Post subject: Reply with quote

Thankyou, I have just upgraded libxslt with the -- newuse keyword, and has now successfully emerged cairo. libxlt, along with its dependancy of libgcrypt were further up the world tree to be upgraded. Once again Thankyou
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri Jan 13, 2006 7:07 pm    Post subject: Reply with quote

Great! If you have the time, edit your original post and add [solved] to the title.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum