make test doesn't work.

Denys Vlasenko vda.linux at
Mon Jun 14 12:27:10 UTC 2010

On Mon, Jun 14, 2010 at 7:42 AM, Rob Landley <rob at> wrote:
> So I'm trying to set up the cron job to run the test suite each night,and I'm
> getting this from today's -git:
> landley at driftwood:~/busybox/git$ make test
> test -d /home/landley/busybox/git/testsuite || cp -pPR
> /home/landley/busybox/git/testsuite /home/landley/busybox/git
> bindir=/home/landley/busybox/git srcdir=/home/landley/busybox/git/testsuite \
>        /bin/sh -c "cd /home/landley/busybox/git/testsuite &&
> /home/landley/busybox/git/testsuite/runtest "
> /tmp/ccURAQUg.o: In function `main':
> echo.c:(.text+0x1d3): undefined reference to `fflush_all'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1

Fixed in git.

> Why on earth do we have a scripts/echo.c?  What's it for?

Sometimes host's echo has no -e and/or -n. Standard even says:
"Implementations shall not support any options"

If we detect that this is the case:

test x"$ECHO" != x"" || {
        test x"`echo -ne`" = x"" || {
                # Compile and use a replacement 'echo' which understands -e -n
                test -x "$ECHO" || {
                        gcc -Os -o "$ECHO" ../scripts/echo.c || exit 1
        export ECHO

then we compile and use our own version.

> Isn't there already a coreutils/echo.c?

scripts/echo.c is a self-contained version, without libbb.h etc.


More information about the busybox mailing list