Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358651 - sys-fs/e2fsprogs-1.41.12 build fails on ppc-on-i686 crossdev
Summary: sys-fs/e2fsprogs-1.41.12 build fails on ppc-on-i686 crossdev
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-13 04:54 UTC by Raffaello D. Di Napoli
Modified: 2011-03-16 03:53 UTC (History)
0 users

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


Attachments
Failed build log (e2fsprogs-1.41.12-build.log,28.11 KB, text/plain)
2011-03-13 04:55 UTC, Raffaello D. Di Napoli
Details
Patch from https://dev.openwrt.org/ticket/8111 (e2fsprogs-1.41.12-avoid-typedef-redef.patch,418 bytes, patch)
2011-03-13 06:12 UTC, Raffaello D. Di Napoli
Details | Diff
Patch for the ebuild to use the above patch (e2fsprogs-1.41.12.ebuild.patch,507 bytes, patch)
2011-03-13 06:15 UTC, Raffaello D. Di Napoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raffaello D. Di Napoli 2011-03-13 04:54:50 UTC
Emerging sys-fs/e2fsprogs-1.41.12 with a cross-toolchain for ppc on i686 fails, due to several typedefs being redefined.

I found this upstream:
http://sourceforge.net/tracker/?func=detail&aid=2976725&group_id=2406&atid=202406
but they don’t seem to care that much.

I also found this, much more useful,
https://dev.openwrt.org/ticket/8111
where is a patch that does solve the problem, simply by inverting the inclusion order of two ext2fs-related headers.

Reproducible: Always




# powerpc-unknown-linux-gnu-emerge --info
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
Portage 2.1.9.25 (default/linux/powerpc/ppc32/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 13 Mar 2011 03:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
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.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -mcpu=603e -pipe -I/depot/chroot/PowerBook-3400c/work/include -I/depot/chroot/PowerBook-3400c/work/usr/include"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -mcpu=603e -pipe -I/depot/chroot/PowerBook-3400c/work/include -I/depot/chroot/PowerBook-3400c/work/usr/include"
DISTDIR="/depot/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/depot/chroot/PowerBook-3400c/work/lib -L/depot/chroot/PowerBook-3400c/work/usr/lib -Wl,-rpath-link,/depot/chroot/PowerBook-3400c/work/lib:/depot/chroot/PowerBook-3400c/work/usr/lib"
MAKEOPTS="-j4"
PKGDIR="/depot/chroot/PowerBook-3400c/pkg"
PORTAGE_CONFIGROOT="/depot/chroot/PowerBook-3400c/work/"
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="/var/lib/portage/tree"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X bzip2 cli cups cxx dri hfs iconv ipv6 minimal modules mudflap ncurses nptl nptlonly pcre ppc pppd readline session ssl symlink sysfs tcpd unicode xattr xorg zlib" ALSA_CARDS="powermac" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev ct65550" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Raffaello D. Di Napoli 2011-03-13 04:55:28 UTC
Created attachment 265685 [details]
Failed build log
Comment 2 Raffaello D. Di Napoli 2011-03-13 06:12:58 UTC
Created attachment 265693 [details, diff]
Patch from https://dev.openwrt.org/ticket/8111

This solves the problem by swapping the order of inclusion of two headers, as I wrote above.
Comment 3 Raffaello D. Di Napoli 2011-03-13 06:15:49 UTC
Created attachment 265695 [details, diff]
Patch for the ebuild to use the above patch
Comment 4 SpanKY gentoo-dev 2011-03-16 03:53:10 UTC
this is already fixed in e2fsprogs-1.14.14