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
--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
CXX = /opt/local/bin/clang++-mp-3.5
CXXFLAGS += -std=c++1y
CXXFLAGS += -I/opt/local/include
CXXFLAGS += -stdlib=libc++
CXXFLAGS += -g
CXXFLAGS += -O0
#CXXFLAGS += -O3
#CXXFLAGS += -emit-llvm
CXXFLAGS += -Wall
CXXFLAGS += -pedantic
CXXFLAGS += -Wextra
CXXFLAGS += -Werror
CXXFLAGS += -Wfatal-errors
CXXFLAGS += -Winvalid-pch
CXXFLAGS += -Wno-deprecated-register
CXXFLAGS += -Wno-import-preprocessor-directive-pedantic
CXXFLAGS += -Wno-missing-braces
CXXFLAGS += -Wno-sign-compare
CXXFLAGS += -Wno-unused-comparison
CXXFLAGS += -Wno-unused-parameter
CXXFLAGS += -Wno-unused-function
CXXFLAGS += -Wno-unused-value
CXXFLAGS += -Wno-unused-private-field
CXXFLAGS += -Wno-unused-variable
CXXFLAGS += -Wno-variadic-macros
CXXFLAGS += -Wno-vla-extension
#CXXFLAGS += -fobjc-arc
CXXFLAGS += -Wno-bitwise-op-parentheses
CXXFLAGS += -D __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
LINKFLAGS += -lportaudiocpp
LINKFLAGS += -lyajl
LINKFLAGS += -lglfw
LINKFLAGS += -lpng
LINKFLAGS += -g
LINKFLAGS += -lobjc
LINKFLAGS += -framework OpenGL
LINKFLAGS += -framework Syphon
LINKFLAGS += -framework Foundation
LINKFLAGS += -L/opt/local/lib
LINKFLAGS += -std=c++1y
LINKFLAGS += -rdynamic
LINKFLAGS += -stdlib=libc++
: vx |> ./vx header > %o |> vec.h
: vx |> ./vx source > %o |> vec.c++
: vx |> ./vx test > %o |> vec_test.h
: common.h |> ^ cc %f^ $(CXX) $(CXXFLAGS) -x objective-c++-header %f -c -o %o
|> out/%f.gch {gch}
: foreach *.c++ | vec.h vec_test.h {gch} |> ^ cc %f^ $(CXX) $(CXXFLAGS) -x
objective-c++ -include-pch out/common.h.gch -c %f -o %o |> out/%B.o
: out/*.o |> ^ ld main^ $(CXX) $(LINKFLAGS) %f -o %o |> out/main