Hi all,
I have a project where turning on the "-g" to clang causes the build to fail.
The first rule of the tupfile (attached) builds a pch from the "common.h" header file. When I uncomment "#CXXFLAGS += -g", I get a bunch of errors like the following:
* 2) cc view.program.c++
fatal error: cannot open file '/Users/rodarmor/pkg/rmr/src/.tup/mnt/@tupjob-1831/Users/rodarmor/pkg/rmr/src/common.h': Operation not permitted
1 error generated.
*** tup errors ***
*** Command ID=1631 failed with return value 1
tup error: Expected to write to file 'view.program.o' from cmd 1631 but didn't
*** Additionally, command 1631 failed to process input dependencies. These should probably be fixed before addressing the command failure.
I think that "-g" is making clang all of a sudden look for symbols in common.h, which it can't open. Is that what's actually happening, and any ideas on how to fix it?
Thanks!
Best,
Casey