Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547224 - net-libs/webkit-gtk-2.6.* don't work on many sites if compiled in -O2
Summary: net-libs/webkit-gtk-2.6.* don't work on many sites if compiled in -O2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2015-04-20 21:25 UTC by Patrick Nicolas
Modified: 2017-09-22 06:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Nicolas 2015-04-20 21:25:19 UTC
When webkit-gtk is compiled with O2 flags, css appears to be broken on many sites with epiphany 3.14.2
Forcing -O1 fixes the errors.

Reproducible: Always

Steps to Reproduce:
1. Compile webkit-gtk:4 with CFLAGS="-O2" CXXFLAGS="-O2"
2. (optional) compile epiphany with any CFLAGS
3. visit any github repository and click on the "commits" button
Actual Results:  
The commit list is displayed with text only and bad layout.

Expected Results:  
The page is displayed as with other browsers

In Source/cmake there are commands that alter the CMAKE_C_FLAGS_RELEASE variable, adding -fno-omit-frame-pointer and -fno-tree-dce. Is the ebuild overriding this ?

I have not tested CFLAGS combinations as build takes more than one hour...
Comment 1 Patrick Nicolas 2015-04-20 21:25:33 UTC
$ emerge --info
Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.9.2, glibc-2.20-r2, 4.0.0-gentoo x86_64)
=================================================================
System uname: Linux-4.0.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16131032 total,  12225764 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 20 Apr 2015 17:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

Xytovl
    location: /usr/local/portage/xytovl
    masters: gentoo

crossdev
    location: /usr/local/portage/crossdev
    masters: gentoo dotnet

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/dotnet.git
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-11.x PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx -fexcess-precision=fast -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx -fexcess-precision=fast -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j5 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://gentoo.mneisen.org/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portagetmpfs"
USE="X a52 aac acl acpi alsa amd64 avahi avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cli colord cracklib crypt cups cxx dbus dri dts dvb dvd eds egl emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif glamor gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk2 gtk3 iconv imap introspection ipv6 jabber jingle jpeg lcms libnotify libsecret lm_sensors mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline scanner sdl session smp socialweb spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb userlocales vaapi vdpau vorbis vpx wxwidgets x264 xcb xinerama xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core authz_host dir mime proxy proxy_fcgi socache_shmcb unixd log_config dav authz_groupfile dav_fs authn_file auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 radeonsi radeon" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Orson Teodoro 2015-05-15 20:58:14 UTC
Adding -fno-omit-frame-pointer and -fno-tree-dce didn't fix the problem.

Adding -fno-strict-aliasing worked for me on 2.8.1 off the gnome overlay.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-24 23:17:36 UTC
I could not believe this but after insulting webkit so much and rebuilding with -O1 to see that everything works properly...

I'll try to confirm these CFLAGS are the source of the problem.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-25 14:41:50 UTC
Fixed in overlay. Thanks for reporting.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-25 14:43:05 UTC
I applied a patch for this in the Gnome overlay. It does not unbreak all websites but at least github and youtube works a lot better. However wiki.gentoo.org is still broken in epiphany. Could you confirm ?
Comment 6 Pacho Ramos gentoo-dev 2015-05-26 20:51:46 UTC
It's strange, I don't have any issue with wiki.gentoo.org either before you filtering strict-aliasing or after that :/
Comment 7 Pacho Ramos gentoo-dev 2015-11-15 14:33:13 UTC
Also try with 2.8.5 from the tree
Comment 8 Patrick Nicolas 2015-11-15 15:29:05 UTC
I have tried 2.8.5 from tree and I don't have the original issue.

The problem on gentoo wiki is caused by non accepted certificates, unrelated bug in my opinion.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-22 06:51:02 UTC
Closing then, thanks for the heads up.