* [LTP] How to enable USB test case while compiling
@ 2015-09-14 7:17 Veerendra Jonnalagadda
2015-09-15 9:29 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Veerendra Jonnalagadda @ 2015-09-14 7:17 UTC (permalink / raw)
To: ltp-list@lists.sourceforge.net
[-- Attachment #1.1: Type: text/plain, Size: 3832 bytes --]
Hi,
I am trying to compile LTP test suite by enabling USB in the kernel/device driver/Makefile.
I am getting error.
make[4]: Entering directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb'
make[5]: Entering directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/tusb'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/tusb'
make[5]: Entering directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/user_usb'
make -C "/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include" -f "/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include/Makefile" all
make[6]: Entering directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include'
/home/veerendra/Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux/bin/mips-linux-gnu-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -D_FORTIFY_SOURCE=2 -I/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include -I../../../../../include -I../../../../../include -L../../../../../lib user_tusb.c -lltp -o user_tusb
user_tusb.c: In function 'tusbopen':
user_tusb.c:66:5: warning: old-style function definition [-Wold-style-definition]
int tusbopen()
^
user_tusb.c:89:4: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
rc = unlink(DEVICE_NAME);
^
user_tusb.c: In function 'tusbclose':
user_tusb.c:145:5: warning: old-style function definition [-Wold-style-definition]
int tusbclose()
^
user_tusb.c:151:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
close(tusb_fd);
^
user_tusb.c: In function 'main':
user_tusb.c:158:5: warning: old-style function definition [-Wold-style-definition]
int main()
^
user_tusb.c:208:2: warning: implicit declaration of function 'tst_exit' [-Wimplicit-function-declaration]
tst_exit();
^
user_tusb.c:209:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user_tusb.c: In function 'tusbopen':
user_tusb.c:88:11: warning: 'st.st_mode' is used uninitialized in this function [-Wuninitialized]
if (!(st.st_mode & S_IFDIR)) {
^
../../../../../lib/libltp.a(tst_res.o): In function `cat_file':
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:786: undefined reference to `TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:786: undefined reference to `TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:796: undefined reference to `TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:796: undefined reference to `TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:804: undefined reference to `TCID'
../../../../../lib/libltp.a(tst_res.o):/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:804: more undefined references to `TCID' follow
collect2: error: ld returned 1 exit status
make[5]: *** [user_tusb] Error 1
make[5]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/user_usb'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases'
make: *** [testcases-all] Error 2
Any suggestions
Regards
Veerendra
[-- Attachment #1.2: Type: text/html, Size: 7412 bytes --]
[-- Attachment #2: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-15 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14 7:17 [LTP] How to enable USB test case while compiling Veerendra Jonnalagadda
2015-09-15 9:29 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox