https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122694
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-11-15
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Severity|normal |enhancement
Component|other |testsuite
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>It is a common issue newcomers run into where dejagnu is not installed at
>configure-time,
The toplevel Makefile has support for building dejagnu/expect for the host:
```
host_modules= { module= expect; };
...
host_modules= { module= dejagnu; };
```
And GCC's makefile has support for using that built version too:
```
# Setup the testing framework, if you have one
EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
echo $${rootme}/../expect/expect ; \
else echo expect ; fi`
RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
echo $${srcdir}/../dejagnu/runtest ; \
else echo runtest; fi`
RUNTESTFLAGS =
```
Maybe the ones in gcc/Makefile.in only works while running `make {*-,}check` in
the gcc subdirectories. While the toplevel Makefile.in/configure.ac is used for
the toplevel check.
Anyways confirmed.