View previous topic :: View next topic |
Author |
Message |
dimm Tux's lil' helper
Joined: 21 Jan 2009 Posts: 89
|
Posted: Thu Feb 19, 2009 12:44 am Post subject: Host arch s390, target arch i686 |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9828 Location: almost Mile High in the USA
|
Posted: Thu Feb 19, 2009 5:09 pm Post subject: |
|
|
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 |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Apr 24, 2009 1:19 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|