Page 1 of 1

make bug (paths)

PostPosted: Fri Jul 20, 2018 7:31 pm
by xenic
I encountered a bug in make 53.3 that was uploaded to OS4Depot last summer. I'm assuming it was intended to be part of the SDK since Solie uploaded it. I hope he's still monitoring these forums.

If a makefile rule has a prerequisite (file.c) preceed by a parent path like this:

ftbase.ppc.o: ../../src/base/ftbase.c
<tab>$(CC) -c $(CFLAGS) -o $@ ../../src/base/ftbase.c

make 53.3 reports this error:

make: *** No rule to make target `../../src/base/ftbase.c', needed by `ftbase.ppc.o'. Stop.

The problem is with ' ../../ ' in the rule. GCC has no problem with the path on the compile line.

There is no such problem with make 53.1; it compiles the file with no problems.

Can someone file a bug report and get make 53.1 fixed?

Re: make bug (paths)

PostPosted: Fri Jul 20, 2018 11:00 pm
by broadblues
Since the port is by Stepehen ssolie you probably email him your bug report.

I have make_533 installed but am not using it (hence the renaming to make_533) not 100% sure but I think various issue were discussed with Stephen on IRC