Hi,

When running "make -j test", I always got an error.
Basic debug information:

$ make --debug=b -j2 test
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
 File 'test' does not exist.
   File 'clean-s' does not exist.
  Must remake target 'clean-s'.
   File 'hello-exe' does not exist.
  Must remake target 'hello-exe'.
   File 'hello-run' does not exist.
  Must remake target 'hello-run'.
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
------------ hello-exe ------------
../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello && ./hello || 
(set -x; ../tcc -vv; ldd ../tcc; exit 1)
Updating makefiles....
Updating goal targets....
 File 'clean' does not exist.
Must remake target 'clean'.
Hello World
   File 'libtest' does not exist.
  Must remake target 'libtest'.
------------ hello-run ------------
../tcc -B.. -I../include -I.. -I.. -run ../examples/ex1.c || (set -x; ../tcc 
-vv; ldd ../tcc; exit 1)
Hello World
   File 'test3' does not exist.
     File 'test.ref' does not exist.
    Must remake target 'test.ref'.
------------ libtest ------------
./libtcc_test -B.. -I../include -I.. -I..
make: ./libtcc_test: Command not found
make: *** [Makefile:74: libtest] Error 127
make: *** Waiting for unfinished jobs....
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
 File 'clean' does not exist.
Must remake target 'clean'.
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
 File 'clean' does not exist.
Must remake target 'clean'.

The reason was

all test : clean-s $(TESTS)

This makes no sense to clean and run the tests at the same time.
I've changed that to

all test :
        $(MAKE) clean-s
        $(MAKE) $(TESTS)

in order to clean *before* running the tests.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to