Re: [build error] building failed with sample kernel code enabled

From: Zhihua Che
Date: Sun Jun 03 2012 - 10:03:14 EST


2012/6/3 Zhihua Che <zhihua.che@xxxxxxxxx>:
> 2012/6/3 bing deng <deng8bing@xxxxxxxxx>:
>>
>>
>> On Sun, Jun 3, 2012 at 7:23 PM, Zhihua Che <zhihua.che@xxxxxxxxx> wrote:
>>>
>>> 2012/6/3 Zhihua Che <zhihua.che@xxxxxxxxx>:
>>> > Hi,
>>> >
>>> > Â ÂI was building kernel 3.4 with kernel sample code enabled on my
>>> > ubuntu-11.10.
>>> > Â ÂThe steps I followed are:
>>> > Â Âmake O=xxx menuconfig
>>> > Â Âmake O=xxx -j16
>>> > Â ÂBut it failed and complaint the following:
>>> >
>>> > linux/samples/seccomp/bpf-fancy.c:13:27: fatal error: linux/seccomp.h:
>>> > No such file or
>>> >
>>> > directory/home/harvey/open-projects/linux/samples/seccomp/bpf-direct.c:21:27:
>>> > fatal error: linux/seccomp.h: No such file or directory
>>> > compilation terminated.
>>>
>>>
>>> I forgot it. ÂI've checked the existence of seccomp.h. it's in the source
>>> tree.
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>>> Please read the FAQ at Âhttp://www.tux.org/lkml/
>>
>>
>> Are the headerÂlinux/seccomp.h or directoryÂincluded in theÂmake file?
>>
>> Best Regards,
>> Bing
>
>
> I find the LINUXINCLUDE variable in MAKEFILE, it contains the
> directory Âpath 'include' where the linux/seccomp.h is.
> So I guess it's included in the searching path.


Wish this may help.
I build the kernel in another directory other than source directory. I
find in building directory there is no seccomp.h.
Precisely, there is only version.h in builing-dir/include/linux.
I don't think this is right.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/