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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
coroutine backend ucontext
>>> host-qemu 1.2.0 Building
/usr/bin/make -j8 -C /home/fdkit/buildroot/output/build/host-qemu-1.2.0 all
make[1]: Entering directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
  GEN   arm-linux-user/config-devices.mak
  GEN   config-host.h
  GEN   trace.h
  GEN   qmp-commands.h
  GEN   qapi-types.h
  GEN   qemu-options.def
  GEN   qapi-visit.h
  GEN   tests/test-qapi-types.h
  GEN   tests/test-qapi-visit.h
  GEN   tests/test-qmp-commands.h
  GEN   config-all-devices.mak
make[1]: Leaving directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
make[1]: Entering directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
  GEN   qemu-options.texi
  GEN   qemu-monitor.texi
  GEN   qemu-img-cmds.texi
  GEN   qemu-tech.html
  GEN   qemu-nbd.8
  GEN   QMP/qmp-commands.txt
  CC    qemu-bridge-helper.o
  CC    qemu-log.o
  CC    qint.o
  CC    qstring.o
  CC    qdict.o
  CC    qlist.o
  CC    qfloat.o
  CC    qbool.o
  CC    qjson.o
  CC    json-lexer.o
  CC    json-streamer.o
  CC    json-parser.o
  CC    qerror.o
  CC    error.o
  CC    qemu-error.o
  CC    qom/object.o
  CC    qom/container.o
  CC    qom/qom-qobject.o
  GEN   qapi-types.c
  GEN   qapi-visit.c
  CC    qapi/qapi-visit-core.o
  CC    qapi/qapi-dealloc-visitor.o
  CC    qapi/qmp-input-visitor.o
  CC    qapi/qmp-output-visitor.o
  CC    qapi/qmp-registry.o
  CC    qapi/qmp-dispatch.o
  CC    qapi/string-input-visitor.o
  CC    qapi/string-output-visitor.o
  CC    qapi/opts-visitor.o
  GEN   trace.c
  CC    trace/default.o
  CC    trace/control.o
  GEN   qemu-doc.html
  CC    libdis-user/arm-dis.o
  CC    libuser/envlist.o
  CC    libdis-user/i386-dis.o
  GEN   qemu.1
  GEN   qemu-img.1
  LINK  qemu-bridge-helper
  CC    qapi-types.o
  CC    libuser/path.o
  CC    qapi-visit.o
  CC    trace.o
  CC    libuser/tcg-runtime.o
  CC    libuser/host-utils.o
  CC    libuser/cutils.o
  CC    libuser/iov.o
  CC    libuser/cache-utils.o
  CC    libuser/module.o
  CC    libuser/qemu-user.o
  GEN   trace.c
  CC    libuser/trace/default.o
  CC    libuser/trace/control.o
  CC    libuser/qom/cpu.o
  CC    libuser/trace.o
  GEN   config-target.h
  CC    arm-linux-user/exec.o
  CC    arm-linux-user/translate-all.o
  CC    arm-linux-user/cpu-exec.o
  CC    arm-linux-user/tcg/tcg.o
  CC    arm-linux-user/tcg/optimize.o
  CC    arm-linux-user/disas.o
  GEN   arm-linux-user/gdbstub-xml.c
  CC    arm-linux-user/fpu/softfloat.o
  CC    arm-linux-user/gdbstub.o
  CC    arm-linux-user/thunk.o
  CC    arm-linux-user/user-exec.o
  CC    arm-linux-user/osdep.o
  CC    arm-linux-user/oslib-posix.o
  CC    arm-linux-user/qemu-thread-posix.o
  CC    arm-linux-user/linux-user/main.o
  CC    arm-linux-user/linux-user/syscall.o
  CC    arm-linux-user/linux-user/strace.o
  CC    arm-linux-user/linux-user/mmap.o
  CC    arm-linux-user/linux-user/signal.o
  CC    arm-linux-user/linux-user/elfload.o
  CC    arm-linux-user/linux-user/linuxload.o
  CC    arm-linux-user/linux-user/uaccess.o
  CC    arm-linux-user/linux-user/cpu-uname.o
  CC    arm-linux-user/linux-user/flatload.o
  CC    arm-linux-user/target-arm/arm-semi.o
  CC    arm-linux-user/target-arm/translate.o
  CC    arm-linux-user/target-arm/op_helper.o
  CC    arm-linux-user/target-arm/helper.o
  CC    arm-linux-user/target-arm/cpu.o
  CC    arm-linux-user/target-arm/neon_helper.o
  CC    arm-linux-user/target-arm/iwmmxt_helper.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cpdo.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cpdt.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cprt.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpopcode.o
  CC    arm-linux-user/linux-user/arm/nwfpe/single_cpdo.o
  CC    arm-linux-user/linux-user/arm/nwfpe/double_cpdo.o
  CC    arm-linux-user/linux-user/arm/nwfpe/extended_cpdo.o
  CC    arm-linux-user/gdbstub-xml.o
  LINK  arm-linux-user/qemu-arm
