Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Host arch s390, target arch i686
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
dimm
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2009
Posts: 89

PostPosted: Thu Feb 19, 2009 12:44 am    Post subject: Host arch s390, target arch i686 Reply with quote

I have install crossdev on s390 gentoo under z/VM.
Then i have try 'crossdev -t i686', and what I have:

Code:

# crossdev -t i686
----------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     s390
 * Target Portage ARCH:   x86
 * Target System:         i686-pc-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/i686-pc-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/i686-pc-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                 [ ok ]
 * Log: /var/log/portage/cross-i686-pc-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                                                        [ ok ]
 * Log: /var/log/portage/cross-i686-pc-linux-gnu-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...

 * linux-headers failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-i686-pc-linux-gnu-info.log
 * /var/log/portage/cross-i686-pc-linux-gnu-linux-headers-quick.log


It mean that linux-headers can't install?
I looked in the /var/log/portage/cross-i686-pc-linux-gnu-linux-headers-quick.log and see that i not have anything for working with lzma archives.
'emerge lzma-utils' is solved this problem

But next problem is with gcc

Code:

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.


It is mean that i need install gmp 4.1+ and mpfr 2.3.0+. But as i think i need to install this packages for i686 arch. I right?

But i check dependencies and update gmp and mpfr to the latest version on host machine.
It was be good for cross-gcc building.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Thu Feb 19, 2009 5:09 pm    Post subject: Reply with quote

You're still building gcc, in crossdev, as far as I can tell? This would mean that you need it compiled for s390. I suppose this isn't tested very well (crossdev likely was tested most with an i686 host instead of a target), but make sure that mpfr is compiled on the host system.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Fri Apr 24, 2009 1:19 pm    Post subject: Reply with quote

both issues you are experiencing seem to be wrong/missing dependency declarations in the ebuilds, although this is quite impossible.
what gcc version are you using?
from gcc-4.3.3-r2.ebuild:
Code:
RDEPEND="...
>=dev-libs/gmp-4.2.1
>=dev-libs/mpfr-2.3
..."
from linux-headers-2.6.28-r1.ebuild:
Code:
DEPEND="app-arch/lzma-utils"

so i wonder why you do not have them already.
by the way... you have a spare z/vm license for a gentoo installation to speed up compilation on your workstation via crossdev?
i'd like to work for that company too. :twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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