| View previous topic :: View next topic |
| Author |
Message |
russK n00b


Joined: 26 Jun 2006 Posts: 68
|
Posted: Wed Jan 02, 2008 10:41 pm Post subject: want to change CHOST but gcc won't build [solved] |
|
|
I'm trying to do an install on a VIA EPIA C3 Ezra box. The Ezra is almost a i686 according to gcc. I can't use the stage3-i686 tarball, I get an illegal instruction error on the chroot step.
So I'm using stage3-x86-2007.0.tar.bz2, which has i486-pc-linux-gnu-4.1.1, so the first thing I am doing is changing CHOST in make.conf to CHOST="i586-pc-linux-gnu" and emerging gcc. It's building happily for a while and then I get this:
| Code: | /bin/sh /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
insn-attrtab.c is unchanged
echo timestamp > s-attrtab
stage1/xgcc -Bstage1/ -B/usr/i586-pc-linux-gnu/bin/ -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../libcpp/include -c insn-attrtab.c \
-o insn-attrtab.o
{standard input}: Assembler messages:
{standard input}:36545: Warning: end of file not at end of a line; newline inserted
{standard input}:37601: Error: suffix or operands invalid for `push'
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-4.1.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 5375: Called src_compile
ebuild.sh, line 1304: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1548: Called gcc_do_make
toolchain.eclass, line 1422: Called die
!!! emake failed with profiledbootstrap
|
Am I doing something wrong? I figured after this I would do "emerge -e system".
Here's the emerge --info:
| Code: | livecd ~ # emerge --info
Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 VIA C3 Ezra
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 02 Jan 2008 05:46:01 +0000
app-shells/bash: 3.1_p17
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61
sys-devel/automake: 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -march=C3 -pipe -mmmx -m3dnow"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os -march=C3 -pipe -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://guro/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="via82xx, bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="cle266"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Thanks
Last edited by russK on Thu Jan 03, 2008 9:03 am; edited 1 time in total |
|
| Back to top |
|
 |
rjmars97 n00b


Joined: 08 May 2006 Posts: 30
|
Posted: Wed Jan 02, 2008 10:45 pm Post subject: |
|
|
I've never done this, but there is some documentation on changing the CHOST. _________________ I opened Pandora's box, let the cat out of the bag and put the ball in their court.
-- Hon. J. Hacker (The Ministry of Administrative Affairs) |
|
| Back to top |
|
 |
russK n00b


Joined: 26 Jun 2006 Posts: 68
|
Posted: Wed Jan 02, 2008 10:52 pm Post subject: |
|
|
| rjmars97 wrote: | | I've never done this, but there is some documentation on changing the CHOST. |
I read that page and the first step failed trying to emerge binutils, it said my gcc could not build executables ... I think because I changed CHOST (as it said to of course), and it was trying to use i586-pc-linux-gnu which I don't have yet. That's why I skipped to emerging gcc. |
|
| Back to top |
|
 |
russK n00b


Joined: 26 Jun 2006 Posts: 68
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|