Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Li Wang
Hi, On Mon, Aug 3, 2015 at 7:48 PM, Cyril Hrubis wrote: > Hi! > > Yes, you are right. > > > > But I hope to finish the 'msgrcv08' test by LTP automatically. To > > recompile the whole LTP-Lib in 32-bit only for this one case is not my > > expected. I tend to give up the testcase if we don't ha

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Cui Bixuan
On 2015/8/3 18:08, Li Wang wrote: > Hi, > > On Sat, Aug 1, 2015 at 9:18 AM, Cui Bixuan > wrote: > > On 2015/7/31 14:24, Li Wang wrote: > > > Then, I came up with a idea that I don't include the ltp-lib file in > 'msgrcv08.c', > > and just add two lines

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Cyril Hrubis
Hi! > Yes, you are right. > > But I hope to finish the 'msgrcv08' test by LTP automatically. To > recompile the whole LTP-Lib in 32-bit only for this one case is not my > expected. I tend to give up the testcase if we don't have any other way. > :( This is not how this works. You have to compi

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Li Wang
Hi, On Mon, Aug 3, 2015 at 4:39 PM, Cyril Hrubis wrote: > Hi! > > # make > > make -C ../lib -f > "/mnt/tests/kernel/distribution/ltp/generic/ltp-full-20150420/testcases/kernel/syscalls/ipc/msgrcv/../lib/Makefile" > all > > make[1]: Entering directory > `/mnt/tests/kernel/distribution/ltp/generic

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Li Wang
Hi, On Sat, Aug 1, 2015 at 9:18 AM, Cui Bixuan wrote: > On 2015/7/31 14:24, Li Wang wrote: > > > Then, I came up with a idea that I don't include the ltp-lib file in > 'msgrcv08.c', > > and just add two lines in the .../ipc/msgrcv/Makefile: > > > > msgrcv08: > > gcc -g -O2 -Wall -m32 msg

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Cyril Hrubis
Hi! > # make > make -C ../lib -f > "/mnt/tests/kernel/distribution/ltp/generic/ltp-full-20150420/testcases/kernel/syscalls/ipc/msgrcv/../lib/Makefile" > all > make[1]: Entering directory > `/mnt/tests/kernel/distribution/ltp/generic/ltp-full-20150420/testcases/kernel/syscalls/ipc/lib' > make[1]:

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-31 Thread Cui Bixuan
On 2015/7/31 14:24, Li Wang wrote: > Then, I came up with a idea that I don't include the ltp-lib file in > 'msgrcv08.c', > and just add two lines in the .../ipc/msgrcv/Makefile: > > msgrcv08: > gcc -g -O2 -Wall -m32 msgrcv08.c -o msgrcv08 > > It works for me, but I know it's not appro

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-31 Thread Li Wang
The program is here. msgrcv08.c --- /* * Copyright (c) 2015 Author: Gabriellla Schmidt * Modify: Li Wang * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * publish

[LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-30 Thread Li Wang
Hi all, I am going to add a new testcase: ltp/testcases/kernel/syscalls/ipc/msgrcv/msgrcv08.c for regression test. But the key point is that this program 'msgrcv08.c' should be compiled into 32-bit, if it is compiled as 64-bit application it doesn't work. So, I try to add one line in the ..