Gentoo Archives: gentoo-user

From: Bo Andresen <bo.andresen@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error
Date: Thu, 23 Feb 2006 23:32:45
Message-Id: 200602240025.30581.bo.andresen@gmail.com
In Reply to: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error by "Boyd Stephen Smith Jr."
1 On Thursday 23 February 2006 23:33, Boyd Stephen Smith Jr. wrote:
2 > On Thursday 23 February 2006 15:56, Bo Andresen <bo.andresen@×××××.com>
3 > > > A 64-bit kernel will run 32-bit binaries fine... Um, there may be a
4 > > > needed kernel option though... CONFIG_IA32_EMUL? Anyone?
5 > >
6 > > I cannot seem to find any such kernel config option.
7 >
8 > I think these are relevant:
9 > $ zgrep -i ia32 /proc/config.gz
10 > CONFIG_IA32_EMULATION=y
11 > CONFIG_IA32_AOUT=y
12
13 I cannot find those options.
14
15 ~ # zcat /proc/config.gz | grep -i '32\|k8'
16 CONFIG_X86_32=y
17 CONFIG_INIT_ENV_ARG_LIMIT=32
18 CONFIG_MK8=y
19 # CONFIG_SCSI_QLA2322 is not set
20 # CONFIG_SCSI_NSP32 is not set
21 # CONFIG_PCNET32 is not set
22 # CONFIG_USB_SERIAL_MCT_U232 is not set
23 # CONFIG_NLS_CODEPAGE_932 is not set
24 CONFIG_CRYPTO_CRC32C=m
25 CONFIG_CRC32=y
26 CONFIG_LIBCRC32C=m
27
28 I notice CONFIG_X86_32=y but cannot figure out where to change that in make
29 menuconfig. Typing /X86_32 just gives this as a search result:
30
31 Symbol: X86_32 [=y]
32
33 > > Is there a way to verify that I really
34 > > am running a 64 kernel?
35 >
36 > I believe this tells you:
37 > $ uname -m
38 > x86_64
39
40 ~ # uname -m
41 i686
42
43 > So, you may want to configure, make, and install your kernel like:
44 > make ARCH=x86_64 menuconfig
45 > make ARCH=x86_64
46 > make ARCH=x86_64 install
47 >
48 > (You don't need a CROSS_COMPILE prefix since gcc should work fine.)
49
50 Should I ignore all these warnings?
51
52 # make ARCH=x86_64 menuconfig
53 scripts/kconfig/mconf arch/x86_64/Kconfig
54 #
55 # using defaults found in .config
56 #
57 .config:90:warning: trying to assign nonexistent symbol X86_ELAN
58 .config:91:warning: trying to assign nonexistent symbol X86_VOYAGER
59 .config:93:warning: trying to assign nonexistent symbol X86_SUMMIT
60 .config:94:warning: trying to assign nonexistent symbol X86_BIGSMP
61 .config:96:warning: trying to assign nonexistent symbol X86_GENERICARCH
62 .config:97:warning: trying to assign nonexistent symbol X86_ES7000
63 .config:98:warning: trying to assign nonexistent symbol M386
64 .config:99:warning: trying to assign nonexistent symbol M486
65 .config:100:warning: trying to assign nonexistent symbol M586
66 .config:101:warning: trying to assign nonexistent symbol M586TSC
67 .config:102:warning: trying to assign nonexistent symbol M586MMX
68 .config:103:warning: trying to assign nonexistent symbol M686
69 .config:104:warning: trying to assign nonexistent symbol MPENTIUMII
70 .config:105:warning: trying to assign nonexistent symbol MPENTIUMIII
71 .config:106:warning: trying to assign nonexistent symbol MPENTIUMM
72 .config:107:warning: trying to assign nonexistent symbol MPENTIUM4
73 .config:108:warning: trying to assign nonexistent symbol MK6
74 .config:109:warning: trying to assign nonexistent symbol MK7
75 .config:111:warning: trying to assign nonexistent symbol MCRUSOE
76 .config:112:warning: trying to assign nonexistent symbol MEFFICEON
77 .config:113:warning: trying to assign nonexistent symbol MWINCHIPC6
78 .config:114:warning: trying to assign nonexistent symbol MWINCHIP2
79 .config:115:warning: trying to assign nonexistent symbol MWINCHIP3D
80 .config:116:warning: trying to assign nonexistent symbol MGEODEGX1
81 .config:117:warning: trying to assign nonexistent symbol MCYRIXIII
82 .config:118:warning: trying to assign nonexistent symbol MVIAC3_2
83 .config:119:warning: trying to assign nonexistent symbol X86_GENERIC
84 .config:121:warning: trying to assign nonexistent symbol X86_XADD
85 .config:125:warning: trying to assign nonexistent symbol X86_WP_WORKS_OK
86 .config:126:warning: trying to assign nonexistent symbol X86_INVLPG
87 .config:127:warning: trying to assign nonexistent symbol X86_BSWAP
88 .config:128:warning: trying to assign nonexistent symbol X86_POPAD_OK
89 .config:129:warning: trying to assign nonexistent symbol X86_CMPXCHG64
90 .config:131:warning: trying to assign nonexistent symbol X86_INTEL_USERCOPY
91 .config:132:warning: trying to assign nonexistent symbol X86_USE_PPRO_CHECKSUM
92 .config:140:warning: trying to assign nonexistent symbol X86_UP_APIC
93 .config:141:warning: trying to assign nonexistent symbol X86_UP_IOAPIC
94 .config:145:warning: trying to assign nonexistent symbol X86_MCE_NONFATAL
95 .config:146:warning: trying to assign nonexistent symbol X86_MCE_P4THERMAL
96 .config:147:warning: trying to assign nonexistent symbol TOSHIBA
97 .config:148:warning: trying to assign nonexistent symbol I8K
98 .config:149:warning: trying to assign nonexistent symbol X86_REBOOTFIXUPS
99 .config:160:warning: trying to assign nonexistent symbol NOHIGHMEM
100 .config:161:warning: trying to assign nonexistent symbol HIGHMEM4G
101 .config:174:warning: trying to assign nonexistent symbol REGPARM
102 .config:220:warning: trying to assign nonexistent symbol APM
103 .config:231:warning: trying to assign nonexistent symbol PCI_GOBIOS
104 .config:232:warning: trying to assign nonexistent symbol PCI_GOMMCONFIG
105 .config:233:warning: trying to assign nonexistent symbol PCI_GODIRECT
106 .config:234:warning: trying to assign nonexistent symbol PCI_GOANY
107 .config:1405:warning: trying to assign nonexistent symbol X86_FIND_SMP_CONFIG
108 .config:1406:warning: trying to assign nonexistent symbol X86_MPPARSE
109 .config:1459:warning: trying to assign nonexistent symbol X86_BIOS_REBOOT
110
111 --
112 Bo Andresen
113 --
114 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error "Boyd Stephen Smith Jr." <bss03@××××××××××.com>