Re: failed to compile rt-sched

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

 



On Mon, Nov 28, 2016 at 7:42 PM, Sebastian Andrzej Siewior
<bigeasy@xxxxxxxxxxxxx> wrote:
> On 2016-11-28 15:13:02 [+0530], $rik@nth  wrote:
>> Hi All,
> Hi,
>
> I suggest to set a proper From: in your mail client.
>
>> 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);
>
> It works here:
> aarch64-linux-gnu-gcc -D VERSION=1.0 -c src/lib/rt-sched.c -Wall
> -Wno-nonnull -O2 -D_GNU_SOURCE -Isrc/include -o bld/rt-sched.o
>
> with gcc version 6.2.1 20161124 (Debian 6.2.1-5).
> I assume your toolchain is too old. __NR_sched_setattr was added in
> v3.14 so I assume your kernel headers are pre v3.14.
That makes sense.. mine is having little old gcc. But strange thing,
Why 32bit compiler is not returning such error.
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4
aarch64-linux-gnu-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4
>
> Sebastian



-- 
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