On 2015/8/3 18:08, Li Wang wrote: > Hi, > > On Sat, Aug 1, 2015 at 9:18 AM, Cui Bixuan <cuibix...@huawei.com > <mailto:cuibix...@huawei.com>> 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 msgrcv08.c -o msgrcv08 > > > > It works for me, but I know it's not appropriate for LTP management. > > > > What should I do? or, Is there any good way to solve this problem? > Hi, > For LTP, we can run './configure CC=[SDK-32]; make;' to compile > 32-bit testcases. > So, I think, if the case 'msgrcv08.c' will not work as 64-bit > application, it can check the > SDK first. And do 'TCONF: not gcc32' if it's 64-bit application. > > > Thanks for review. Do u know how to check the SDK first in msgrcv08.c file? :-) Check glib32 or glib64 in test system will be better, I think. Then the case will only work in 32-bit system. Thanks,
Cui Bixuan > > For me, LTP always running on 64-bit system. So I wanted to run this case > with others(msgrcv0*[1-7}) at the same time. seems like it's very difficult > to achieve. > > > > It's not a good idea that ipc/msgrcv/Makefile to control it, I mean, > LTP user to control > it in ./configure which will be better. > > > What do you think? > > > Agree, it's not wise to control the case by Makefile. and, it's easy to get > TCONF but hard to get it work. > I agree with "the right solution is to make the test exit with TCONF when compiled for 64bit". > > Thanks, > Cui Bixuan > > > > > Thanks~ > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net <mailto:Ltp-list@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/ltp-list > > > > > -- > Regards, > Li Wang > Email: liw...@redhat.com <mailto:liw...@redhat.com> ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list