Thanks Filip.
Here is the minimal example repo: https://github.com/jayaprabhakar/bazel-kuzu-cgo-example
And, I've pasted the log from with the --subcommands and sandbox_debug flags ` --subcommands --sandbox_debug`
In the Kuzu repo, the shared libraries are checked in within the repo. I am not sure it makes a difference, for example: https://github.com/kuzudb/go-kuzu/tree/master/lib/dynamic/darwin.
bazel build //:kuzu-go-example --subcommands --sandbox_debug
```
INFO: Analyzed target //:kuzu-go-example (0 packages loaded, 0 targets configured).
SUBCOMMAND: # @@gazelle++go_deps+com_github_kuzudb_go_kuzu//:go-kuzu [action 'GoCompilePkg external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a', configuration: 0de042f7f216bd39770efda4fe9ac141f679167720307fb3637d83903e80fc71, execution platform: @@platforms//host:host, mnemonic: GoCompilePkg]
(cd /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/execroot/_main && \
exec env - \
CC=external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh \
CGO_ENABLED=1 \
GOARCH=arm64 \
GODEBUG='winsymlink=0' \
GOEXPERIMENT='' \
GOOS=darwin \
GOPATH='' \
GOROOT=bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ \
GOROOT_FINAL=GOROOT \
GOTOOLCHAIN=local \
PATH=external/rules_cc++cc_configure_extension+local_config_cc:/usr/bin:/bin \
ZERO_AR_DATE=1 \
bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/builder_reset/builder compilepkg -sdk external/rules_go++go_sdk+main___download_0 -goroot bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ -installsuffix darwin_arm64 -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/cgo_shared.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/connection.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/database.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/driver.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/flat_tuple.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/kuzu.h -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/prepared_statement.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/query_result.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/time_helper.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/value_helper.go -arc 'github.com/google/uuid=github.com/google/uuid=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_google_uuid/uuid.x' -arc 'github.com/shopspring/decimal=github.com/shopspring/decimal=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_shopspring_decimal/decimal.x' -importpath github.com/kuzudb/go-kuzu -p github.com/kuzudb/go-kuzu -package_list bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/packages.txt -pack bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/pack_reset/pack.exe -embedroot '' -embedroot bazel-out/darwin_arm64-fastbuild/bin -embedlookupdir external/gazelle++go_deps+com_github_kuzudb_go_kuzu -lo bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a -o bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.x -gcflags '' -cgo_go_srcs bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu_/go-kuzu.a.cgo -cppflags '-I external/gazelle++go_deps+com_github_kuzudb_go_kuzu -iquote .' -cflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -cxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -ldflags '-mmacosx-version-min=10.11 -no-canonical-prefixes -fobjc-link-runtime -headerpad_max_install_names -lc++ -lm -lc++ -Lexternal/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin -lkuzu -Wl,-rpath,external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin')
# Configuration: 0de042f7f216bd39770efda4fe9ac141f679167720307fb3637d83903e80fc71
# Execution platform: @@platforms//host:host
# Runner: sandbox-fallback
ERROR: /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/BUILD.bazel:3:11: GoCompilePkg external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a failed: (Exit 1): sandbox-exec failed: error executing GoCompilePkg command
(cd /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/execroot/_main && \
exec env - \
CC=external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh \
CGO_ENABLED=1 \
GOARCH=arm64 \
GODEBUG='winsymlink=0' \
GOEXPERIMENT='' \
GOOS=darwin \
GOPATH='' \
GOROOT=bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ \
GOROOT_FINAL=GOROOT \
GOTOOLCHAIN=local \
PATH=external/rules_cc++cc_configure_extension+local_config_cc:/usr/bin:/bin \
TMPDIR=/var/folders/vv/zf7_jpcj25sb6x2cm3_qnc800000gn/T/ \
ZERO_AR_DATE=1 \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/sandbox.sb /var/tmp/_bazel_jp/install/238d60da91a7fad3983c54b8c9e828b0/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/stats.out' bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/builder_reset/builder compilepkg -sdk external/rules_go++go_sdk+main___download_0 -goroot bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ -installsuffix darwin_arm64 -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/cgo_shared.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/connection.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/database.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/driver.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/flat_tuple.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/kuzu.h -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/prepared_statement.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/query_result.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/time_helper.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/value_helper.go -arc 'github.com/google/uuid=github.com/google/uuid=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_google_uuid/uuid.x' -arc 'github.com/shopspring/decimal=github.com/shopspring/decimal=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_shopspring_decimal/decimal.x' -importpath github.com/kuzudb/go-kuzu -p github.com/kuzudb/go-kuzu -package_list bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/packages.txt -pack bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/pack_reset/pack.exe -embedroot '' -embedroot bazel-out/darwin_arm64-fastbuild/bin -embedlookupdir external/gazelle++go_deps+com_github_kuzudb_go_kuzu -lo bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a -o bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.x -gcflags '' -cgo_go_srcs bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu_/go-kuzu.a.cgo -cppflags '-I external/gazelle++go_deps+com_github_kuzudb_go_kuzu -iquote .' -cflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -cxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -ldflags '-mmacosx-version-min=10.11 -no-canonical-prefixes -fobjc-link-runtime -headerpad_max_install_names -lc++ -lm -lc++ -Lexternal/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin -lkuzu -Wl,-rpath,external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin')
ld: warning: search path 'external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin' not found
ld: library 'kuzu' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
compilepkg: error running subcommand external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh: exit status 1
Target //:kuzu-go-example failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.231s, Critical Path: 2.13s
INFO: 2 processes: 2 internal.
ERROR: Build did NOT complete successfully
```
I think you can use `go_deps.patches`
bazel build //:kuzu-go-example --subcommands --sandbox_debug
```INFO: Analyzed target //:kuzu-go-example (0 packages loaded, 0 targets configured).
SUBCOMMAND: # @@gazelle++go_deps+com_github_kuzudb_go_kuzu//:go-kuzu [action 'GoCompilePkg external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a', configuration: 0de042f7f216bd39770efda4fe9ac141f679167720307fb3637d83903e80fc71, execution platform: @@platforms//host:host, mnemonic: GoCompilePkg]
(cd /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/execroot/_main && \
exec env - \
CC=external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh \
CGO_ENABLED=1 \
GOARCH=arm64 \
GODEBUG='winsymlink=0' \
GOEXPERIMENT='' \
GOOS=darwin \
GOPATH='' \
GOROOT=bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ \
GOROOT_FINAL=GOROOT \
GOTOOLCHAIN=local \
PATH=external/rules_cc++cc_configure_extension+local_config_cc:/usr/bin:/bin \
ZERO_AR_DATE=1 \
bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/builder_reset/builder compilepkg -sdk external/rules_go++go_sdk+main___download_0 -goroot bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ -installsuffix darwin_arm64 -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/cgo_shared.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/connection.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/database.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/driver.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/flat_tuple.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/kuzu.h -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/prepared_statement.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/query_result.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/time_helper.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/value_helper.go -arc 'github.com/google/uuid=github.com/google/uuid=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_google_uuid/uuid.x' -arc 'github.com/shopspring/decimal=github.com/shopspring/decimal=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_shopspring_decimal/decimal.x' -importpath github.com/kuzudb/go-kuzu -p github.com/kuzudb/go-kuzu -package_list bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/packages.txt -pack bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/pack_reset/pack.exe -embedroot '' -embedroot bazel-out/darwin_arm64-fastbuild/bin -embedlookupdir external/gazelle++go_deps+com_github_kuzudb_go_kuzu -lo bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a -o bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.x -gcflags '' -cgo_go_srcs bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu_/go-kuzu.a.cgo -cppflags '-I external/gazelle++go_deps+com_github_kuzudb_go_kuzu -iquote .' -cflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -cxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -ldflags '-mmacosx-version-min=10.11 -no-canonical-prefixes -fobjc-link-runtime -headerpad_max_install_names -lc++ -lm -lc++ -Lexternal/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin -lkuzu -Wl,-rpath,external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin')
# Configuration: 0de042f7f216bd39770efda4fe9ac141f679167720307fb3637d83903e80fc71
# Execution platform: @@platforms//host:host
# Runner: sandbox-fallback
ERROR: /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/BUILD.bazel:3:11: GoCompilePkg external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a failed: (Exit 1): sandbox-exec failed: error executing GoCompilePkg command
(cd /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/execroot/_main && \
exec env - \
CC=external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh \
CGO_ENABLED=1 \
GOARCH=arm64 \
GODEBUG='winsymlink=0' \
GOEXPERIMENT='' \
GOOS=darwin \
GOPATH='' \
GOROOT=bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ \
GOROOT_FINAL=GOROOT \
GOTOOLCHAIN=local \
PATH=external/rules_cc++cc_configure_extension+local_config_cc:/usr/bin:/bin \
TMPDIR=/var/folders/vv/zf7_jpcj25sb6x2cm3_qnc800000gn/T/ \
ZERO_AR_DATE=1 \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/sandbox.sb /var/tmp/_bazel_jp/install/238d60da91a7fad3983c54b8c9e828b0/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/private/var/tmp/_bazel_jp/28ffd577cce0e38c47a5df6e21b01b01/sandbox/darwin-sandbox/54/stats.out' bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/builder_reset/builder compilepkg -sdk external/rules_go++go_sdk+main___download_0 -goroot bazel-out/darwin_arm64-fastbuild/bin/external/rules_go+/stdlib_ -installsuffix darwin_arm64 -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/cgo_shared.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/connection.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/database.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/driver.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/flat_tuple.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/kuzu.h -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/prepared_statement.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/query_result.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/time_helper.go -src external/gazelle++go_deps+com_github_kuzudb_go_kuzu/value_helper.go -arc 'github.com/google/uuid=github.com/google/uuid=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_google_uuid/uuid.x' -arc 'github.com/shopspring/decimal=github.com/shopspring/decimal=bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_shopspring_decimal/decimal.x' -importpath github.com/kuzudb/go-kuzu -p github.com/kuzudb/go-kuzu -package_list bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/packages.txt -pack bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_go++go_sdk+main___download_0/pack_reset/pack.exe -embedroot '' -embedroot bazel-out/darwin_arm64-fastbuild/bin -embedlookupdir external/gazelle++go_deps+com_github_kuzudb_go_kuzu -lo bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.a -o bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu.x -gcflags '' -cgo_go_srcs bazel-out/darwin_arm64-fastbuild/bin/external/gazelle++go_deps+com_github_kuzudb_go_kuzu/go-kuzu_/go-kuzu.a.cgo -cppflags '-I external/gazelle++go_deps+com_github_kuzudb_go_kuzu -iquote .' -cflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -cxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -objcxxflags '-U_FORTIFY_SOURCE -fstack-protector -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++17 -mmacosx-version-min=10.11 -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -fPIC' -ldflags '-mmacosx-version-min=10.11 -no-canonical-prefixes -fobjc-link-runtime -headerpad_max_install_names -lc++ -lm -lc++ -Lexternal/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin -lkuzu -Wl,-rpath,external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin')
ld: warning: search path 'external/gazelle++go_deps+com_github_kuzudb_go_kuzu/lib/dynamic/darwin' not found
ld: library 'kuzu' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
compilepkg: error running subcommand external/rules_cc++cc_configure_extension+local_config_cc/cc_wrapper.sh: exit status 1
Target //:kuzu-go-example failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.231s, Critical Path: 2.13s
INFO: 2 processes: 2 internal.
ERROR: Build did NOT complete successfully
```