[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Improving Performance



Hi Michael,

>> git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git

> Fails with:
>
> schmitz@hobbes:~/kexec-tools$ make
> gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include
> -I./util_lib/include -Iinclude/  -I./kexec/arch/m68k/include  -c -MD -o
> kexec/kexec.o kexec/kexec.c
> In file included from kexec/kexec.c:44:
> kexec/kexec-syscall.h:52:2: #error Unknown processor architecture. Needs a
> kexec_load syscall number.
> In file included from kexec/kexec.c:44:

Strange.

> kexec/kexec-syscall.h: In function `kexec_load':
> kexec/kexec-syscall.h:61: error: `__NR_kexec_load' undeclared (first use in
> this function)
> kexec/kexec-syscall.h:61: error: (Each undeclared identifier is reported
> only once
> kexec/kexec-syscall.h:61: error: for each function it appears in.)
> make: *** [kexec/kexec.o] Error 1
>
> (no syscall no. defined in the kernel headers).

Hmm, I probably used a unistd.h that did have the syscall number defined,
cfr. below.

> In file included from kexec/arch/m68k/kexec-m68k.c:19:
> kexec/arch/m68k/bootinfo.h:12: error: syntax error before "__be16"

> Missing typedefs for __u16, __u32, __be16 and __be32  (the former two being
> present in /usr/include/asm/types.h but not picked up from there). Patch
> attached as well - may be harmful on more recent m68k installations.

I did intend this to be used with recent kernel headers, as created by
"make headers_install" for v3.14-rc1 and later.

That was BTW my main motivation to clean up <asm/bootinfo.h>: before
v3.14-rc1, "make headers_install" would install <asm/bootinfo.h> at
all, so you had to rely on the very old version from glibc-headers.

I'll look in the preprocessor issue later.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


Reply to: