Wind River Support Network

HomeDefectsLIN7-4156
Fixed

LIN7-4156 : WRL 7 SDK issue fatal error: asm/ioctls.h: No such file or directory

Created: Jun 30, 2015    Updated: Sep 8, 2018
Resolved Date: Jul 15, 2015
Found In Version: 7.0
Fix Version: 7.0.0.8
Severity: Severe
Applicable for: Wind River Linux 7
Component/s: Host Tools

Description

$ /wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_core --enable-bootimage=hdd,tar.bz2 --with-bootimage-space=1024 --enable-checkout-all-layers=yes --enable-reconfig --enable-rm-oldimgs=yes --with-template=feature/initramfs,feature/kexec,feature/kdump --enable-patchresolve=noop --enable-internet-download=yes --with-init=sysvinit --with-rcpl-version=0005
$ make
$ make export-sdk
$ export/wrlinux-7.0.0.5-glibc-x86_64-intel_x86_64-wrlinux-image-glibc-core-sdk.sh
$ cd /sdks/7.0.0.5-intel-x86-64/
$ source ./env.sh
$ cat hello.c
#include <stdio.h>
#include <sys/ioctl.h>
int main(void)
{
printf("hello\n");
return 0;
}
$ $CC hello.c
In file included from /sdks/7.0.0.5-intel-x86-64-core/sysroots/core2-64-wrs-linux/usr/include/sys/ioctl.h:26:0,
from hello.c:2:
/sdks/7.0.0.5-intel-x86-64-core/sysroots/core2-64-wrs-linux/usr/include/bits/ioctls.h:23:24: fatal error: asm/ioctls.h: No such file or directory
#include <asm/ioctls.h>
^
compilation terminated.

Workaround

None

Steps to Reproduce

$ /wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_core --enable-bootimage=hdd,tar.bz2 --with-bootimage-space=1024 --enable-checkout-all-layers=yes --enable-reconfig --enable-rm-oldimgs=yes --with-template=feature/initramfs,feature/kexec,feature/kdump --enable-patchresolve=noop --enable-internet-download=yes --with-init=sysvinit --with-rcpl-version=0005
$ make
$ make export-sdk
$ export/wrlinux-7.0.0.5-glibc-x86_64-intel_x86_64-wrlinux-image-glibc-core-sdk.sh
$ cd /sdks/7.0.0.5-intel-x86-64/
$ source ./env.sh
$ cat hello.c
#include <stdio.h>
#include <sys/ioctl.h>
int main(void)
{
printf("hello\n");
return 0;
}
$ $CC hello.c
In file included from /sdks/7.0.0.5-intel-x86-64-core/sysroots/core2-64-wrs-linux/usr/include/sys/ioctl.h:26:0,
from hello.c:2:
/sdks/7.0.0.5-intel-x86-64-core/sysroots/core2-64-wrs-linux/usr/include/bits/ioctls.h:23:24: fatal error: asm/ioctls.h: No such file or directory
#include <asm/ioctls.h>
^
compilation terminated.

Other Downloads


Live chat
Online