Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ferret uses incorrect path for intermediate c++ file when compiling with g++ #45

Open
yesudeep opened this issue Jul 18, 2020 · 0 comments

Comments

@yesudeep
Copy link

❯ /bin/bash -c 'ferret --disable-formatting -c -o '\''bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum.cpp'\'' -b '\''bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum'\'' -i '\''bazel/rules_ferret/tests/lazy_sum.clj'\'''
20:31:29 INFO dir => bazel/rules_ferret/tests/
20:31:29 INFO file => bazel/rules_ferret/tests/lazy_sum.clj
20:31:31 INFO compiled => bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum.cpp
20:31:31 INFO building => g++ -std=c++11 -x c++ lazy_sum.cpp -o bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum
20:31:31 WARN build error
20:31:31 WARN ld: can't open output file for writing: bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum, errno=2 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
g++ -std=c++11 -x c++ lazy_sum.cpp -o bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum

should be

g++ -std=c++11 -x c++ bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum.cpp -o bazel-out/darwin-fastbuild/bin/bazel/rules_ferret/tests/lazy_sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant