Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349165 (PR45726) - [4.5] dev-libs/libisofs fails to compile on ARMv5
Summary: [4.5] dev-libs/libisofs fails to compile on ARMv5
Status: RESOLVED FIXED
Alias: PR45726
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Pielmeier
URL: http://gcc.gnu.org/PR45726
Whiteboard:
Keywords:
Depends on: 348898
Blocks:
  Show dependency tree
 
Reported: 2010-12-20 08:25 UTC by Markus Meier
Modified: 2010-12-28 01:08 UTC (History)
3 users (show)

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


Attachments
dev-libs:libisofs-0.6.40:20101218-164738.log (dev-libs:libisofs-0.6.40:20101218-164738.log,34.10 KB, text/plain)
2010-12-20 08:25 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2010-12-20 08:25:23 UTC
dev-libs/libisofs-0.6.38 emerged w/o issues.

/bin/sh ./libtool --silent  --tag=CC   --mode=compile armv5tel-softfloat-linux-gnueabi-gcc -DPACKAGE_NAME=\"libisofs\" -DPACKAGE_TARNAME=\"libisofs\" -DPACKAGE_VERSION=\"0.6.40\" -DPACKAGE_STRING=\"libisofs\ 0.6.40\" -DPACKAGE_BUGREPORT=\"http://libburnia-project.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libisofs\" -DVERSION=\"0.6.40\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_FSEEKO=1 -DICONV_CONST= -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -D_GNU_SOURCE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEGM=1 -DHAVE_EACCESS=1 -DLIBISOFS_VERBOSE_DEBUG=1 -DHAVE_LIBACL=1 -DHAVE_LIBZ=1 -I.    -DLibisofs_with_aaip_acL  -DLibisofs_with_zliB  -DNDEBUG -fexpensive-optimizations -O3 -O2 -march=armv5te -pipe -c -o libisofs/libisofs_libisofs_la-messages.lo `test -f 'libisofs/messages.c' || echo './'`libisofs/messages.c
{standard input}: Assembler messages:
{standard input}:1474: Error: selected processor does not support ARM mode `movt r0,3'
make: *** [libisofs/libisofs_libisofs_la-messages.lo] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: dev-libs/libisofs-0.6.40 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2849:  Called _eapi2_src_compile
 *     ebuild.sh, line  654:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"

Portage 2.1.9.25 (default/linux/arm/10.0/desktop, gcc-4.5.1, glibc-2.11.2-r3, 2.6.35 armv5tel)
=================================================================
System uname: Linux-2.6.35-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.0.1
Timestamp of tree: Wed, 15 Dec 2010 10:25:01 +0000
ccache version 3.1.3 [disabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 3.1.3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /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 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.116/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dts dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv jpeg lcms libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd test threads tiff truetype unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" 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" 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-2 php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev omapfb 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Meier gentoo-dev 2010-12-20 08:25:38 UTC
Created attachment 257601 [details]
dev-libs:libisofs-0.6.40:20101218-164738.log
Comment 2 Daniel Pielmeier gentoo-dev 2010-12-20 08:37:26 UTC
I guess the new versions of libburn and libisoburn compile?
Comment 3 Markus Meier gentoo-dev 2010-12-20 08:47:35 UTC
(In reply to comment #2)
> I guess the new versions of libburn and libisoburn compile?

dev-libs/libburn-0.9.0 yes, dev-libs/libisoburn-0.6.6 needs libisofs, which fails...
Comment 4 Daniel Pielmeier gentoo-dev 2010-12-20 12:00:54 UTC
I have contacted upstream about this issue and will add his remarks here.

Although the error occurs in libisofs/messages.c the reported line number seems to be from the generated assembler code. Somehow we need to identify the code in messages.c which generates the failing assembler code. Maybe the toolchain guys can help us out here.

Also can you try if it builds with debugging enabled and without -02 optimisations.
Comment 5 Markus Meier gentoo-dev 2010-12-21 11:07:54 UTC
(In reply to comment #4)
> Also can you try if it builds with debugging enabled and without -02
> optimisations.

CFLAGS="-O0 -march=armv5te -pipe" CXXFLAGS="${CFLAGS}" USE="debug" emerge -1 libisofs

emerged w/o issues like that.
Comment 6 Markus Meier gentoo-dev 2010-12-21 12:36:30 UTC
fails the same way with -O1 as with -O2 (debug USE-flag doesn't matter).
Comment 7 Daniel Pielmeier gentoo-dev 2010-12-21 13:52:48 UTC
(In reply to comment #6)
> fails the same way with -O1 as with -O2 (debug USE-flag doesn't matter).

What about -O3? Can you try it as well?
Comment 8 Markus Meier gentoo-dev 2010-12-21 15:38:50 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > fails the same way with -O1 as with -O2 (debug USE-flag doesn't matter).
> 
> What about -O3? Can you try it as well?

fails as well (+/-debug doesn't change anything)
Comment 9 Markus Meier gentoo-dev 2010-12-22 12:32:27 UTC
please ignore my comment #0 as libisofs-0.6.38 fails the same way with gcc-4.5.1.
this looks like http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45726 - I'm rebuilding gcc with these patches.
Comment 10 Markus Meier gentoo-dev 2010-12-23 07:59:54 UTC
(In reply to comment #9)
> this looks like http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45726 - I'm
> rebuilding gcc with these patches.

applying the patch from the bug solves the issue with libisofs (and the testcase from the gcc bug).
@toolchain: it would be great if you could integrate it in our gcc patchset - thanks in advance.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2010-12-24 01:53:38 UTC
I'll include it in the 4.5.2 bump next week.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2010-12-28 01:08:52 UTC
Fixed in 4.5.2.