make[1]: Leaving directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
>>> host-qemu 1.2.0 Installing to host directory
/usr/bin/make -j8 -C /home/fdkit/buildroot/output/build/host-qemu-1.2.0 install
make[1]: Entering directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/share/doc/qemu"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/share/qemu"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/etc/qemu"
install -c -m 0644 qemu-doc.html  qemu-tech.html "/home/fdkit/buildroot/output/host/usr/share/doc/qemu"
install -c -m 0644 /home/fdkit/buildroot/output/build/host-qemu-1.2.0/sysconfigs/target/target-x86_64.conf "/home/fdkit/buildroot/output/host/usr/etc/qemu"
install -c -m 0644 QMP/qmp-commands.txt "/home/fdkit/buildroot/output/host/usr/share/doc/qemu"
install -c -m 0644 /home/fdkit/buildroot/output/build/host-qemu-1.2.0/sysconfigs/target/cpus-x86_64.conf "/home/fdkit/buildroot/output/host/usr/share/qemu"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/share/man/man1"
install -c -m 0644 qemu.1 qemu-img.1 "/home/fdkit/buildroot/output/host/usr/share/man/man1"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/share/man/man8"
install -c -m 0644 qemu-nbd.8 "/home/fdkit/buildroot/output/host/usr/share/man/man8"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/bin"
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/libexec"
install -c -m 0755  qemu-bridge-helper "/home/fdkit/buildroot/output/host/usr/libexec"
set -e; for x in bios.bin sgabios.bin vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom qemu-icon.bmp bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb multiboot.bin linuxboot.bin kvmvapic.bin s390-zipl.rom spapr-rtas.bin slof.bin palcode-clipper; do \
        install -c -m 0644 /home/fdkit/buildroot/output/build/host-qemu-1.2.0/pc-bios/$x "/home/fdkit/buildroot/output/host/usr/share/qemu"; \
done
install -d -m 0755 "/home/fdkit/buildroot/output/host/usr/share/qemu/keymaps"
set -e; for x in da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr bepo; do \
        install -c -m 0644 /home/fdkit/buildroot/output/build/host-qemu-1.2.0/pc-bios/keymaps/$x "/home/fdkit/buildroot/output/host/usr/share/qemu/keymaps"; \
done
for d in arm-linux-user; do \
make -C $d install || exit 1 ; \
        done
