Gentoo Archives: gentoo-user

From: DK Smith <dks@××××××××.com>
To: gentoo-embedded@l.g.o, gentoo-user@l.g.o
Subject: [gentoo-user] ld error and multilib question
Date: Mon, 18 Feb 2008 07:41:02
Message-Id: 47B93680.7050705@mediaweb.com
1 Hello,
2
3 I'm compiling a kernel for arch "Intel EM64T" on an amd64 host. I
4 encountered a ld error such as this:
5
6 LD arch/x86_64/boot/compressed/vmlinux
7 ld: i386:x86-64 architecture of input file \
8 `arch/x86_64/boot/compressed/head.o' is incompatible with i386 output
9 make[2]: *** [arch/x86_64/boot/compressed/vmlinux] Error 1
10
11
12 Would the build instructions for a 32-bit only driver produce this error?
13
14 With regard to the package mgmt facility on Gentoo, does the "local USE
15 flag", "multilib" not necessarily work when emerging gcc? I tried adding
16 that to my /etc/portage/package.use file and did not notice a difference
17 when re-running emerge. I also tried to add it to /etc/make.conf, which
18 did not seem to make a difference, either.
19
20 Perhaps I need to do the stuff mentioned in "Gentoo Embedded Handbook"
21 with respect to the program "crossdev"? Any general advice or related
22 links will be greatly appreciated.
23
24 Below, I've included the top bits of my `emerge --info`.
25
26 Cheers,
27 DK
28
29
30 $ emerge --info
31 Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2,
32 glibc-2.6.1-r0, 2.6.18-gentoo-r6 x86_64)
33 =================================================================
34 System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
35 Timestamp of tree: Mon, 18 Feb 2008 04:30:01 +0000
36 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port
37 3632) [disabled]
38 ccache version 2.4 [enabled]
39 app-shells/bash: 3.2_p17-r1
40 dev-java/java-config: 1.3.7, 2.0.33-r1
41 dev-lang/python: 2.4.4-r6
42 dev-python/pycrypto: 2.0.1-r6
43 dev-util/ccache: 2.4-r7
44 sys-apps/baselayout: 1.12.10-r5
45 sys-apps/sandbox: 1.2.18.1-r2
46 sys-devel/autoconf: 2.13, 2.61-r1
47 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
48 sys-devel/binutils: 2.18-r1
49 sys-devel/gcc-config: 1.4.0-r4
50 sys-devel/libtool: 1.5.24
51 virtual/os-headers: 2.6.23-r3
52 ACCEPT_KEYWORDS="amd64"
53 CBUILD="x86_64-pc-linux-gnu"
54 CFLAGS="-march=k8 -pipe -O2"
55 CHOST="x86_64-pc-linux-gnu"
56 CXXFLAGS="-march=k8 -pipe -O2"
57 DISTDIR="/usr/portage/distfiles"
58 FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict
59 unmerge-orphans userfetch"
60 GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/
61 http://distro.ibiblio.org/pub/linux/distributions/gentoo/
62 http://gentoo.arcticnetwork.ca/"
63 MAKEOPTS="-j2"
64 PKGDIR="/usr/portage/packages"
65 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
66 --compress --force --whole-file --delete --stats --timeout=180
67 --exclude=/distfiles --exclude=/local --exclude=/packages"
68 PORTAGE_TMPDIR="/var/tmp"
69 PORTDIR="/usr/portage"
70 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
71 USE="X acl acpi alsa amd64 apache2 arts bash-completion berkdb
72 bitmap-fonts bootsplash browserplugin bzip2 cairo cdr cli cracklib crypt
73 cups dbus doc dri dvd dvdr dvdread eds emboss encode esd evo fam firefox
74 fortran gd gdbm gif gnome gpm gstreamer gtk hal iconv ieee1394
75 imagemagick ipv6 isdnlog java jpeg kde kerberos mad midi mikmod mmx
76 modperl mp3 mpeg mudflap mysql ncurses nls nptl nptlonly offensive ogg
77 opengl openmp oss pam pcre pdf perl php plotutils png postgres pppd
78 python qt3 qt3support qt4 quicktime readline reflection samba sdl
79 session spell spl sse sse2 ssl svg tcl tcpd tiff tk truetype
80 truetype-fonts type1-fonts unicode vorbis wma wxwindows xml xorg xv xvid
81 zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
82 dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
83 linear meter mulaw multi null plug rate route share shm softvol"
84 APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon
85 authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default
86 authz_groupfile authz_host authz_owner authz_user autoindex cache dav
87 dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter
88 file_cache filter headers ident imagemap include info log_config logio
89 mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer
90 proxy_connect proxy_http rewrite setenvif so speling status unique_id
91 userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard
92 mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
93 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia
94 vesa fbdev"
95
96 --
97 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] Re: [gentoo-embedded] ld error and multilib question Mike Frysinger <vapier@g.o>