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

Fails on MacOS because of -P option specific to GNU grep #89

Closed
benradf opened this issue May 9, 2023 · 1 comment
Closed

Fails on MacOS because of -P option specific to GNU grep #89

benradf opened this issue May 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@benradf
Copy link
Member

benradf commented May 9, 2023

Describe the bug

grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
error: called bad bazel
dot - graphviz version 7.1.0 (20230121.1956)
curl 7.87.0 (x86_64-apple-darwin22.0) libcurl/7.87.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
Release-Date: 2022-12-21
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
jq-1.6
dyld[6246]: Library not loaded: /nix/store/26k4g66lmvhlkvh5jv9k7vd28mizk7gp-libiconv-50/lib/libiconv-nocharset.dylib
  Referenced from: <no uuid> /private/var/tmp/_bazel_ksmiley/c8513c989333be3c89713e16206869b2/external/skyscope_macos/skyscope/closure/libiconv.dylib
  Reason: tried: '/nix/store/26k4g66lmvhlkvh5jv9k7vd28mizk7gp-libiconv-50/lib/libiconv-nocharset.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/26k4g66lmvhlkvh5jv9k7vd28mizk7gp-libiconv-50/lib/libiconv-nocharset.dylib' (no such file), '/nix/store/26k4g66lmvhlkvh5jv9k7vd28mizk7gp-libiconv-50/lib/libiconv-nocharset.dylib' (no such file), '/usr/local/lib/libiconv-nocharset.dylib' (no such file), '/usr/lib/libiconv-nocharset.dylib' (no such file, not in dyld cache)Library not loaded: /nix/store/jjridp9bvflshikcqdx1icy8m7d6a1gq-libcxxabi-11.1.0/lib/libc++abi.1.dylib
  Referenced from: <no uuid> /private/var/tmp/_bazel_ksmiley/c8513c989333be3c89713e16206869b2/external/skyscope_macos/skyscope/closure/libc++.1.0.dylib
  Reason: tried: '/nix/store/jjridp9bvflshikcqdx1icy8m7d6a1gq-libcxxabi-11.1.0/lib/libc++abi.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/jjridp9bvflshikcqdx1icy8m7d6a1gq-libcxxabi-11.1.0/lib/libc++abi.1.dylib' (no such file), '/nix/store/jjridp9bvflshikcqdx1icy8m7d6a1gq-libcxxabi-11.1.0/lib/libc++abi.1.dylib' (no such file), '/usr/local/lib/libc++abi.1.dylib' (no such file), '/usr/lib/libc++abi.1.dylib' (no such file, not in dyld cache)
/private/var/tmp/_bazel_ksmiley/c8513c989333be3c89713e16206869b2/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/external/skyscope_macos/skyscope/import.runfiles/./skyscope_macos/skyscope/bin/skyscope: line 27:  6246 Abort trap: 6           "$SKYSCOPE_BINARY" +RTS -N -RTS "$@"

Additional context
https://bazelbuild.slack.com/archives/CA31HN1T3/p1683560345555339?thread_ts=1683196684.915689&cid=CA31HN1T3

@benradf benradf added the bug Something isn't working label May 9, 2023
@benradf
Copy link
Member Author

benradf commented Dec 4, 2023

Since the change to distribute Skyscope on Linux as a single statically linked binary, there is no longer a wrapper script that calls grep, so this issue is resolved (though to use Skyscope on MacOS now, you'll have to build it from source).

@benradf benradf closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant