Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297396 - =sys-libs/db-4.8.24 cross compile fail at MIPS platform
Summary: =sys-libs/db-4.8.24 cross compile fail at MIPS platform
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 08:30 UTC by Yixun Lan
Modified: 2010-04-28 08:47 UTC (History)
0 users

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


Attachments
full cross compile log (build.log,17.72 KB, text/plain)
2009-12-18 08:34 UTC, Yixun Lan
Details
emerge info (emerge_info.txt,3.56 KB, text/plain)
2010-04-28 08:47 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2009-12-18 08:30:58 UTC
libtool: compile:  mipsel-softfloat-linux-gnu-gcc -c -I. -I/var/mips/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -mips32 -EL -msoft-float -mtune=4kec -fomit-frame-pointer -I/usr/mipsel-softfloat-linux-gnu/usr/include/ -I/usr/mipsel-softfloat-linux-gnu/include/ /var/mips/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../mutex/mut_tas.c  -fPIC -DPIC -o .libs/mut_tas.o
{standard input}: Assembler messages:
{standard input}:404: Error: unrecognized opcode `swpb $2,$20,[$21]'
{standard input}:405: Error: unrecognized opcode `eor $2,$2,'
{standard input}:1118: Error: unrecognized opcode `swpb $4,$2,[$3]'
{standard input}:1119: Error: unrecognized opcode `eor $4,$4,'
make: *** [mut_tas.lo] Error 1
Comment 1 Yixun Lan archtester gentoo-dev 2009-12-18 08:34:27 UTC
Created attachment 213365 [details]
full cross compile log
Comment 2 SpanKY gentoo-dev 2009-12-18 16:00:28 UTC
does your cross-compiler work otherwise ?
Comment 3 Yixun Lan archtester gentoo-dev 2009-12-22 02:50:37 UTC
Seems it generated unexpected instructions

But I don't think there is problem with the cross toolchain,
Because I can compile with other packages,
I have already build all SYSTEM packages,and can boot into the base system

$emerge-mipsel-softfloat-linux-gnu --info
Portage 2.2_rc52 (!/usr/local/layman/gentoo-mips-overlay/profiles/default/linux/mips/10.0/neuvoo/mipsel/minimal, gcc-4.4.0, glibc-2.9_p20081201-r3, 2.6.32-git11 i686)
=================================================================
System uname: Linux-2.6.32-git11-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 27 Nov 2009 14:15:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.64
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="arm mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe  -mips32 -EL -msoft-float -mtune=4kec  -fomit-frame-pointer -I/usr/mipsel-softfloat-linux-gnu/usr/include/ -I/usr/mipsel-softfloat-linux-gnu/include/"
CHOST="mipsel-softfloat-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe  -mips32 -EL -msoft-float -mtune=4kec  -fomit-frame-pointer -I/usr/mipsel-softfloat-linux-gnu/usr/include/ -I/usr/mipsel-softfloat-linux-gnu/include/"
DISTDIR="/mnt/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--buildpkg --binpkg-respect-use y"
FEATURES="assume-digests buildpkg distlocks fixpackages news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" ftp://gentoo.anheng.com.cn/gentoo http://mirrors.163.com/gentoo http://mirror.averse.net/pub/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-L/usr/mipsel-softfloat-linux-gnu/lib -L/usr/mipsel-softfloat-linux-gnu/usr/lib"
MAKEOPTS="-j1"
PKGDIR="/usr/mipsel-softfloat-linux-gnu/packages/"
PORTAGE_CONFIGROOT="/usr/mipsel-softfloat-linux-gnu/"
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/mips/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/gentoo-mips-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bzip2 cli compat crypt dbus gpm iconv make-symlinks minimal modules mudflap ncurses nptl nptlonly openmp pam pcre pppd readline reflection session spl ssl sysfs tcpd threads threadsafe truetype unicode xorg xsettings" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse touchscreen" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev dummy" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

(In reply to comment #2)
> does your cross-compiler work otherwise ?
> 

Comment 4 Yixun Lan archtester gentoo-dev 2010-04-28 08:47:46 UTC
Created attachment 229485 [details]
emerge info

problem still exist while using:

cross-mipsel-softfloat-linux-gnu/binutils-2.20.51.0.8
cross-mipsel-softfloat-linux-gnu/gcc-4.4.2
cross-mipsel-softfloat-linux-gnu/glibc-2.11-r1
cross-mipsel-softfloat-linux-gnu/linux-headers-2.6.33