Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395989 - net-libs/webkit-gtk-1.61 fails on gcc-4.6
Summary: net-libs/webkit-gtk-1.61 fails on gcc-4.6
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2011-12-25 12:39 UTC by Thomas Witt
Modified: 2011-12-30 14:40 UTC (History)
1 user (show)

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 Thomas Witt 2011-12-25 12:39:27 UTC
emerging webkit-gtk with gcc-4.6 throws a lot of the following errors:

/usr/include/glib-2.0/glib/gthread.h:51:16: warning: 'union' tag used in naming 'struct _GMutex' [-fpermissive]
/usr/include/glib-2.0/glib/gthread.h:58:7: warning: 'union' tag used in naming 'struct _GMutex' [-fpermissive]

adding »append-flags "-fpermissive"« to the ebuild changes those errors to warnings, so at it is compilable at least.

Reproducible: Always

Steps to Reproduce:
1. install gcc:4.6
2. select gcc-config gcc:4.6
3. install webkit-gtk



I'm not shure if -fpermissive is a real good idea, but I am in no position to patch the source code
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-12-25 19:43:25 UTC
post your build log and emerge --info.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-28 21:20:49 UTC
Also, what version of dev-libs/glib are you using?
Comment 3 Thomas Witt 2011-12-30 14:18:39 UTC
dev-libs/glib-2.31.6

Package Manager Information:
    Package Name              paludis
    Package Version           0.70.1
    Build Date                2011-12-05T11:48:42+0100
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.6.2
    Built with CXXFLAGS        -march=native -O3 -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed

Environment Information:
    Format                    paludis
    Config dir                /etc/paludis
    Root                      /
    System Root               /
    World file                /var/db/pkg/world

Repository layman:
    format                    unavailable
    location                  /var/paludis/repositories/layman
    sync                      tar+http://git.exherbo.org/layman_repositories.tar.bz2
    sync_options              

Repository gentoo:
    format                    e
    location                  /var/paludis/repositories/gentoo
    builddir                  /var/tmp/paludis
    cache                     /var/paludis/repositories/gentoo/metadata/cache
    distdir                   /var/paludis/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /var/paludis/repositories/gentoo/eclass
    layout                    traditional
    manifest_hashes           RMD160 SHA1 SHA256
    names_cache               /var/cache/paludis/names
    newsdir                   /var/paludis/repositories/gentoo/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /var/paludis/repositories/gentoo/profiles/default/linux/amd64/10.0/desktop
    securitydir               /var/paludis/repositories/gentoo/metadata/glsa
    setsdir                   /var/paludis/repositories/gentoo/sets
    sync                      rsync://rsync.de.gentoo.org/gentoo-portage
    sync_options              
    use_manifest              use
    write_cache               /var/empty
    Package information
        app-shells/bash       4.2_p20
        dev-java/java-config  2.1.11-r3
        dev-lang/python       2.6.7-r2 2.7.2-r3 3.1.4-r3 3.2.2
        dev-util/ccache       (none)
        dev-util/cmake        2.8.6-r4
        dev-util/pkgconfig    0.26
        sys-apps/baselayout   2.1-r1
        sys-apps/openrc       0.9.7
        sys-apps/sandbox      2.5
        sys-devel/autoconf    2.13 2.68
        sys-devel/automake    1.11.1-r1
        sys-devel/binutils    2.22-r1
        sys-devel/gcc         4.6.2
        sys-devel/gcc-config  1.5-r2
        sys-devel/libtool     2.4.2
        sys-devel/make        3.82-r3
        sys-freebsd/freebsd-lib (none)
        sys-kernel/linux-headers 3.1
        sys-libs/glibc        2.14.1-r1
        sys-libs/uclibc       (none)
Comment 4 Pacho Ramos gentoo-dev 2011-12-30 14:40:39 UTC
(In reply to comment #3)
> dev-libs/glib-2.31.6
> 

Please don't mix that glib development versions with stable, I guess you will probably need webkit-1.7.x for that

> Package Manager Information:
>     Package Name              paludis
>     Package Version           0.70.1
>     Build Date                2011-12-05T11:48:42+0100
>     Built with CXX            x86_64-pc-linux-gnu-g++ 4.6.2
>     Built with CXXFLAGS        -march=native -O3 -pedantic

-O3 is also discouraged:
http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap2