public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Error in make check.
@ 2022-02-16 12:11 Krishna Narayanan
  2022-02-16 12:24 ` Xi Ruoyao
  2022-02-16 12:25 ` Andrew Haley
  0 siblings, 2 replies; 3+ messages in thread
From: Krishna Narayanan @ 2022-02-16 12:11 UTC (permalink / raw)
  To: gcc-help

make[4]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
make[3]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
make[2]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
make[1]: Leaving directory '/home/krishna/latest'
make[1]: Entering directory '/home/krishna/latest/gcc'
Making a new config file...
echo "set tmpdir /home/krishna/latest/gcc/testsuite" >> ./site.tmp
rm -rf testsuite/gcc-parallel
make[2]: Entering directory '/home/krishna/latest/gcc'
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
if [ -n "" ] \
   && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
   && [ -f testsuite/gcc-parallel/finished ]; then \
  rm -rf testsuite/gcc; \
else \
  cd testsuite/gcc; \
  rm -f tmp-site.exp; \
  sed '/set tmpdir/ s|testsuite$|testsuite/gcc|' \
< ../../site.exp > tmp-site.exp; \
  /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
  EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
\
  if [ -f ${rootme}/../expect/expect ] ; then  \
    TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
    export TCL_LIBRARY ; \
  fi ; \
  `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc ; \
  if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
    touch ${rootme}/testsuite/gcc-parallel/finished; \
  fi ; \
fi )
/bin/bash: line 17: runtest: command not found
make[2]: Leaving directory '/home/krishna/latest/gcc'
rm -rf testsuite/g++-parallel
make[2]: Entering directory '/home/krishna/latest/gcc'
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
if [ -n "" ] \
   && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
   && [ -f testsuite/g++-parallel/finished ]; then \
  rm -rf testsuite/g++; \
else \
  cd testsuite/g++; \
  rm -f tmp-site.exp; \
  sed '/set tmpdir/ s|testsuite$|testsuite/g++|' \
< ../../site.exp > tmp-site.exp; \
  /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
  EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
\
  if [ -f ${rootme}/../expect/expect ] ; then  \
    TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
    export TCL_LIBRARY ; \
  fi ; \
  `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool g++ ; \
  if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
    touch ${rootme}/testsuite/g++-parallel/finished; \
  fi ; \
fi )
/bin/bash: line 17: runtest: command not found
make[2]: Leaving directory '/home/krishna/latest/gcc'
rm -rf testsuite/gfortran-parallel
make[2]: Entering directory '/home/krishna/latest/gcc'
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
if [ -n "" ] \
   && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
   && [ -f testsuite/gfortran-parallel/finished ]; then \
  rm -rf testsuite/gfortran; \
else \
  cd testsuite/gfortran; \
  rm -f tmp-site.exp; \
  sed '/set tmpdir/ s|testsuite$|testsuite/gfortran|' \
< ../../site.exp > tmp-site.exp; \
  /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
  EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
\
  if [ -f ${rootme}/../expect/expect ] ; then  \
    TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
    export TCL_LIBRARY ; \
  fi ; \
  `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gfortran
; \
  if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
    touch ${rootme}/testsuite/gfortran-parallel/finished; \
  fi ; \
fi )
/bin/bash: line 17: runtest: command not found
make[2]: Leaving directory '/home/krishna/latest/gcc'
make[1]: Leaving directory '/home/krishna/latest/gcc'

Hello, I am getting this error while make -k check and make check-gcc
for the gcc-11.2.0 ,while running the testsuite make -k check .I was
getting the similar error for the gcc-10.1.0 build.While going into
the testsuite directory it gives this error,I think so there is a
problem in the .exp script which gives this error.Can you please help
me out with this?
Thanks and regards,
Krishna Narayanan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in make check.
  2022-02-16 12:11 Error in make check Krishna Narayanan
@ 2022-02-16 12:24 ` Xi Ruoyao
  2022-02-16 12:25 ` Andrew Haley
  1 sibling, 0 replies; 3+ messages in thread
From: Xi Ruoyao @ 2022-02-16 12:24 UTC (permalink / raw)
  To: Krishna Narayanan, gcc-help

On Wed, 2022-02-16 at 17:41 +0530, Krishna Narayanan via Gcc-help wrote:

> /bin/bash: line 17: runtest: command not found

You need to install DejaGNU to test GCC.  It's well documented in
https://gcc.gnu.org/install/test.html:

> Second, you must have the testing tools installed. This includes
> DejaGnu, Tcl, and Expect; the DejaGnu site has links to these. Some
> optional tests also require Python3 and pytest module.

Generally you should read the documentation carefully before hacking on
any project, not only GCC.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in make check.
  2022-02-16 12:11 Error in make check Krishna Narayanan
  2022-02-16 12:24 ` Xi Ruoyao
@ 2022-02-16 12:25 ` Andrew Haley
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2022-02-16 12:25 UTC (permalink / raw)
  To: gcc-help

On 2/16/22 12:11, Krishna Narayanan via Gcc-help wrote:
> make[4]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
> make[3]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
> make[2]: Leaving directory '/home/krishna/latest/x86_64-linux-gnu/libsanitizer'
> make[1]: Leaving directory '/home/krishna/latest'
> make[1]: Entering directory '/home/krishna/latest/gcc'
> Making a new config file...
> echo "set tmpdir /home/krishna/latest/gcc/testsuite" >> ./site.tmp
> rm -rf testsuite/gcc-parallel
> make[2]: Entering directory '/home/krishna/latest/gcc'
> (rootme=`${PWDCMD-pwd}`; export rootme; \
> srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
> if [ -n "" ] \
>     && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
>     && [ -f testsuite/gcc-parallel/finished ]; then \
>    rm -rf testsuite/gcc; \
> else \
>    cd testsuite/gcc; \
>    rm -f tmp-site.exp; \
>    sed '/set tmpdir/ s|testsuite$|testsuite/gcc|' \
> < ../../site.exp > tmp-site.exp; \
>    /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
>    EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
> ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
> \
>    if [ -f ${rootme}/../expect/expect ] ; then  \
>      TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
>      export TCL_LIBRARY ; \
>    fi ; \
>    `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
> ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc ; \
>    if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
>      touch ${rootme}/testsuite/gcc-parallel/finished; \
>    fi ; \
> fi )
> /bin/bash: line 17: runtest: command not found
> make[2]: Leaving directory '/home/krishna/latest/gcc'
> rm -rf testsuite/g++-parallel
> make[2]: Entering directory '/home/krishna/latest/gcc'
> (rootme=`${PWDCMD-pwd}`; export rootme; \
> srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
> if [ -n "" ] \
>     && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
>     && [ -f testsuite/g++-parallel/finished ]; then \
>    rm -rf testsuite/g++; \
> else \
>    cd testsuite/g++; \
>    rm -f tmp-site.exp; \
>    sed '/set tmpdir/ s|testsuite$|testsuite/g++|' \
> < ../../site.exp > tmp-site.exp; \
>    /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
>    EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
> ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
> \
>    if [ -f ${rootme}/../expect/expect ] ; then  \
>      TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
>      export TCL_LIBRARY ; \
>    fi ; \
>    `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
> ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool g++ ; \
>    if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
>      touch ${rootme}/testsuite/g++-parallel/finished; \
>    fi ; \
> fi )
> /bin/bash: line 17: runtest: command not found
> make[2]: Leaving directory '/home/krishna/latest/gcc'
> rm -rf testsuite/gfortran-parallel
> make[2]: Entering directory '/home/krishna/latest/gcc'
> (rootme=`${PWDCMD-pwd}`; export rootme; \
> srcdir=`cd ../../gcc-11.2.0/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
> if [ -n "" ] \
>     && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \
>     && [ -f testsuite/gfortran-parallel/finished ]; then \
>    rm -rf testsuite/gfortran; \
> else \
>    cd testsuite/gfortran; \
>    rm -f tmp-site.exp; \
>    sed '/set tmpdir/ s|testsuite$|testsuite/gfortran|' \
> < ../../site.exp > tmp-site.exp; \
>    /bin/bash ${srcdir}/../move-if-change tmp-site.exp site.exp; \
>    EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
> ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ;
> \
>    if [ -f ${rootme}/../expect/expect ] ; then  \
>      TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
>      export TCL_LIBRARY ; \
>    fi ; \
>    `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
> ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gfortran
> ; \
>    if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \
>      touch ${rootme}/testsuite/gfortran-parallel/finished; \
>    fi ; \
> fi )
> /bin/bash: line 17: runtest: command not found
> make[2]: Leaving directory '/home/krishna/latest/gcc'
> make[1]: Leaving directory '/home/krishna/latest/gcc'
> 
> Hello, I am getting this error while make -k check and make check-gcc
> for the gcc-11.2.0 ,while running the testsuite make -k check .I was
> getting the similar error for the gcc-10.1.0 build.While going into
> the testsuite directory it gives this error,I think so there is a
> problem in the .exp script which gives this error.Can you please help
> me out with this?
> Thanks and regards,
> Krishna Narayanan

https://gcc.gnu.org/install/test.html

... you must have the testing tools installed. This includes DejaGnu, Tcl, and Expect; the DejaGnu site has links to these. Some optional tests also require Python3 and pytest module.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-16 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 12:11 Error in make check Krishna Narayanan
2022-02-16 12:24 ` Xi Ruoyao
2022-02-16 12:25 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).