Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610546 - media-libs/libilbc-2.0.2 - .../work/libilbc-2.0.2/typedefs.h:51:2: error: #error Please add support for your architecture in typedefs.h
Summary: media-libs/libilbc-2.0.2 - .../work/libilbc-2.0.2/typedefs.h:51:2: error: #er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on:
Blocks: 608868
  Show dependency tree
 
Reported: 2017-02-22 11:07 UTC by Michael Weber (RETIRED)
Modified: 2022-05-14 03:00 UTC (History)
3 users (show)

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


Attachments
build.log ppc64 (libilbc-2.0.2:20170222-082821.log,12.00 KB, text/plain)
2017-02-22 11:07 UTC, Michael Weber (RETIRED)
Details
build.log ppc (libilbc-2.0.2:20170222-083310.log,10.46 KB, text/plain)
2017-02-22 11:10 UTC, Michael Weber (RETIRED)
Details
ppc/ppc64 patch (ppc.patch,398 bytes, patch)
2017-02-22 11:29 UTC, Michael Weber (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2017-02-22 11:07:49 UTC
Created attachment 464658 [details]
build.log ppc64

Portage 2.3.3 (python 3.4.5-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland, gcc-4.9.4, glibc-2.23-r3, 4.4.39-gentoo ppc64)
=================================================================
System uname: Linux-4.4.39-gentoo-ppc64-PPC970,_altivec_supported-with-gentoo-2.3
KiB Mem:     6004788 total,   1768916 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of repository gentoo: Wed, 22 Feb 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://lore.xmw.de/gentoo-portage
    priority: -1000

xmw
    location: /var/lib/layman/xmw
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G5 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G5 -pipe"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lore.xmw.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/cache/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm ibm iconv ipv6 modules ncurses nls nptl openmp pam pcre ppc64 readline seccomp session ssl tcpd unicode xattr zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Weber (RETIRED) gentoo-dev 2017-02-22 11:10:07 UTC
Created attachment 464660 [details]
build.log ppc

Portage 2.3.3 (python 3.4.5-final-0, default/linux/powerpc/ppc32/13.0, gcc-4.9.4, glibc-2.23-r3, 3.12.21-gentoo-r1-ppc32 ppc)
=================================================================
System uname: Linux-3.12.21-gentoo-r1-ppc32-ppc-7450,_altivec_supported-with-gentoo-2.3
KiB Mem:      512564 total,    179168 free
KiB Swap:    2097148 total,   1928788 free
Timestamp of repository gentoo: Wed, 22 Feb 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://lore.xmw.de/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre ppc readline seccomp session ssl tcpd unicode xattr zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2017-02-22 11:20:49 UTC
It's already package./use.masked for PPC64.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-02-22 11:23:23 UTC
The problem isn't endian support as the build system could simply check for that but doesn't, and instead requires you to explicitly define each architecture's quirks in typedefs.h. That hasn't been done, so either you add that or you mask the USE flag for ppc32.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2017-02-22 11:29:17 UTC
Created attachment 464664 [details, diff]
ppc/ppc64 patch
Comment 5 Michael Weber (RETIRED) gentoo-dev 2017-02-22 11:39:15 UTC
Reported upstream as https://github.com/TimothyGu/libilbc/issues/22

commit 06114d7ae8e62de8b4ecd4ff14d4c6756372eb4f
Author: Michael Weber <xmw@gentoo.org>
Date:   Wed Feb 22 12:38:27 2017 +0100

    media-libs/libilbc: Add architecture definition for ppc/ppc64 (bug 610546).
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1
Comment 6 Larry the Git Cow gentoo-dev 2018-03-31 10:27:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dae40527089e38bc44c0f33056c24bf126cace9

commit 4dae40527089e38bc44c0f33056c24bf126cace9
Author:     Rolf Eike Beer <eike@sf-mail.de>
AuthorDate: 2018-03-23 06:14:30 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-03-31 10:27:49 +0000

    media-libs/libilbc: use patch for ppc/ppc64/sparc now upstream
    
    Bug: https://bugs.gentoo.org/610546
    Closes: https://github.com/gentoo/gentoo/pull/7560

 .../libilbc/files/libilbc-2.0.2-ppc_ppc64.patch    | 16 ----------
 .../files/libilbc-2.0.2-ppc_ppc64_sparc.patch      | 35 ++++++++++++++++++++++
 media-libs/libilbc/libilbc-2.0.2.ebuild            |  2 +-
 media-libs/libilbc/libilbc-9999.ebuild             |  1 -
 4 files changed, 36 insertions(+), 18 deletions(-)}
Comment 7 Andreas Sturmlechner gentoo-dev 2020-12-28 13:20:48 UTC
So... is it fixed?
Comment 8 matoro archtester 2022-05-02 18:17:35 UTC
This library works fine on ia64, I tested using ffmpeg and a sample file from https://web.archive.org/web/2016*/http://www.andrews-corner.org/samples/luckynight.lbc

I've pushed an upstream PR to add support:  https://github.com/TimothyGu/libilbc/pull/40
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-03 03:46:23 UTC
(In reply to matoro from comment #8)
> This library works fine on ia64, I tested using ffmpeg and a sample file
> from
> https://web.archive.org/web/2016*/http://www.andrews-corner.org/samples/
> luckynight.lbc
> 
> I've pushed an upstream PR to add support: 
> https://github.com/TimothyGu/libilbc/pull/40

Thanks!
Comment 10 Larry the Git Cow gentoo-dev 2022-05-14 03:00:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07e1c81337936a0341e9fa30e23931943fd994f2

commit 07e1c81337936a0341e9fa30e23931943fd994f2
Author:     matoro <matoro@users.noreply.github.com>
AuthorDate: 2022-05-03 04:07:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-14 02:57:23 +0000

    media-libs/libilbc: Keyword 3.0.4 ia64, #610546
    
    Closes: https://bugs.gentoo.org/610546
    Signed-off-by: matoro <matoro@users.noreply.github.com>
    Closes: https://github.com/gentoo/gentoo/pull/25297
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libilbc/files/libilbc-3.0.4-support-ia64.patch | 32 ++++++++++++++++++++++
 media-libs/libilbc/libilbc-3.0.4.ebuild            |  5 ++--
 media-libs/libilbc/libilbc-9999.ebuild             |  5 ++--
 3 files changed, 38 insertions(+), 4 deletions(-)