make[2]: Entering directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0/arm-linux-user'
install -m 755 qemu-arm "/home/fdkit/buildroot/output/host/usr/bin"
strip "/home/fdkit/buildroot/output/host/usr/bin/qemu-arm"
make[2]: Leaving directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0/arm-linux-user'
make[1]: Leaving directory `/home/fdkit/buildroot/output/build/host-qemu-1.2.0'
>>> perl 5.16.1 Configuring
rm -f /home/fdkit/buildroot/output/build/perl-5.16.1/config.sh
(cd /home/fdkit/buildroot/output/build/perl-5.16.1; ./Configure -des -Dusecrosscompile -Dtargetrun=/home/fdkit/buildroot/output/host/usr/bin/qemu-arm -Dqemulib=/home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot -Dar="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-ar" -Dcc="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-gcc" -Dcpp="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-gcc" -Dld="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-ld" -Dnm="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-nm" -Dranlib="/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-ranlib" -Dccflags="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -O2 " -Dldflags=" -lgcc_s -lm" -Dlddlflags="-shared" -Dlibc=/home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so -Duseshrplib -Dprefix=/usr -Uoptimize)
First let's make sure your kit is complete.  Checking...
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Guessing incpth '/home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include-fixed /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/../../../../arm-openmandriva-linux-gnueabi/include /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include'.
Guessing libpth '/home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include-fixed /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/../../../../arm-openmandriva-linux-gnueabi/lib /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib'.
Using targetarch /home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi.
Using incpth '/home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include-fixed /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/../../../../arm-openmandriva-linux-gnueabi/include /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include'.
Using libpth '/home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include-fixed /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/../../../../arm-openmandriva-linux-gnueabi/lib /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib'.
Guessing usrinc /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include.
Using targethost dummy.
Guessing targetdir /tmp.
Guessing targetuser root.
Using '/home/fdkit/buildroot/output/build/perl-5.16.1/Cross/run-qemu-arm' for remote execution,
and ':' and ':'
for remote file transfer.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1           dragonfly       irix_6_0        opus          super-ux
aix           dynix           irix_6_1        os2           svr4
aix_3         dynixptx        isc             os390         svr5
aix_4         epix            isc_2           os400         ti1500
altos486      esix4           linux           posix-bc      titanos
amigaos       fps             lynxos          powerux       ultrix_4
atheos        freebsd         midnightbsd     qnx           umips
aux_3         genix           mips            rhapsody      unicos
beos          gnu             mirbsd          riscos        unicosmk
bsdos         gnukfreebsd     mpc             sco           unisysdynix
catamount     gnuknetbsd      mpeix           sco_2_3_0     utekv
convexos      greenhills      ncr_tower       sco_2_3_1     uts
cxux          haiku           netbsd          sco_2_3_2     uwin
cygwin        hpux            newsos4         sco_2_3_3     vmesa
darwin        i386            next_3          sco_2_3_4     vos
dcosx         interix         next_3_0        solaris_2
dec_osf       irix_4          next_4          stellar
dgux          irix_5          nonstopux       sunos_4_0
dos_djgpp     irix_6          openbsd         sunos_4_1
Which of these apply, if any? [openmandriva-linux-gnueabi]
hint to use instead? [openmandriva-linux-gnueabi]
Operating system name? [openmandriva-linux-gnueabi]
Operating system version? [none]
Installation prefix to use? (~name ok) [/usr]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr]
Getting the current patchlevel...
Build a threading Perl? [n]
Build Perl for multiplicity? [n]
Use which C compiler?
[/home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-gcc]
Checking for GNU cc in disguise and/or its version number...
FATAL: kernel too old
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/include-fixed /home/fdkit/linaro/crosstool-ng/install/lib/gcc/arm-openmandriva-linux-gnueabi/4.7.3/../../../../arm-openmandriva-linux-gnueabi/lib /home/fdkit/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib]
What is the file extension used for shared libraries? [so]
Build Perl for SOCKS? [n]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -ldbm -ldb -ldl -lm -lcrypt -lutil -lc]
What optimizer/debugger flag should be used? [none]
Any additional cc flags?
[-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O2]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)? [ -lgcc_s -lm]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

        /home/fdkit/buildroot/output/host/usr/bin/arm-openmandriva-linux-gnueabi-gcc -o try -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O2 -lgcc_s -lm try.c -lnsl -lgdbm -ldbm -ldb -ldl -lm -lcrypt -lutil -lc
        /home/fdkit/buildroot/output/build/perl-5.16.1/Cross/run-qemu-arm ./try

and I got the following output:

FATAL: kernel too old
The program compiled OK, but exited with status 1.
You have a problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.
make: *** [/home/fdkit/buildroot/output/build/perl-5.16.1/.stamp_configured] Error 1
[fdkit@kvm-host buildroot]$ ^C
[fdkit@kvm-host buildroot]$ make menuconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'