Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564526 - media-libs/zimg fails to build with clang
Summary: media-libs/zimg fails to build with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2015-10-31 02:00 UTC by Julian Ospald
Modified: 2015-12-17 10:09 UTC (History)
1 user (show)

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


Attachments
1446256554-install-media-libs_zimg-2.0.1:0::gentoo.out (1446256554-install-media-libs_zimg-2.0.1:0::gentoo.out,34.65 KB, text/plain)
2015-10-31 02:00 UTC, Julian Ospald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2015-10-31 02:00:07 UTC
Created attachment 415774 [details]
1446256554-install-media-libs_zimg-2.0.1:0::gentoo.out

Package Manager Information:
    Package Name              paludis
    Package Version           2.4.0
    Build Date                2015-08-06T02:27:59+0200
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.8.4
    Built with CXXFLAGS        -march=core-avx-i -O2 -pipe -Wall
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu

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

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

Repository gentoo:
    format                    e
    location                  /usr/portage
    builddir                  /var/tmp/paludis
    cache                     /usr/portage/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    names_cache               /var/cache/paludis/names
    newsdir                   /usr/portage/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /usr/portage/metadata/glsa
    setsdir                   /usr/portage/sets
    sync                      
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata
    Package information
        app-shells/bash       4.3_p39
        dev-java/java-config  (none)
        dev-lang/perl         5.20.2
        dev-lang/python       2.7.10 3.3.5-r2 3.4.3
        dev-util/ccache       (none)
        dev-util/cmake        3.3.1-r1
        dev-util/pkgconfig    0.28-r2
        sys-apps/baselayout   2.2
        sys-apps/openrc       0.17
        sys-apps/sandbox      2.6-r1
        sys-devel/autoconf    2.13 2.69
        sys-devel/automake    1.10.3-r1 1.11.6-r1 1.12.6 1.13.4 1.14.1 1.15
        sys-devel/binutils    2.25.1-r1
        sys-devel/gcc         4.7.4 4.8.5 4.9.3
        sys-devel/gcc-config  1.7.3
        sys-devel/libtool     2.4.6
        sys-devel/make        4.1-r1
        sys-freebsd/freebsd-lib (none)
        sys-kernel/linux-headers 3.18
        sys-libs/glibc        2.21-r1
        sys-libs/uclibc       (none)

Repository desktop-overlay:
    format                    e
    location                  /var/lib/layman/desktop-overlay
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/desktop-overlay/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/desktop-overlay/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/desktop-overlay/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/desktop-overlay/metadata/glsa
    setsdir                   /var/lib/layman/desktop-overlay/sets
    sync                      git://github.com/hasufell/desktop-overlay.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository haskell:
    format                    e
    location                  /var/lib/layman/haskell
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/haskell/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/haskell/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/haskell/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/haskell/metadata/glsa
    setsdir                   /var/lib/layman/haskell/sets
    sync                      git://github.com/gentoo-haskell/gentoo-haskell.git --git-clone-option='--depth=1'
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository hasufell-overlay:
    format                    e
    location                  /usr/local/portage
    builddir                  /var/tmp/paludis
    cache                     /usr/local/portage/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /usr/local/portage/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /usr/local/portage/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /usr/local/portage/metadata/glsa
    setsdir                   /usr/local/portage/sets
    sync                      
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository torbrowser:
    format                    e
    location                  /var/lib/layman/torbrowser
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/torbrowser/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/torbrowser/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/torbrowser/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/torbrowser/metadata/glsa
    setsdir                   /var/lib/layman/torbrowser/sets
    sync                      git://github.com/MeisterP/torbrowser-overlay.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository tox-overlay:
    format                    e
    location                  /var/lib/layman/tox-overlay
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/tox-overlay/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/tox-overlay/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/tox-overlay/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/tox-overlay/metadata/glsa
    setsdir                   /var/lib/layman/tox-overlay/sets
    sync                      git://github.com/urras/gentoo-overlay-tox.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository installed:
    format                    vdb
    location                  /var/db/pkg
    builddir                  /var/tmp/paludis
    eapi_when_unknown         0
    names_cache               /var/empty
    root                      /

Repository repository:
    format                    repository
    config_filename           /etc/paludis/repositories/%{repository_template_name}.conf
    config_template           /etc/paludis/repository.template
    root                      /

Repository games-overlay:
    format                    e
    location                  /var/lib/layman/games-overlay
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/games-overlay/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/games-overlay/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/games-overlay/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/games-overlay/metadata/glsa
    setsdir                   /var/lib/layman/games-overlay/sets
    sync                      git://github.com/hasufell/games-overlay.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository libressl:
    format                    e
    location                  /var/lib/layman/libressl
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/libressl/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/libressl/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/libressl/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/libressl/metadata/glsa
    setsdir                   /var/lib/layman/libressl/sets
    sync                      git+https://github.com/gentoo/libressl.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Repository prism-overlay:
    format                    e
    location                  /var/lib/layman/prism-overlay
    builddir                  /var/tmp/paludis
    cache                     /var/lib/layman/prism-overlay/metadata/md5-cache
    distdir                   /home/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass  /var/lib/layman/prism-overlay/eclass
    layout                    traditional
    manifest_hashes           SHA256 SHA512 WHIRLPOOL
    master_repository         gentoo
    names_cache               /var/cache/paludis/names
    newsdir                   /var/lib/layman/prism-overlay/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/13.0  /etc/paludis/profiles
    securitydir               /var/lib/layman/prism-overlay/metadata/glsa
    setsdir                   /var/lib/layman/prism-overlay/sets
    sync                      git://github.com/hasufell/prism-overlay.git
    sync_options              
    thin_manifests            true
    use_manifest              use
    write_cache               /var/cache/paludis/metadata

Extra Information for media-libs/zimg-2.0.1:0::gentoo:
        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CC=clang
        CFLAGS=-march=core-avx-i -O2 -pipe -Wall
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXX=clang++
        CXXFLAGS=-march=core-avx-i -O2 -pipe -Wall
        DISTDIR=/home/distfiles
        FCFLAGS=-O2 -pipe
        FEATURES=
        FFLAGS=-O2 -pipe
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
        MAKEOPTS=-j4
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=amd64 abi_x86_32 abi_x86_64 cpu_flags_x86_sse elibc_glibc kernel_linux userland_GNU amd64 
        USE_PYTHON=
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/media-libs-zimg-2.0.1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 Fabio Scaccabarozzi 2015-12-11 23:43:42 UTC
Version 2.0.2 has been added to the tree and compiles just fine.

Version 2.0.1 needs the following patch backported, if we want to keep it in the tree or stabilize it:
https://github.com/sekrit-twc/zimg/commit/75e47912427e2f10f5b53830a395095b54f29c52.patch

With this patch applied I verified that 2.0.1 compiles fine with clang-3.7.0.
Comment 2 Alexis Ballier gentoo-dev 2015-12-17 10:09:56 UTC
(In reply to Fabio Scaccabarozzi from comment #1)
> Version 2.0.2 has been added to the tree and compiles just fine.
> 
> Version 2.0.1 needs the following patch backported, if we want to keep it in
> the tree or stabilize it:
> https://github.com/sekrit-twc/zimg/commit/
> 75e47912427e2f10f5b53830a395095b54f29c52.patch
> 
> With this patch applied I verified that 2.0.1 compiles fine with clang-3.7.0.

good, closing then, thx