-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Description
The libtool options are wrong:
~/test/cpp$ ~/gitroot/bazel/output/bazel build :lib
................
INFO: Found 1 target...
INFO: From Linking liblib.a:
error: /Library/Developer/CommandLineTools/usr/bin/libtool: no files specified
Usage: /Library/Developer/CommandLineTools/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Library/Developer/CommandLineTools/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
ERROR: /Users/kchodorow/test/cpp/BUILD:1:1: Linking of rule '//:lib' failed: libtool failed: error executing command /usr/bin/libtool -static -s -o bazel-out/local_darwin-fastbuild/bin/liblib.a: com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //:lib failed to build
To reproduce, create a rule like cc_library(name = "whatever", srcs = ["foo.a"]) on OS X.
Metadata
Metadata
Assignees
Labels
No labels