[gentoo]gcc cross-compilen gaat mis zonder error

Pagina: 1
Acties:

  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
Hoi

Ben bezig met gcc voor i686 aan de praat te krijgen op een van mijn opteron-dozen; dit voor distcc (distcc draait tussen de amd64 gebaseerde bakken al keurig).

Heb deze guide gebruikt:
http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO
enop stap 5 gaat het mis.

Stap 5:
(5) Emerge gcc [C compiler only].
$ USE=nocxx emerge cross-hppa2.0-unknown-linux-gnu/gcc
< run gcc-config for the new compiler >
Hij gaat configuren, wat maken, en dan opnieuw een configuren. Hierna klapt hij eruit zonder foutmelding:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
checking for gcc... (cached)  /var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
checking whether we are using GNU C... (cached) yes
checking whether  /var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) /lib/cpp
checking for stdio.h... (cached) yes
checking for ANSI C header files... (cached) no
checking for posix... (cached) yes
checking for GNU library... (cached) yes
checking return type of signal handlers... int
checking for atexit... no
checking for onexit... no
checking for on_exit... no
checking for drem in -lm... no
updating cache .././config.cache
creating ./config.status
creating Makefile

!!! ERROR: cross-i686-pc-linux-gnu/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1312, Exitcode 2
!!! emake failed with all
!!! If you need support, post the topmost build error, NOT this status message.


Toen ik de ebuild bekeek zag ik dit rond die regel staan:
code:
1
2
3
4
5
Code:

                     if is_multilib ; then
                                sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die
                        fi

Het gekke is dat ik helemaal niets met multi_lib doe, zoals hieronder aangegeven:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dionysos gcc # emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.11.6 x86_64)
=================================================================
System uname: 2.6.11.6 x86_64 AMD Engineering Sample
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 alsa apache2 asterisk audiofile avi bitmap-fonts bzip2 bzlib crypt cups curl dedicated dvd dvdr dvdread eds emboss encode expat fam flac foomaticdb fortran gd gdbm gif gpm gstreamer idn imlib jpeg lcms libwww lzw lzw-tiff maildir mhash mng mp3 mpeg mysql ncurses nls ogg opengl pam pam-mysqlimap pcre pdflib perl php png python quicktime readline recursor samba sasl sdl slang snmp spell ssl tcpd tiff tls truetype truetype-fonts type1-fonts udev usb userlocales vorbis xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Iemand weet wat hier misgaat?


Ik heb gegoogled, op fgo gepost , en gezond verstand gebruikt om te proberen dit op te lossen btw.

[ Voor 4% gewijzigd door Boudewijn op 11-12-2005 18:23 ]

Zaram module kopen voor je glasvezelaansluiting?


  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 08-02 22:36

Creepy

Tactical Espionage Splatterer

Ik dacht dat standaard gcc op X86_64 multilib support wordt meegenomen. Bij configure zul je --disable-multilib moeten meegeven om dit uit te schakelen.

[ Voor 11% gewijzigd door Creepy op 11-12-2005 19:37 ]

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
aha ok.

ik ga dat zo even in de ebuild veranderen. Wel vreemd trouwens dat dit niet in de howto staat :(

Zaram module kopen voor je glasvezelaansluiting?