Lots of target override warnings running cbuild Makefile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Toolchain Build Automation |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Running cbuild Makefiles generally produces lots of warnings/errors, which complicates debugging real issues. One of the most noisy warnings are:
make[3]: Entering directory `/home/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
../../lib/
make -f ../../lib/fetch.mk fetch F=gcc-linaro-
From http:// theory. uwinnipeg. ca/localfiles/ infofiles/ make/make_ 121.html :
----------------
`warning: overriding commands for target `xxx''
`warning: ignoring old commands for target `xxx''
GNU make allows commands to be specified only once per target (except for double-colon rules). If you give commands for a target which already has been defined to have commands, this warning is issued and the second set of commands will overwrite the first set.
----------------
I.e., GNU make doesn't appreciate such usage. However (http:// www.gnu. org/software/ make/manual/ make.html# Multiple- Rules): "As a special case, if the file's name begins with a dot, no error message is printed." So, that would be easy way to fix that issue.