From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZbO9v-0005hX-HM for ltp-list@lists.sourceforge.net; Mon, 14 Sep 2015 07:26:39 +0000 Received: from mx2.invecas.com ([112.133.222.227] helo=mail.invecas.com) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1ZbO9r-0006ZH-QU for ltp-list@lists.sourceforge.net; Mon, 14 Sep 2015 07:26:39 +0000 From: Veerendra Jonnalagadda Date: Mon, 14 Sep 2015 07:17:45 +0000 Message-ID: <1442214807574.25113@inedasystems.com> Content-Language: en-US MIME-Version: 1.0 Subject: [LTP] How to enable USB test case while compiling List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6851311365973676072==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: "ltp-list@lists.sourceforge.net" --===============6851311365973676072== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_144221480757425113inedasystemscom_" --_000_144221480757425113inedasystemscom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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" al= l 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-g= nu-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style= -definition -D_FORTIFY_SOURCE=3D2 -I/home/veerendra/QA/ltp-full-20150420/te= stcases/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-defin= ition] int tusbopen() ^ user_tusb.c:89:4: warning: implicit declaration of function 'unlink' [-Wimp= licit-function-declaration] rc =3D unlink(DEVICE_NAME); ^ user_tusb.c: In function 'tusbclose': user_tusb.c:145:5: warning: old-style function definition [-Wold-style-defi= nition] int tusbclose() ^ user_tusb.c:151:3: warning: implicit declaration of function 'close' [-Wimp= licit-function-declaration] close(tusb_fd); ^ user_tusb.c: In function 'main': user_tusb.c:158:5: warning: old-style function definition [-Wold-style-defi= nition] int main() ^ user_tusb.c:208:2: warning: implicit declaration of function 'tst_exit' [-W= implicit-function-declaration] tst_exit(); ^ user_tusb.c:209:1: warning: control reaches end of non-void function [-Wret= urn-type] } ^ user_tusb.c: In function 'tusbopen': user_tusb.c:88:11: warning: 'st.st_mode' is used uninitialized in this func= tion [-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 --_000_144221480757425113inedasystemscom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

I am trying to compile LTP test suite by enabling USB in the kernel/devi= ce driver/Makefile.

I am getting error.


make[4]: Entering directory `/home/veerendra/QA/ltp-full-20150420/testca= ses/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/inclu= de/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-g= nu-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style= -definition -D_FORTIFY_SOURCE=3D2 -I/home/veerendra/QA/ltp-full-20150420/te= stcases/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-defin= ition]
 int tusbopen()
     ^
user_tusb.c:89:4: warning: implicit declaration of function 'unlink' [-Wimp= licit-function-declaration]
    rc =3D unlink(DEVICE_NAME);
    ^
user_tusb.c: In function 'tusbclose':
user_tusb.c:145:5: warning: old-style function definition [-Wold-style-defi= nition]
 int tusbclose()
     ^
user_tusb.c:151:3: warning: implicit declaration of function 'close' [-Wimp= licit-function-declaration]
   close(tusb_fd);
   ^
user_tusb.c: In function 'main':
user_tusb.c:158:5: warning: old-style function definition [-Wold-style-defi= nition]
 int main()
     ^
user_tusb.c:208:2: warning: implicit declaration of function 'tst_exit' [-W= implicit-function-declaration]
  tst_exit();
  ^
user_tusb.c:209:1: warning: control reaches end of non-void function [-Wret= urn-type]
 }
 ^
user_tusb.c: In function 'tusbopen':
user_tusb.c:88:11: warning: 'st.st_mode' is used uninitialized in this func= tion [-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

--_000_144221480757425113inedasystemscom_-- --===============6851311365973676072== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============6851311365973676072== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============6851311365973676072==--