1 |
Howdy! I'm trying to perform a Gentoo install in a VM (KVM), and I seem |
2 |
to have a problem building grub. It fails in the configure process like |
3 |
this: |
4 |
|
5 |
checking for i686-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc -m32 |
6 |
checking for C compiler default output file name... a.out |
7 |
checking whether the C compiler works... configure: error: in |
8 |
`/var/tmp/portage/sys-boot/grub-0.97-r9/work/grub-0.97': |
9 |
configure: error: cannot run C compiled programs. |
10 |
If you meant to cross compile, use `--host'. |
11 |
|
12 |
I thought that was pretty odd. I also discovered that glibc won't build |
13 |
correctly, with this: |
14 |
|
15 |
make[2]: *** |
16 |
[/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] |
17 |
Illegal instruction |
18 |
make[2]: *** Waiting for unfinished jobs.... |
19 |
mkdir |
20 |
/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc |
21 |
CPP='x86_64-pc-linux-gnu-gcc -E -x c-header' |
22 |
/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 |
23 |
--library-path |
24 |
/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl |
25 |
/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen |
26 |
-Y ../scripts -h rpcsvc/bootparam_prot.x -o |
27 |
/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T |
28 |
make[2]: *** |
29 |
[/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] |
30 |
Illegal instruction |
31 |
make[2]: Leaving directory |
32 |
`/var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/glibc-2.10.1/sunrpc' |
33 |
make[1]: *** [sunrpc/others] Error 2 |
34 |
|
35 |
I'm wondering what is going on. Is it a problem of 64 bit vs. 32 bit? |
36 |
The dom0 is 64-bit Gentoo, and things look OK to my in my emerge --info: |
37 |
|
38 |
(chroot) livecd / # emerge --info |
39 |
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, |
40 |
glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64) |
41 |
================================================================= |
42 |
System uname: |
43 |
Linux-2.6.31-gentoo-r6-x86_64-QEMU_Virtual_CPU_version_0.12.1-with-gentoo-1.12.13 |
44 |
Timestamp of tree: Sat, 16 Jan 2010 23:00:01 +0000 |
45 |
app-shells/bash: 4.0_p35 |
46 |
dev-lang/python: 2.6.4 |
47 |
sys-apps/baselayout: 1.12.13 |
48 |
sys-apps/sandbox: 1.6-r2 |
49 |
sys-devel/autoconf: 2.63-r1 |
50 |
sys-devel/automake: 1.9.6-r2, 1.10.2 |
51 |
sys-devel/binutils: 2.18-r3 |
52 |
sys-devel/gcc-config: 1.4.1 |
53 |
sys-devel/libtool: 2.2.6b |
54 |
virtual/os-headers: 2.6.27-r2 |
55 |
ACCEPT_KEYWORDS="amd64" |
56 |
CBUILD="x86_64-pc-linux-gnu" |
57 |
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2" |
58 |
CHOST="x86_64-pc-linux-gnu" |
59 |
CONFIG_PROTECT="/etc" |
60 |
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d |
61 |
/etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo |
62 |
/etc/udev/rules.d" |
63 |
CXXFLAGS="" |
64 |
DISTDIR="/usr/portage/distfiles" |
65 |
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox |
66 |
sfperms strict unmerge-orphans userfetch" |
67 |
GENTOO_MIRRORS="ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ |
68 |
" |
69 |
LDFLAGS="-Wl,-O1" |
70 |
LINGUAS="en en_US" |
71 |
MAKEOPTS="-j3" |
72 |
PKGDIR="/usr/portage/packages" |
73 |
PORTAGE_CONFIGROOT="/" |
74 |
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
75 |
--compress --force --whole-file --delete --stats --timeout=180 |
76 |
--exclude=/distfiles --exclude=/local --exclude=/packages" |
77 |
PORTAGE_TMPDIR="/var/tmp" |
78 |
PORTDIR="/usr/portage" |
79 |
SYNC="rsync://rsync.gentoo.org/gentoo-portage" |
80 |
USE="64bit acl additions amd64 apache2 authdaemond avahi bash-completion |
81 |
berkdb branding bzip2 caps cddb cdparanoia cdr cli courier cpudetection |
82 |
cracklib crypt cups cxx dbus dcraw dri exif fam fortran ftp gd gdbm gpm |
83 |
hal iconv id3tag imap java kpathsea mmx modules mudflap multilib mysql |
84 |
ncurses netpbm nls nptl nptlonly openmp pam pcre perl php postfix |
85 |
postscript ppds pppd python quotes readline reflection regex replytolist |
86 |
samba sasl session slp spamassassin spl sse sse2 ssl |
87 |
startup-notification subversion symlink sysfs tcpd tetex tk tokenizer |
88 |
unicode unzip vditool vim-syntax xorg zip zlib" ALSA_CARDS="ali5451 |
89 |
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 |
90 |
es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident |
91 |
usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw |
92 |
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug |
93 |
ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route |
94 |
share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias |
95 |
authn_anon authn_dbm authn_default authn_file authz_dbm authz_default |
96 |
authz_groupfile authz_host authz_owner authz_user autoindex cache dav |
97 |
dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache |
98 |
filter headers include info log_config logio mem_cache mime mime_magic |
99 |
negotiation rewrite setenvif speling status unique_id userdir usertrack |
100 |
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" |
101 |
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 |
102 |
lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" |
103 |
USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv |
104 |
r128 radeon savage sis tdfx trident vesa via vmware voodoo" |
105 |
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, |
106 |
LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, |
107 |
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
108 |
|
109 |
This is very strange to me, so if anybody can give me a pointer, I'd be |
110 |
very appreciative! |