failed to compile rt-sched

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

 



Hi All,

I am trying to cross compile rt-tests on Ubuntu with 64bit cross gcc
tool chain and ended up with below error (Able to compile successfully
with 32bit tool chain). Can someone help clarifying the below error?
Is this the issue with syscalls or with linux kernel version. How to
get it compile successfully for 64bit ARCH.

aarch64-linux-gnu-gcc-4.8 -D VERSION=1.0 -c src/lib/rt-sched.c -Wall
-Wno-nonnull -O2 -D_GNU_SOURCE -Isrc/include -o bld/rt-sched.o
src/lib/rt-sched.c: In function âsched_setattrâ:
src/lib/rt-sched.c:34:17: error: â__NR_sched_setattrâ undeclared
(first use in this function)
  return syscall(__NR_sched_setattr, pid, attr, flags);
                 ^
src/lib/rt-sched.c:34:17: note: each undeclared identifier is reported
only once for each function it appears in
src/lib/rt-sched.c: In function âsched_getattrâ:
src/lib/rt-sched.c:42:24: error: â__NR_sched_getattrâ undeclared
(first use in this function)
         return syscall(__NR_sched_getattr, pid, attr, size, flags);
                        ^
src/lib/rt-sched.c: In function âsched_setattrâ:
src/lib/rt-sched.c:35:1: warning: control reaches end of non-void
function [-Wreturn-type]
 }
 ^
src/lib/rt-sched.c: In function âsched_getattrâ:
src/lib/rt-sched.c:43:1: warning: control reaches end of non-void
function [-Wreturn-type]
 }
 ^
make: *** [bld/rt-sched.o] Error 1


-- 
Thanks & Regards,
M.Srikanth Kumar.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux