Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crosscompile on AMD64 for i586 fails...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
ahzf
n00b
n00b


Joined: 21 Mar 2004
Posts: 1

PostPosted: Sun Mar 21, 2004 3:35 pm    Post subject: Crosscompile on AMD64 for i586 fails... Reply with quote

I just tried to bootstrap an i586 gentoo on an AMD64-gentoo box but although I imo set the correct parameter in (the chrooted) /etc/make.conf "-mcpu=i586 -march=pentium" libtool compilation tries to build itself for a "x86_64-pc-linux"... Anyone knows how to circumvent this problem?

ahzf


make[1]: Entering directory `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5'
rm -f ltmain.shT
CONFIG_FILES=libtoolize CONFIG_HEADERS= ./config.status
date=`/bin/sh ./mkstamp < ./ChangeLog` && \
sed -e 's/@''PACKAGE@/libtool/' -e 's/@''VERSION@/1.3.5/' \
-e "s%@""TIMESTAMP@%$date%" ./ltmain.in > ltmain.shT
creating libtoolize
mv -f ltmain.shT ltmain.sh || \
(rm -f ltmain.sh && cp ltmain.shT ltmain.sh && rm -f ltmain.shT)
CC="gcc" CFLAGS="-O2 -mcpu=i586 -march=pentium -fomit-frame-pointer -pipe" CPPFLAGS="" \
LD="/usr/i586-pc-linux-gnu/bin/ld" LDFLAGS="" LIBS="" \
LN_S="ln -s" NM="/usr/bin/nm -B" RANLIB="ranlib" \
DLLTOOL="" OBJDUMP="" AS="" \
/bin/sh ./ltconfig --cache-file=./config.cache --with-gcc --with-gnu-ld --enable-dlopen --srcdir=. \
--output=libtool ./ltmain.sh
chmod +x libtoolize
loading cache ./config.cache within ltconfig
checking host system type... Invalid configuration `x86_64-pc-linux': machine `x86_64-pc' not recognized

make[1]: *** [libtool] Error 1
make[1]: Leaving directory `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5'
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/libtool-1.4.3-r4 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
thedd
n00b
n00b


Joined: 01 Jul 2003
Posts: 20
Location: sweden

PostPosted: Sun Mar 21, 2004 8:00 pm    Post subject: Reply with quote

You need to chroot with
Code:
linux32 chroot /path/to/root /bin/bash

else uname -m will say you have a 64bit hardware...
good luck!
_________________
ted.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
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