Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 329107

Summary: >=net-libs/webkit-gtk-1.2.1 fails to patch before compiling on ~sparc
Product: Gentoo Linux Reporter: Fred Passerin <fopossum>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: major CC: armin76, sparc
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
URL: https://bugs.webkit.org/show_bug.cgi?id=19775
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 313037    
Attachments: patch.out resulting from failed patch
Build log
environment file from the emerge process
The resulting build log without the alignment patch

Description Fred Passerin 2010-07-20 12:08:51 UTC
Emerge of package webkit-gtk fails during patching.

This lead to make impossible to install gnome meta-package as webkit-gtk is a direct dependency of www-client/epiphany needed for gnome.

Reproducible: Always

Steps to Reproduce:
1. set ~sparc in /etc/make.conf
2. try to emerge gnome

Actual Results:  
emerge -q webkit-gtk
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-libs/webkit-gtk-1.2.3
>>> Failed to emerge net-libs/webkit-gtk-1.2.3, Log file:
>>>  '/var/tmp/portage/net-libs/webkit-gtk-1.2.3/temp/build.log'
 * CPV:  net-libs/webkit-gtk-1.2.3
 * REPO: gentoo
 * USE:  elibc_glibc gstreamer kernel_linux sparc userland_GNU
 * Applying webkit-gtk-1.1.15.2-unaligned.patch ...

 * Failed Patch: webkit-gtk-1.1.15.2-unaligned.patch !
 *  ( /usr/portage/net-libs/webkit-gtk/files/webkit-gtk-1.1.15.2-unaligned.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/net-libs/webkit-gtk-1.2.3/temp/webkit-gtk-1.1.15.2-unaligned.patch.out

Expected Results:  
Installation of webkit-gtk
Comment 1 Fred Passerin 2010-07-20 12:09:52 UTC
emerge --info
Portage 2.1.8.3 (default/linux/sparc/10.0/desktop/gnome, gcc-4.3.5, glibc-2.11.2-r0, 2.6.33-gentoo sparc64)
=================================================================                                          
System uname: Linux-2.6.33-gentoo-sparc64-sun4u-with-gentoo-2.0.1
Timestamp of tree: Mon, 19 Jul 2010 11:30:19 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="sparc ~sparc"
ACCEPT_LICENSE="*"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms split-elog split-log strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa avahi bash-completion berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dga dirac dri dts dvd dvdr eds emboss encode evo exif fam fat ffmpeg fftw firefox firefox3 flac fortran ftp gcc64 gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv ipv6 jabber javascript jpeg latex latex3 lcms ldap libnotify mad mdnsresponder-compat mikmod mng modules mp3 mp4 mpeg mplayer mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reflection sdl session snmp sparc spell spl ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fbdev sunffb" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fred Passerin 2010-07-20 12:11:13 UTC
Created attachment 239545 [details]
patch.out resulting from failed patch
Comment 3 Fred Passerin 2010-07-20 12:12:05 UTC
Created attachment 239547 [details]
Build log
Comment 4 Fred Passerin 2010-07-20 12:13:04 UTC
Created attachment 239549 [details]
environment file from the emerge process
Comment 5 Pacho Ramos gentoo-dev 2010-07-20 16:59:42 UTC
Seems that the patch needs updating, but I have seen a lot of its parts are now in upstream code, could you test to simply skip the patch and see how does it work on sparc?
Comment 6 Fred Passerin 2010-07-20 17:59:09 UTC
Ok, I'll try tomorrow as my station is at work
Comment 7 Fred Passerin 2010-07-21 13:09:04 UTC
Created attachment 239673 [details]
The resulting build log without the alignment patch

The log is bzipped because of it's size.
Comment 8 Fred Passerin 2010-07-21 13:14:20 UTC
Well...

2 hours later.... The compilation failed. The build log is joigned to the bug.

Here is the copy of the last lines.

I think that's some things needs to be patched...

But... I'm not sure as I see a segfault from gcc. Maybe a problem with my gcc in this particular case ?


./JavaScriptCore/wtf/Vector.h:397:   instantiated from 'WTF::VectorBuffer<T, inlineCapacity>::VectorBuffer() [with T = JSC::Identifier, unsigned int inlineCapacity = 20u]'                                                                                                                       
./JavaScriptCore/wtf/Vector.h:502:   instantiated from 'WTF::Vector<T, inlineCapacity>::Vector() [with T = JSC::Identifier, unsigned int inlineCapacity = 20u]'                                                                                                                                   
./JavaScriptCore/runtime/PropertyNameArray.h:46:   instantiated from here                                                                        
./JavaScriptCore/wtf/Vector.h:484: warning: cast from 'WTF::AlignedBufferChar*' to 'JSC::Identifier*' increases required alignment of target type
WebCore/bindings/js/JSHTMLSelectElementCustom.cpp: In constructor 'JSC::JSValue::JSValue(JSC::ExecState*, long long unsigned int)':              
WebCore/bindings/js/JSHTMLSelectElementCustom.cpp:9747166: internal compiler error: Segmentation fault                                           
Please submit a full bug report,                                                                                                                 
with preprocessed source if appropriate.                                                                                                         
See <http://bugs.gentoo.org/> for instructions.                                                                                                  
make[1]: *** [WebCore/bindings/js/libwebkit_1_0_la-JSHTMLSelectElementCustom.lo] Erreur 1                                                        
make[1]: *** Attente des tâches non terminées....

Comment 9 Pacho Ramos gentoo-dev 2010-07-21 15:59:57 UTC
Maybe you could retry to build it again and see you get exactly the same segfault+failure
Comment 10 Fred Passerin 2010-07-22 11:58:55 UTC
Hi.

I'm currently trying to build webkit-gtk with "-j1" as make options.

So it will take some time. The last try of building wasn't successfull, and errors messages in French, so, switching to english too.

I didn't forget my bug :)
Comment 11 Raúl Porcel (RETIRED) gentoo-dev 2010-07-25 16:39:23 UTC
Check http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579472

However, webkit-gtk built fine for me(excluding the patch)

@gnome: Drop the patch from 1.2* and mark them -sparc, since without the patch it sigbuses
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2010-07-25 17:28:53 UTC
(In reply to comment #11)
> 
> @gnome: Drop the patch from 1.2* and mark them -sparc, since without the patch
> it sigbuses
> 

Actually, apply this one on the 1.2* series: http://git.debian.org/?p=pkg-webkit/webkit.git;a=blob_plain;f=debian/patches/02-pool-fixup-and-sparc-support.patch;hb=HEAD

Thanks

Comment 13 Pacho Ramos gentoo-dev 2010-07-26 14:23:15 UTC
+  26 Jul 2010; Pacho Ramos <pacho@gentoo.org> webkit-gtk-1.2.3.ebuild,
+  +files/webkit-gtk-1.2.3-fix-pool-sparc.patch:
+  Update to debian patch letting webkit to keep working on sparc. Thanks a
+  lot to Raúl Porcel in bug #329107 (by Possum) for finding the fix.
+