Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 391755

Summary: ebuild of sys-devel/bin86 fails
Product: Gentoo Linux Reporter: John L. Poole <prestopoole>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
environment

Description John L. Poole 2011-11-24 02:59:19 UTC
On a Genesi Efika MX during a stage3 install attempt.  I've built my kernel and need lilo to install it.  Lilo calls in sys-devl/bin86 which fails to build.

I get errors such as:
catimage.c:65:22: error: invalid operands to binary >> (have 'char *' and 'int')


Reproducible: Always

Steps to Reproduce:
1. emerge sys-devel/bin86

Actual Results:  
>>> Failed to emerge sys-devel/bin86-0.16.18, Log file:

>>>  '/var/tmp/portage/sys-devel/bin86-0.16.18/temp/build.log'

 * Messages for package sys-devel/bin86-0.16.18:

 * ERROR: sys-devel/bin86-0.16.18 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2150:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" || die


with this as the last execution lines:

armv7a-hardfloat-linux-gnueabi-gcc -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_POSIX_SOURCE   -Wl,-O1 -Wl,--as-needed  objchop.c   -o objchop
armv7a-hardfloat-linux-gnueabi-gcc -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_POSIX_SOURCE   -Wl,-O1 -Wl,--as-needed  catimage.c   -o catimage
catimage.c:29:2: error: #error "Compile error: struct exec invalid (long not 32 bit ?)"
catimage.c: In function 'main':
catimage.c:65:22: error: invalid operands to binary >> (have 'char *' and 'int')
catimage.c:65:43: error: invalid operands to binary >> (have 'char *' and 'int')
catimage.c:71:23: warning: assignment makes integer from pointer without a cast
catimage.c:79:29: error: invalid operands to binary + (have 'char *' and 'char *')
catimage.c:85:20: warning: assignment makes integer from pointer without a cast
catimage.c: In function 'read_symtable':
catimage.c:175:11: warning: assignment makes integer from pointer without a cast
catimage.c:200:19: warning: assignment makes integer from pointer without a cast
catimage.c:206:47: warning: assignment makes integer from pointer without a cast
catimage.c:207:47: warning: assignment makes integer from pointer without a cast
make[1]: *** [catimage] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/bin86-0.16.18/work/bin86-0.16.18/ld'
make: *** [all] Error 1
emake failed



Expected Results:  
successful install.

I'll upload the requested files.

(chroot) efikamx-armhf linux # emerge --info =sys-devel/bin86-0.16.18
Portage 2.1.10.11 (default/linux/arm/10.0/armv7a, gcc-4.5.3, glibc-2.12.2-r0, 2.6.31.14.25-efikamx armv7l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31.14.25-efikamx-armv7l-ARMv7_Processor_rev_5_-v7l-with-gentoo-2.0.3
Timestamp of tree: Tue, 22 Nov 2011 16:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre pppd readline session ssl sysfs tcpd unicode xorg 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

(chroot) efikamx-armhf linux # 

Also, I'm currently blocked trying to install lilo in the Debian host environment, I was thinking I could perform the lilo from there and not have to use the Gentoo environment, but apt-get balked -- I'll have to learn more about apt-get.  Any rate, this looked pretty serious.
Comment 1 John L. Poole 2011-11-24 03:02:15 UTC
Created attachment 293599 [details]
build log
Comment 2 John L. Poole 2011-11-24 03:03:43 UTC
Created attachment 293601 [details]
environment
Comment 3 John L. Poole 2011-11-24 03:05:35 UTC
(chroot) efikamx-armhf linux # emerge -pqv =sys-devel/bin86-0.16.18
[ebuild  N    ] sys-devel/bin86-0.16.18 

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

(chroot) efikamx-armhf linux #
Comment 4 Steev Klimaszewski (RETIRED) gentoo-dev 2011-11-24 05:03:46 UTC
Marking as invalid: http://www.powerdeveloper.org/forums/viewtopic.php?p=15439