Gentoo Archives: gentoo-amd64

From: Lorenzo Milesi <lorenzo.milesi@×××××.com>
To: gentoo-amd64@g.o
Subject: [gentoo-amd64] cross compiling with distcc
Date: Tue, 02 May 2006 12:42:27
Message-Id: 29c147bd0605020539t1987afb5wbec87c138ea55499@mail.gmail.com
1 Hi
2
3 I've a lazy x86 xeon server doing nothing, and I would like to use
4 that as a compile server for my poor amd64 laptop.
5
6 Following the guide, I issued the command
7 crossdev -t x86_64 --g 3.4.6-r1 --b 2.16.1-r2 --l 2.4-r1 --k 2.6.16-r4
8
9 It works fine until glibc
10
11 * Host Portage ARCH: x86
12 * Target Portage ARCH: amd64
13 * Target System: x86_64-pc-linux-gnu
14 * Stage: 4 (C/C++ compiler)
15
16 * binutils: binutils-2.16.1-r2
17 * gcc: gcc-3.4.6-r1
18 * headers: linux-headers-2.6.16-r4
19 * libc: glibc-2.4-r1
20
21 * PORTDIR_OVERLAY: /usr/local/portage
22 * PORT_LOGDIR: /var/log/portage
23 * PKGDIR: /usr/portage/packages/cross/x86_64-pc-linux-gnu
24 * PORTAGE_TMPDIR: /var/tmp/cross/x86_64-pc-linux-gnu
25 _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
26 * Forcing the latest versions of binutils-config/gcc-config ... [ ok ]
27 * Log: /var/log/portage/cross-x86_64-pc-linux-gnu-binutils.log
28 * Emerging cross-binutils ... [ ok ]
29 * Log: /var/log/portage/cross-x86_64-pc-linux-gnu-gcc-stage1.log
30 * Emerging cross-gcc-stage1 ... [ ok ]
31 * Log: /var/log/portage/cross-x86_64-pc-linux-gnu-linux-headers.log
32 * Emerging cross-linux-headers ... [ ok ]
33 * Log: /var/log/portage/cross-x86_64-pc-linux-gnu-glibc.log
34 * Emerging cross-glibc ...
35
36 * glibc failed :(
37 * If you file a bug, please attach the following logfiles:
38 * /var/log/portage/cross-x86_64-pc-linux-gnu-info.log
39 * /var/log/portage/cross-x86_64-pc-linux-gnu-glibc.log
40
41
42 In the logfiles I find
43
44 Calculating dependencies >>> Unpacking source...
45
46 * Checking gcc for __thread support ... yes
47 * Checking kernel version (>=2.6.9) ... yes
48 * Checking linux-headers version (>=2.6.9) ... no
49
50 * You need linux-headers of at least version 2.6.9
51 * for NPTL support!
52
53 !!! ERROR: cross-x86_64-pc-linux-gnu/glibc-2.4-r1 failed.
54 !!! Function check_nptl_support, Line 794, Exitcode 0
55 !!! linux-headers version too low!
56 !!! If you need support, post the topmost build error, NOT this status message.
57
58
59 The wrong thing is, that even if I choose 2.6.16 kernel,
60 cross-x86_64-pc-linux-gnu-info.log says
61 virtual/os-headers: 2.6.11-r2
62 as you can see:
63 --------------------------------------------------------------------------------
64 * Host Portage ARCH: x86
65 * Target Portage ARCH: amd64
66 * Target System: x86_64-pc-linux-gnu
67 * Stage: 4 (C/C++ compiler)
68
69 * binutils: binutils-2.16.1-r2
70 * gcc: gcc-3.4.6-r1
71 * headers: linux-headers-2.6.16-r4
72 * libc: glibc-2.4-r1
73
74 * PORTDIR_OVERLAY: /usr/local/portage
75 * PORT_LOGDIR: /var/log/portage
76 * PKGDIR: /usr/portage/packages/cross/x86_64-pc-linux-gnu
77 * PORTAGE_TMPDIR: /var/tmp/cross/x86_64-pc-linux-gnu
78 _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
79 Gentoo Base System version 1.6.14
80 Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3,
81 2.6.15-gentoo-r1 i686)
82 =================================================================
83 System uname: 2.6.15-gentoo-r1 i686 Intel(R) Xeon(TM) CPU 3.00GHz
84 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port
85 3632) [disabled]
86 dev-lang/python: 2.4.2
87 sys-apps/sandbox: 1.2.12
88 sys-devel/autoconf: 2.13, 2.59-r7
89 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
90 sys-devel/binutils: 2.16.1
91 sys-devel/libtool: 1.5.22
92 virtual/os-headers: 2.6.11-r2
93 ACCEPT_KEYWORDS="x86"
94 AUTOCLEAN="yes"
95 CBUILD="i686-pc-linux-gnu"
96 CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
97 CHOST="i686-pc-linux-gnu"
98 CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
99 /usr/share/config /var/qmail/control"
100 CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
101 CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
102 DISTDIR="/usr/portage/distfiles"
103 FEATURES="autoconfig distlocks sandbox sfperms strict"
104 GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
105 http://gentoo.inode.at http://gentoo.ngi.it "
106 MAKEOPTS="-j3"
107 PKGDIR="/usr/portage/packages/cross/x86_64-pc-linux-gnu"
108 PORTAGE_TMPDIR="/var/tmp/cross/x86_64-pc-linux-gnu"
109 PORTDIR="/usr/portage"
110 PORTDIR_OVERLAY="/usr/local/portage"
111 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
112 USE="x86 apache2 apm arts avi bash-completion berkdb bitmap-fonts
113 bzip2 cli crypt cups curl dri eds emboss encode esd expat foomaticdb
114 fortran gd gdbm gif gpm gstreamer gtk2 idn imlib ipv6 isdnlog java
115 jpeg junit libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl
116 nptlonly ogg opengl oss pam pcre pdflib perl php png postgres pppd
117 python quicktime readline reflection sdl session snmp spell spl ssl
118 tcpd truetype truetype-fonts type1-fonts udev usb vorbis xml xml2 xmms
119 xorg xv zlib userland_GNU kernel_linux elibc_glibc"
120 Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
121
122
123 Did I miss a step?
124 thanks
125 maxxer
126
127 --
128 gentoo-amd64@g.o mailing list

Replies

Subject Author
[gentoo-amd64] Re: cross compiling with distcc Lorenzo Milesi <lorenzo.milesi@×××××.com>