Hi, On Wed, 2009-02-25 at 10:38 +0100, Francesco RUNDO wrote: > Hi, > > I'm a user of LTP. I use LTP for testing SH based Linux kernel for our > embedded systems. > > I'm using a kernel 2.6.23. > > I've downloaded latest LTP release: ltp-full-20090131.tgz. I've found > the following issues: > > 1) I found some instructions on some LTP Makefiles reporting direct > calls to "gcc" or "g++" instead of using the related env. variables > $(CC) and/or $(CXX). The usage of gcc/g++ hardcoded, didn't allow to > cross-build the related LTP tests. I've done a patch which is attached > to this email ( ltp-full-20090131-allow-cross-build-fix.patch).
Thanks for this. Point out & Fix similar issues in LTP. > > 2) Under $LTP_ROOT/lib/ there are the tlibio.[ch] files which include > some code based on Async IO functionalities. The Async IO is well > supported if LTP was built with glibc but it is not supported by uclibc > as, currently, the uclibc doesn't provide AsyncIO extensions. I think > the code for AsyncIO, have to be placed under "#if !defined > (__UCLIBC__)". I've made a patch to fix it. > (ltp-full-20090131-uclibc-tlibio-aio-fix.patch). Thanks for this too. Merged. Regards-- Subrata > > Please, let me know. > Thanks. > -- > FR > plain text document attachment > (ltp-full-20090131-uclibc-tlibio-aio-fix.patch) > This patch fixes the tlibio.[ch] files building if LTP is compiled for > uclibc. The above files uses a lot of structure "aiocb" which are unsupported > in uclibc and then they have to be reported under #ifdef > Signed-off-by: Francesco Rundo <[email protected]> > --- ltp-full-20090131.source/lib/Makefile 2009-02-18 15:35:52.989996000 > +0000 > +++ ltp-full-20090131/lib/Makefile 2009-02-23 14:51:25.749997000 +0000 > @@ -2,7 +2,7 @@ > PREFIX=/opt/ltp > > CFLAGS+= -Wall > -CFLAGS+= -D_USC_LIB_ > +CFLAGS+= -D_USC_LIB_ -D__UCLIBC__ > CPPFLAGS+= -I../include > ifeq ($(shell uname -s),HP-UX) > CFLAGS+=-Ae -D_LARGEFILE64_SOURCE +DA1.1 > --- ltp-full-20090131.source/lib/tlibio.c 2009-02-18 15:35:53.420004000 > +0000 > +++ ltp-full-20090131/lib/tlibio.c 2009-02-24 10:03:24.070007000 +0000 > @@ -139,7 +139,7 @@ > { "p", LIO_IO_ASYNC|LIO_WAIT_SIGACTIVE, "async i/o using a loop to wait > for a signal" }, > { "b", LIO_IO_ASYNC|LIO_WAIT_SIGPAUSE, "async i/o using pause" }, > { "a", LIO_IO_ASYNC|LIO_WAIT_RECALL, "async i/o using > recall/aio_suspend" }, > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > { "r", > LIO_RANDOM|LIO_IO_TYPES|LIO_WAIT_TYPES, "random sync i/o types and wait > methods" }, > { "R", > @@ -183,7 +183,7 @@ > > static volatile int Received_signal = 0; /* number of signals received */ > static volatile int Rec_signal; > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > static volatile int Received_callback = 0; /* number of callbacks received > */ > static volatile int Rec_callback; > #endif > @@ -432,7 +432,7 @@ > return; > } > > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > /*********************************************************************** > * This is an internal callback handler. > * If the handler is called, it will increment the Received_callback > @@ -558,7 +558,7 @@ > aiocb_t *aiolist[1]; /* list of aio control blocks for lio_listio */ > off64_t poffset; /* pwrite(2) offset */ > #endif > -#if defined (__linux__) > +#if defined(__linux__) && !defined(__UCLIBC__) > struct aiocb aiocbp; /* POSIX aio control block */ > struct aiocb *aiolist[1]; /* list of aio control blocks for lio_listio > */ > off64_t poffset; /* pwrite(2) offset */ > @@ -578,7 +578,7 @@ > *errmsg = Errormsg; > > Rec_signal=Received_signal; /* get the current number of signals > received */ > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > Rec_callback=Received_callback; /* get the current number of callbacks > received */ > #endif > > @@ -592,7 +592,7 @@ > iov.iov_base = buffer; > iov.iov_len = size; > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > #if defined(sgi) > memset(&aiocbp, 0x00, sizeof(aiocb_t)); > #else > @@ -607,7 +607,7 @@ > #ifdef sgi > aiocbp.aio_sigevent.sigev_func = NULL; > aiocbp.aio_sigevent.sigev_value.sival_int = 0; > -#elif defined(__linux__) > +#elif defined(__linux__) && !defined(__UCLIBC__) > aiocbp.aio_sigevent.sigev_notify_function = NULL; > aiocbp.aio_sigevent.sigev_notify_attributes = 0; > #endif > @@ -641,7 +641,7 @@ > return -errno; > } > } > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > poffset = (off64_t)ret; > #endif > aiocbp.aio_offset = ret; > @@ -660,7 +660,7 @@ > sig=0; /* ignore signal parameter */ > } > > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > if ( sig && (method & LIO_WAIT_CBTYPES) ) > sig=0; /* ignore signal parameter */ > #endif > @@ -677,7 +677,7 @@ > #ifdef CRAY > sigctl(SCTL_REG, sig, lio_async_signal_handler); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > aiocbp.aio_sigevent.sigev_notify = SIGEV_SIGNAL; > aiocbp.aio_sigevent.sigev_signo = sig; > sigset(sig, lio_async_signal_handler); > @@ -693,7 +693,7 @@ > aiocbp.aio_sigevent.sigev_value.sival_int = size; > } > #endif > -#if defined(__linux__) > +#if defined(__linux__) && !defined(__UCLIBC__) > else if( method & LIO_WAIT_CBTYPES ){ > /* sival_int just has to be something that I can use > * to identify the callback, and "size" happens to be handy... > @@ -775,7 +775,7 @@ > return -errno; > } > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > sprintf(Lio_SysCall, > "aio_write(fildes=%d, buf, nbytes=%d, signo=%d)", fd, size, sig); > io_type="aio_write"; > @@ -838,7 +838,7 @@ > return ret; > > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > > aiocbp.aio_lio_opcode = LIO_WRITE; > listio_cmd=LIO_WAIT; > @@ -904,7 +904,7 @@ > return -errno; > } > #endif > -#if defined (sgi) || defined(__linux__) > +#if defined (sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > aiocbp.aio_lio_opcode = LIO_WRITE; > listio_cmd=LIO_NOWAIT; > io_type="lio_listio(3) async write"; > @@ -961,7 +961,7 @@ > } /* LIO_IO_SYNCV */ > #endif > > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > else if ( method & LIO_IO_SYNCP ) { > io_type="pwrite(2)"; > > @@ -1003,7 +1003,7 @@ > #ifdef CRAY > ret=lio_wait4asyncio(method, fd, statptr); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > ret=lio_wait4asyncio(method, fd, &aiocbp); > #endif > > @@ -1034,7 +1034,7 @@ > #ifdef CRAY > ret=lio_check_asyncio(io_type, size, &status); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > ret=lio_check_asyncio(io_type, size, &aiocbp, method); > #endif > > @@ -1107,7 +1107,7 @@ > aiocb_t *aiolist[1]; /* list of aio control blocks for lio_listio */ > off64_t poffset; /* pread(2) offset */ > #endif > -#ifdef __linux__ > +#if defined (__linux__) && !defined(__UCLIBC__) > struct aiocb aiocbp; /* POSIX aio control block */ > struct aiocb *aiolist[1]; /* list of aio control blocks for lio_listio > */ > off64_t poffset; /* pread(2) offset */ > @@ -1128,7 +1128,7 @@ > *errmsg = Errormsg; > > Rec_signal=Received_signal; /* get the current number of signals > received */ > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > Rec_callback=Received_callback; /* get the current number of callbacks > received */ > #endif > > @@ -1142,7 +1142,7 @@ > iov.iov_base = buffer; > iov.iov_len = size; > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > #if defined(sgi) > memset(&aiocbp, 0x00, sizeof(aiocb_t)); > #else > @@ -1157,7 +1157,7 @@ > #ifdef sgi > aiocbp.aio_sigevent.sigev_func = NULL; > aiocbp.aio_sigevent.sigev_value.sival_int = 0; > -#elif defined(__linux__) > +#elif defined(__linux__) && !defined(__UCLIBC__) > aiocbp.aio_sigevent.sigev_notify_function = NULL; > aiocbp.aio_sigevent.sigev_notify_attributes = 0; > #endif > @@ -1191,7 +1191,7 @@ > return -errno; > } > } > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > poffset = (off64_t)ret; > #endif > aiocbp.aio_offset = ret; > @@ -1210,7 +1210,7 @@ > sig=0; /* ignore signal parameter */ > } > > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__)&& !defined(__UCLIBC__)) > if ( sig && (method & LIO_WAIT_CBTYPES) ) > sig=0; /* ignore signal parameter */ > #endif > @@ -1227,7 +1227,7 @@ > #ifdef CRAY > sigctl(SCTL_REG, sig, lio_async_signal_handler); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > aiocbp.aio_sigevent.sigev_notify = SIGEV_SIGNAL; > aiocbp.aio_sigevent.sigev_signo = sig; > sigset(sig, lio_async_signal_handler); > @@ -1243,7 +1243,7 @@ > aiocbp.aio_sigevent.sigev_value.sival_int = size; > } > #endif > -#if defined(__linux__) > +#if defined(__linux__) && !defined(__UCLIBC__) > else if( method & LIO_WAIT_CBTYPES ){ > aiocbp.aio_sigevent.sigev_notify = SIGEV_THREAD; > aiocbp.aio_sigevent.sigev_notify_function = > lio_async_callback_handler; > @@ -1328,7 +1328,7 @@ > return -errno; > } > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > sprintf(Lio_SysCall, > "aio_read(fildes=%d, buf, nbytes=%d, signo=%d)", fd, size, sig); > io_type="aio_read"; > @@ -1390,7 +1390,7 @@ > ret=lio_check_asyncio(io_type, size, &status); > return ret; > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > aiocbp.aio_lio_opcode = LIO_READ; > listio_cmd=LIO_WAIT; > io_type="lio_listio(3) sync read"; > @@ -1455,7 +1455,7 @@ > return -errno; > } > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > aiocbp.aio_lio_opcode = LIO_READ; > listio_cmd=LIO_NOWAIT; > io_type="lio_listio(3) async read"; > @@ -1512,7 +1512,7 @@ > } /* LIO_IO_SYNCV */ > #endif > > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > else if ( method & LIO_IO_SYNCP ) { > io_type="pread(2)"; > > @@ -1555,7 +1555,7 @@ > #ifdef CRAY > ret=lio_wait4asyncio(method, fd, statptr); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > ret=lio_wait4asyncio(method, fd, &aiocbp); > #endif > > @@ -1586,7 +1586,7 @@ > #ifdef CRAY > ret=lio_check_asyncio(io_type, size, &status); > #endif > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__)) > ret=lio_check_asyncio(io_type, size, &aiocbp, method); > #endif > > @@ -1606,14 +1606,12 @@ > * > * (rrl 04/96) > ***********************************************************************/ > -int > #ifdef CRAY > -lio_check_asyncio(char *io_type, int size, struct iosw *status) > +int lio_check_asyncio(char *io_type, int size, struct iosw *status) > #elif defined(sgi) > - lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int method) > -#elif defined(__linux__) > - lio_check_asyncio(char *io_type, int size, struct aiocb *aiocbp, int > method) > -#endif > + int lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int > method) > +#elif defined(__linux__) && !defined(__UCLIBC__) > + int lio_check_asyncio(char *io_type, int size, struct aiocb *aiocbp, > int method) > { > int ret; > > @@ -1704,9 +1702,8 @@ > return ret; > > #endif > - > } /* end of lio_check_asyncio */ > - > +#endif > > /*********************************************************************** > * > @@ -1726,27 +1723,25 @@ > * > * (rrl 04/96) > ***********************************************************************/ > -int > #ifdef CRAY > -lio_wait4asyncio(int method, int fd, struct iosw **statptr) > +int lio_wait4asyncio(int method, int fd, struct iosw **statptr) > #elif defined(sgi) > - lio_wait4asyncio(int method, int fd, aiocb_t *aiocbp) > -#elif defined(__linux__) > - lio_wait4asyncio(int method, int fd, struct aiocb *aiocbp) > -#endif > + int lio_wait4asyncio(int method, int fd, aiocb_t *aiocbp) > +#elif defined(__linux__) && !defined(__UCLIBC__) > + int lio_wait4asyncio(int method, int fd, struct aiocb *aiocbp) > { > int cnt; > #ifdef sgi > int ret; > const aiocb_t *aioary[1]; > #endif > -#ifdef __linux__ > +#if defined(__linux__)&& !defined(__UCLIBC__) > int ret; > const struct aiocb *aioary[1]; > #endif > > if ( (method & LIO_WAIT_RECALL) > -#if defined(sgi) || defined(__linux__) > +#if defined(sgi) || (defined(__linux__)&& !defined(__UCLIBC__)) > || (method & LIO_WAIT_CBSUSPEND) > || (method & LIO_WAIT_SIGSUSPEND) > #endif > @@ -1902,6 +1897,7 @@ > } /* end of lio_wait4asyncio */ > > #endif /* ifndef linux */ > +#endif > > #if UNIT_TEST > /*********************************************************************** > --- ltp-full-20090131.source/include/tlibio.h 2009-02-18 15:35:53.659997000 > +0000 > +++ ltp-full-20090131/include/tlibio.h 2009-02-23 14:05:55.469995000 > +0000 > @@ -142,7 +142,7 @@ > int lio_wait4asyncio(int method, int fd, aiocb_t *aiocbp); > int lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int method); > #endif /* sgi */ > -#if defined(__linux__) > +#if defined(__linux__) && !defined(__UCLIBC__) > #include <aio.h> > int lio_wait4asyncio(int method, int fd, struct aiocb *aiocbp); > int lio_check_asyncio(char *io_type, int size, struct aiocb *aiocbp, int > method); > plain text document attachment > (ltp-full-20090131-allow-cross-build-fix.patch) > This patch replaces the hardcoded compiler/linker calls (gcc,g++) with the > right env. variables (${CC},${CXX}), in order to allow the cross-compilation > of the LTP. > Signed-off-by: Francesco Rundo <[email protected]> > diff -Naur > ltp-full-20090131.source/testcases/ballista/ballista/compile/Makefile > ltp-full-20090131/testcases/ballista/ballista/compile/Makefile > --- ltp-full-20090131.source/testcases/ballista/ballista/compile/Makefile > 2009-02-18 16:37:40.809996000 +0100 > +++ ltp-full-20090131/testcases/ballista/ballista/compile/Makefile > 2009-02-24 15:47:10.539999000 +0100 > @@ -19,14 +19,14 @@ > FLAGS= -O -Wall > PFLAGS= -p -g3 > > -CPPCOMP= g++ > +CPPCOMP= ${CXX} > > # > # The following is "boilerplate" to set up the standard compilation > # commands: > .SUFFIXES: > .SUFFIXES: .cpp .c .cc .h .o > -.c.o: ; gcc $(FLAGS) -c $*.c > +.c.o: ; ${CC} $(FLAGS) -c $*.c > .cc.o: ; $(CPPCOMP) $(FLAGS) -c $*.cc > .cpp.o: ; $(CPPCOMP) $(FLAGS) $(INC) -c $*.cpp > .cxx.o: ; $(CPPCOMP) $(FLAGS) $(INC) -c $*.cxx > @@ -41,10 +41,10 @@ > chmod 700 ../templates/do_parse > > blexer: jlist.o butil.o lex.yy.o blexer.o > - gcc $(FLAGS) -o blexer jlist.o butil.o lex.yy.o blexer.o > + ${CC} $(FLAGS) -o blexer jlist.o butil.o lex.yy.o blexer.o > > bparser: bparser.o > - g++ $(FLAGS) -o bparser bparser.o butil.c > + ${CXX} $(FLAGS) -o bparser bparser.o butil.c > > jlist.o: jlist.c butil.h jlist.h > > diff -Naur ltp-full-20090131.source/testcases/ballista/ballista/Makefile > ltp-full-20090131/testcases/ballista/ballista/Makefile > --- ltp-full-20090131.source/testcases/ballista/ballista/Makefile > 2009-02-18 16:37:33.759997000 +0100 > +++ ltp-full-20090131/testcases/ballista/ballista/Makefile 2009-02-24 > 15:49:29.359999000 +0100 > @@ -24,7 +24,7 @@ > ######################## > > # compiler info for the host > -CC = g++ -Wno-deprecated > +CC=${CXX} -Wno-deprecated > CFLAGS += -w ${TARGET_DEF} > CLIBS = -lpthread -ldl -lnsl -rdynamic > TEST_MAN_FILE = selfHost > @@ -33,7 +33,6 @@ > OBJS = match.o line.o hack.o ballistaRPC.o ballistaXDR.o ${TEST_MAN_FILE}.o \ > ballistaUtil.o marshal.o testCaseIterator.o\ > serverCommunication.o parseArguments.o ballistaError.o > - > > # build everything by default > all : callGen callGen_standAlone genCodeCreator replacer ballista > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/acpi/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/acpi/Makefile > --- ltp-full-20090131.source/testcases/kernel/device-drivers/acpi/Makefile > 2009-02-18 16:36:09.099999000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/acpi/Makefile > 2009-02-24 15:35:22.170001000 +0100 > @@ -15,7 +15,7 @@ > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > - gcc $(CFLAGS) -o LtpAcpiMain LtpAcpiMain.c > + ${CC} $(CFLAGS) -o LtpAcpiMain LtpAcpiMain.c > # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules > endif > > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/agp/user_space/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/agp/user_space/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/agp/user_space/Makefile > 2009-02-18 16:36:08.499997000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/agp/user_space/Makefile > 2009-02-24 15:35:22.220000000 +0100 > @@ -1,8 +1,8 @@ > test_agp: tagp_ki.o user_tagp.o > - gcc tagp_ki.o user_tagp.o -o test_agp > + ${CC} tagp_ki.o user_tagp.o -o test_agp > > tagp_ki.o: tagp_ki.c > - gcc -c tagp_ki.c > + ${CC} -c tagp_ki.c > > user_tagp.o: user_tagp.c > - gcc -c user_tagp.c > + ${CC} -c user_tagp.c > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/base/user_base/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/base/user_base/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/base/user_base/Makefile > 2009-02-18 16:36:07.659997000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/base/user_base/Makefile > 2009-02-24 15:35:22.280000000 +0100 > @@ -1,11 +1,11 @@ > test_base: tbase_ki.o user_tbase.o > - gcc tbase_ki.o user_tbase.o -o test_base > + ${CC} tbase_ki.o user_tbase.o -o test_base > > tbase_ki.o: tbase_ki.c > - gcc -c tbase_ki.c > + ${CC} -c tbase_ki.c > > user_tbase.o: user_tbase.c > - gcc -c user_tbase.c > + ${CC} -c user_tbase.c > > clean: > rm -f *.o 2>/dev/null || true > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile > > ltp-full-20090131/testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile > 2009-02-18 16:36:07.849996000 +0100 > +++ > ltp-full-20090131/testcases/kernel/device-drivers/dev_sim_framework/user_space/Makefile > 2009-02-24 15:35:22.330001000 +0100 > @@ -1,8 +1,8 @@ > test_mod: tmod_ki.o user_tmod.o > - gcc tmod_ki.o user_tmod.o -o test_mod > + ${CC} tmod_ki.o user_tmod.o -o test_mod > > tmod_ki.o: tmod_ki.c > - gcc -c tmod_ki.c > + ${CC} -c tmod_ki.c > > user_tmod.o: user_tmod.c > - gcc -c user_tmod.c > + ${CC} -c user_tmod.c > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/drm/user_space/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/drm/user_space/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/drm/user_space/Makefile > 2009-02-18 16:36:09.319999000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/drm/user_space/Makefile > 2009-02-24 15:35:22.390000000 +0100 > @@ -2,4 +2,4 @@ > KDIR := /lib/modules/$(shell uname -r)/build > CFLAGS := -I$(KDIR)/drivers/char/drm > default: > - gcc -o test_drm user_tdrm.c $(CFLAGS) > + ${CC} -o test_drm user_tdrm.c $(CFLAGS) > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/include/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/include/Makefile > --- ltp-full-20090131.source/testcases/kernel/device-drivers/include/Makefile > 2009-02-18 16:36:07.099997000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/include/Makefile > 2009-02-24 15:35:22.450000000 +0100 > @@ -14,7 +14,7 @@ > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > - gcc -Wall -o userBlockInclude userBlockInclude.c > + ${CC} -Wall -o userBlockInclude userBlockInclude.c > # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules > endif > > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/nls/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/nls/Makefile > --- ltp-full-20090131.source/testcases/kernel/device-drivers/nls/Makefile > 2009-02-18 16:36:09.999996000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/nls/Makefile > 2009-02-24 15:35:22.510000000 +0100 > @@ -13,7 +13,7 @@ > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > - gcc $(EXTRA_CFLAGS) -o userBlockNLS userBlockNLS.c > + ${CC} $(EXTRA_CFLAGS) -o userBlockNLS userBlockNLS.c > # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules > > clean: > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/pci/user_tpci/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/pci/user_tpci/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/pci/user_tpci/Makefile > 2009-02-18 16:36:09.629998000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/pci/user_tpci/Makefile > 2009-02-24 15:35:22.560000000 +0100 > @@ -1,8 +1,8 @@ > test_pci: tpci_ki.o user_tpci.o > - gcc tpci_ki.o user_tpci.o -o test_pci > + ${CC} tpci_ki.o user_tpci.o -o test_pci > > tpci_ki.o: tpci_ki.c > - gcc -c tpci_ki.c > + ${CC} -c tpci_ki.c > > user_tpci.o: user_tpci.c > - gcc -c user_tpci.c > + ${CC} -c user_tpci.c > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/tbio/user_space/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/tbio/user_space/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/tbio/user_space/Makefile > 2009-02-18 16:36:08.849997000 +0100 > +++ > ltp-full-20090131/testcases/kernel/device-drivers/tbio/user_space/Makefile > 2009-02-24 15:35:22.600001000 +0100 > @@ -1,8 +1,8 @@ > test_bio: tbio_ki.o user_tbio.o > - gcc -g tbio_ki.o user_tbio.o -o test_bio > + ${CC} -g tbio_ki.o user_tbio.o -o test_bio > > tbio_ki.o: tbio_ki.c > - gcc -c -g tbio_ki.c > + ${CC} -c -g tbio_ki.c > > user_tbio.o: user_tbio.c > - gcc -c -g user_tbio.c > + ${CC} -c -g user_tbio.c > diff -Naur > ltp-full-20090131.source/testcases/kernel/device-drivers/usb/user_usb/Makefile > ltp-full-20090131/testcases/kernel/device-drivers/usb/user_usb/Makefile > --- > ltp-full-20090131.source/testcases/kernel/device-drivers/usb/user_usb/Makefile > 2009-02-18 16:36:08.189997000 +0100 > +++ ltp-full-20090131/testcases/kernel/device-drivers/usb/user_usb/Makefile > 2009-02-24 15:35:22.660000000 +0100 > @@ -1,8 +1,8 @@ > test_usb: tusb_ki.o user_tusb.o > - gcc tusb_ki.o user_tusb.o -o test_usb > + ${CC} tusb_ki.o user_tusb.o -o test_usb > > tusb_ki.o: tusb_ki.c > - gcc -c tusb_ki.c > + ${CC} -c tusb_ki.c > > user_tusb.o: user_tusb.c > - gcc -c user_tusb.c > + ${CC} -c user_tusb.c > diff -Naur ltp-full-20090131.source/testcases/kernel/fs/fs-bench/Makefile > ltp-full-20090131/testcases/kernel/fs/fs-bench/Makefile > --- ltp-full-20090131.source/testcases/kernel/fs/fs-bench/Makefile > 2009-02-18 16:36:31.519999000 +0100 > +++ ltp-full-20090131/testcases/kernel/fs/fs-bench/Makefile 2009-02-24 > 15:35:22.720000000 +0100 > @@ -6,13 +6,13 @@ > @echo done > > cr: create-files.o ${UTILS} > - gcc ${UTILS} create-files.o -lm -o cr > + ${CC} ${UTILS} create-files.o -lm -o cr > > ra: random-access.o > - gcc random-access.o -o ra > + ${CC} random-access.o -o ra > > radc: random-del-create.o ${UTILS} > - gcc ${UTILS} random-del-create.o -lm -o radc > + ${CC} ${UTILS} random-del-create.o -lm -o radc > > install: > @set -e; for i in $(EXECS) $(SCRIPTS); do ln -f $$i ../../../bin/$$i ; > done > diff -Naur ltp-full-20090131.source/testcases/kernel/fs/scsi/ltpfs/Makefile > ltp-full-20090131/testcases/kernel/fs/scsi/ltpfs/Makefile > --- ltp-full-20090131.source/testcases/kernel/fs/scsi/ltpfs/Makefile > 2009-02-18 16:36:39.209996000 +0100 > +++ ltp-full-20090131/testcases/kernel/fs/scsi/ltpfs/Makefile 2009-02-24 > 15:35:22.770001000 +0100 > @@ -15,7 +15,7 @@ > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > - gcc $(CFLAGS) -o ltpfstest -lm main.c > + ${CC} $(CFLAGS) -o ltpfstest -lm main.c > # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules > endif > > diff -Naur ltp-full-20090131.source/testcases/kernel/fs/scsi/ltpscsi/Makefile > ltp-full-20090131/testcases/kernel/fs/scsi/ltpscsi/Makefile > --- ltp-full-20090131.source/testcases/kernel/fs/scsi/ltpscsi/Makefile > 2009-02-18 16:36:39.589996000 +0100 > +++ ltp-full-20090131/testcases/kernel/fs/scsi/ltpscsi/Makefile > 2009-02-24 15:40:32.910002000 +0100 > @@ -4,8 +4,6 @@ > INSTDIR=$(DESTDIR)/$(PREFIX)/bin > MANDIR=$(DESTDIR)/$(PREFIX)/man > > -CC = gcc > -LD = gcc > > EXECS = scsimain > > diff -Naur > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_affinity/Makefile > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_affinity/Makefile > --- > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_affinity/Makefile > 2009-02-18 16:37:28.879997000 +0100 > +++ > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_affinity/Makefile > 2009-02-24 15:35:22.870001000 +0100 > @@ -9,7 +9,7 @@ > #ht_affinity: HTaffinity.o HTutils.o > # gcc -o ht_affinity HTaffinity.o HTutils.o $(CFLAGS) $(LOADLIBES) > ht_affinity: > - gcc -o ht_affinity HTaffinity.c HTutils.c $(CFLAGS) $(LOADLIBES) > + ${CC} -o ht_affinity HTaffinity.c HTutils.c $(CFLAGS) $(LOADLIBES) > > install: > @set -e; for i in $(TARGETS) ; do ln -f $$i ../../../../bin/$$i ; done > diff -Naur > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_enabled/Makefile > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_enabled/Makefile > --- > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_enabled/Makefile > 2009-02-18 16:37:28.749996000 +0100 > +++ > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_enabled/Makefile > 2009-02-24 15:35:22.919999000 +0100 > @@ -7,7 +7,7 @@ > all: $(TARGETS) > > ht_enabled: > - gcc -o ht_enabled HTenabled.c HTutils.c $(CFLAGS) $(LOADLIBES) > + ${CC} -o ht_enabled HTenabled.c HTutils.c $(CFLAGS) $(LOADLIBES) > > install: > @set -e; for i in $(TARGETS) ; do ln -f $$i ../../../../bin/$$i ; done > diff -Naur > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_interrupt/Makefile > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_interrupt/Makefile > --- > ltp-full-20090131.source/testcases/kernel/sched/hyperthreading/ht_interrupt/Makefile > 2009-02-18 16:37:29.069996000 +0100 > +++ > ltp-full-20090131/testcases/kernel/sched/hyperthreading/ht_interrupt/Makefile > 2009-02-24 15:35:22.970001000 +0100 > @@ -7,7 +7,7 @@ > all: $(TARGETS) > > ht_interrupt: > - gcc -o ht_interrupt HTinterrupt.c HTutils.c $(CFLAGS) $(LOADLIBES) > + ${CC} -o ht_interrupt HTinterrupt.c HTutils.c $(CFLAGS) $(LOADLIBES) > > install: > @set -e; for i in $(TARGETS) ; do ln -f $$i ../../../../bin/$$i ; done > diff -Naur > ltp-full-20090131.source/testcases/kernel/security/digsig/twiddlebit/Makefile > ltp-full-20090131/testcases/kernel/security/digsig/twiddlebit/Makefile > --- > ltp-full-20090131.source/testcases/kernel/security/digsig/twiddlebit/Makefile > 2009-02-18 16:36:18.959997000 +0100 > +++ ltp-full-20090131/testcases/kernel/security/digsig/twiddlebit/Makefile > 2009-02-24 15:50:43.520000000 +0100 > @@ -1,4 +1,3 @@ > -CC=gcc > > > all: hw_signed swapbit > diff -Naur > ltp-full-20090131.source/testcases/kernel/security/digsig/writeexec/Makefile > ltp-full-20090131/testcases/kernel/security/digsig/writeexec/Makefile > --- > ltp-full-20090131.source/testcases/kernel/security/digsig/writeexec/Makefile > 2009-02-18 16:36:18.699998000 +0100 > +++ ltp-full-20090131/testcases/kernel/security/digsig/writeexec/Makefile > 2009-02-24 15:40:02.470000000 +0100 > @@ -1,5 +1,5 @@ > LIBS= -ldl > -CC=gcc > + > > all: shared.so libwritetest > @bsign=`which bsign`; \ > diff -Naur > ltp-full-20090131.source/testcases/kernel/syscalls/epoll2/examples/Makefile > ltp-full-20090131/testcases/kernel/syscalls/epoll2/examples/Makefile > --- > ltp-full-20090131.source/testcases/kernel/syscalls/epoll2/examples/Makefile > 2009-02-18 16:37:21.119999000 +0100 > +++ ltp-full-20090131/testcases/kernel/syscalls/epoll2/examples/Makefile > 2009-02-24 15:40:59.870001000 +0100 > @@ -16,7 +16,6 @@ > INCLUDE = -I- -I. -I../include -I/usr/src/linux/include > LIBS = -L../lib -lepoll -lpcl > > -CC = gcc > > ifeq ($(EPOLLCFG), release) > CFLAGS = -O3 $(INCLUDE) -DUNIX > diff -Naur > ltp-full-20090131.source/testcases/network/rpc/rpc-tirpc-full-test-suite/inc/Makefile.hdr > > ltp-full-20090131/testcases/network/rpc/rpc-tirpc-full-test-suite/inc/Makefile.hdr > --- > ltp-full-20090131.source/testcases/network/rpc/rpc-tirpc-full-test-suite/inc/Makefile.hdr > 2009-02-18 16:39:49.839999000 +0100 > +++ > ltp-full-20090131/testcases/network/rpc/rpc-tirpc-full-test-suite/inc/Makefile.hdr > 2009-02-24 15:35:23.190002000 +0100 > @@ -1,4 +1,3 @@ > -CC=gcc > CFLAGS_TIRPC=-ltirpc -lpthread > LDFLAGS_TIRPC=-I/usr/include/tirpc > CFLAGS_RPC=-lnsl > diff -Naur ltp-full-20090131.source/testcases/pounder21/Makefile > ltp-full-20090131/testcases/pounder21/Makefile > --- ltp-full-20090131.source/testcases/pounder21/Makefile 2009-02-18 > 16:36:02.119998000 +0100 > +++ ltp-full-20090131/testcases/pounder21/Makefile 2009-02-24 > 15:38:02.540000000 +0100 > @@ -20,7 +20,6 @@ > # Quickie makefile to do pounder stuff. > NAME=ltpounder > CFLAGS=-O3 -Wall -g > -CC=gcc > HELPERS=timed_loop infinite_loop run-helper fancy_timed_loop > > install:; > diff -Naur ltp-full-20090131.source/testcases/pounder21/src/cpufreq/Makefile > ltp-full-20090131/testcases/pounder21/src/cpufreq/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/cpufreq/Makefile > 2009-02-18 16:36:03.569997000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/cpufreq/Makefile > 2009-02-24 15:39:50.580000000 +0100 > @@ -18,7 +18,7 @@ > # 02111-1307, USA. > # > > -CC=gcc > + > CFLAGS += -O3 -Wall > bins = cpufreq.bin > > diff -Naur > ltp-full-20090131.source/testcases/pounder21/src/mem_alloc_test/Makefile > ltp-full-20090131/testcases/pounder21/src/mem_alloc_test/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/mem_alloc_test/Makefile > 2009-02-18 16:36:02.839998000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/mem_alloc_test/Makefile > 2009-02-24 15:38:34.419999000 +0100 > @@ -17,7 +17,6 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > CFLAGS += -O3 > bins = mem_alloc > > diff -Naur > ltp-full-20090131.source/testcases/pounder21/src/memxfer5b/Makefile > ltp-full-20090131/testcases/pounder21/src/memxfer5b/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/memxfer5b/Makefile > 2009-02-18 16:36:03.269997000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/memxfer5b/Makefile > 2009-02-24 15:39:19.199998000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > CFLAGS += -O3 > bins = memxfer5b > > diff -Naur ltp-full-20090131.source/testcases/pounder21/src/ramsnake/Makefile > ltp-full-20090131/testcases/pounder21/src/ramsnake/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/ramsnake/Makefile > 2009-02-18 16:36:03.479997000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/ramsnake/Makefile > 2009-02-24 15:39:40.719999000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > CFLAGS += -O3 -Wall > bins = snake.exe > > diff -Naur > ltp-full-20090131.source/testcases/pounder21/src/randacoords/Makefile > ltp-full-20090131/testcases/pounder21/src/randacoords/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/randacoords/Makefile > 2009-02-18 16:36:03.189998000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/randacoords/Makefile > 2009-02-24 15:39:06.740002000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > CFLAGS += -O3 -Wall > bins = coords > > diff -Naur > ltp-full-20090131.source/testcases/pounder21/src/randasyscall/Makefile > ltp-full-20090131/testcases/pounder21/src/randasyscall/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/randasyscall/Makefile > 2009-02-18 16:36:02.929996000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/randasyscall/Makefile > 2009-02-24 15:38:44.850001000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > CFLAGS += -O3 -Wall > bins = randasys > > diff -Naur > ltp-full-20090131.source/testcases/pounder21/src/time_tests/Makefile > ltp-full-20090131/testcases/pounder21/src/time_tests/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/time_tests/Makefile > 2009-02-18 16:36:03.099997000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/time_tests/Makefile > 2009-02-24 15:38:56.360000000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > LDFLAGS += -lrt > CFLAGS += -O3 > bins = inconsistency-check > diff -Naur ltp-full-20090131.source/testcases/pounder21/src/xbonkers/Makefile > ltp-full-20090131/testcases/pounder21/src/xbonkers/Makefile > --- ltp-full-20090131.source/testcases/pounder21/src/xbonkers/Makefile > 2009-02-18 16:36:03.359997000 +0100 > +++ ltp-full-20090131/testcases/pounder21/src/xbonkers/Makefile > 2009-02-24 15:39:30.250001000 +0100 > @@ -17,7 +17,7 @@ > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > # 02111-1307, USA. > > -CC=gcc > + > CFLAGS += -O3 -Wall > LDFLAGS=-lX11 -L/usr/X11R6/lib -L/usr/X11R6/lib64 > bins = xbonkers > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
