Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C App Names can cause "target pattern contains no `%'" error
#1
There is an annoying bug in the generation of make files which could lead to some head scratching. I will detail it here to help anyone who gets stumped by the error message, and add a bug entry:

Adding a c app where the name starts with an existing c app name corrupts the make file of the existing app.

Create a new project. Build.

Look at "C Language\Background Programs\capp1\capp1_debug.mak"

Code:
-Wl,--wrap,munmap \
-Wl,--wrap,select

RM = rm -f
SRCS = \
capp1.c
OBJS = $(SRCS:.c=.o)
PROG = "../../../Bin/Debug/capp1.out"
export CROSS_COMPILE=ppc_4xxFP-
export ARCH=powerpc

Add a new Background C Application called capp10. Build. There will be an error
"capp1_debug.mak:156: *** target pattern contains no `%'. Stop."

Now look again at "C Language\Background Programs\capp1\capp1_debug.mak"

Code:
-Wl,--wrap,munmap \
-Wl,--wrap,select

RM = rm -f
SRCS = \
C:/ABD/PowerPMAC/SPMM/PowerPmac3/PowerPmac3/C Language/Background Programs/capp10/capp10.c\
capp1.c
OBJS = $(SRCS:.c=.o)
PROG = "../../../Bin/Debug/capp1.out"
export CROSS_COMPILE=ppc_4xxFP-
export ARCH=powerpc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)