berty / berty

Berty is a secure peer-to-peer messaging app that works with or without internet access, cellular data or trust in the network
https://berty.tech
Other
7.62k stars 388 forks source link

bazel issue #1400

Closed berty-assistant closed 5 years ago

berty-assistant commented 5 years ago
macmini:go pnj$ time make bazel.banner
brew tap bazelbuild/tap
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
alp                          gleam                        mysql-connector-c++@1.1      traefik@1
appium                       kepubify                     pnetcdf                      wagyu
aws-cdk                      libtensorflow@1              ripgrep-all
dafny                        llvm@8                       tmuxinator
==> Updated Formulae
go ✔                   diskus                 gspell                 llvm                   rust
afl-fuzz               django-completion      gst-editing-services   lmod                   sbcl
aliyun-cli             doctl                  gst-libav              lxc                    serf
amazon-ecs-cli         dos2unix               gst-plugins-bad        maxwell                serverless
ammonite-repl          dosbox-x               gst-plugins-base       micronaut              shairport-sync
angle-grinder          drone-cli              gst-plugins-good       minio                  shared-mime-info
angular-cli            embulk                 gst-plugins-ugly       minio-mc               ship
apache-arrow           entr                   gst-python             minizip2               shogun
apache-geode           erlang                 gst-rtsp-server        mkl-dnn                sk
armadillo              eslint                 gst-validate           mono                   skaffold
augustus               ethereum               gstreamer              mosh                   sofia-sip
aws-okta               evince                 hadoop                 mosquitto              sonarqube-lts
aws-sdk-cpp            exim                   haproxy                mutt                   sonobuoy
awscli                 expat                  hebcal                 ne                     sops
azure-cli              exploitdb              helmfile               newman                 sourcekitten
b2-tools               faas-cli               hlint                  newsboat               spdlog
babel                  fetchmail              homebank               nim                    sqlmap
balena-cli             ffmpeg                 hub                    node                   squashfs
bear                   ffsend                 icdiff                 now-cli                src
bee                    firebase-cli           igv                    nvm                    starship
benthos                flow                   imagemagick            opencv@3               step
bettercap              fluid-synth            imagemagick@6          p11-kit                syncthing
bit                    fn                     iso-codes              packer                 telegraf
bnd                    folly                  istioctl               paket                  teleport
buildkit               fribidi                janet                  parallel               terraformer
caffe                  fselect                jena                   phoronix-test-suite    terragrunt
cake                   fwup                   jenkins                php                    tflint
calicoctl              gammu                  jenkins-lts            php-code-sniffer       tmuxinator-completion
cargo-completion       gcc                    jfrog-cli-go           php@7.2                tomcat@8
ccls                   geant4                 joplin                 picard-tools           topgrade
certstrap              geographiclib          juju                   pipx                   traefik
cfn-lint               ginac                  k3d                    ponyc                  trafficserver
cgal                   git-annex              kahip                  presto                 ucloud
chamber                git-cola               kcov                   protobuf               vala
checkstyle             git-secret             knot                   protobuf-c             varnish
cimg                   gitlab-runner          kops                   pspg                   vim
cloc                   glib                   krakend                pulumi                 wabt
cmake                  glooctl                kubeaudit              pumba                  webpack
cnats                  gmic                   kubebuilder            quickjs                wiremock-standalone
cocoapods              gmime                  kubecfg                rabbitmq               wireshark
coinutils              gnutls                 kubernetes-cli         rancher-cli            wsk
collectd               go-bindata             kubeseal               range-v3               wskdeploy
conan                  go-jira                languagetool           rc                     wtf
contentful-cli         go@1.12                lcm                    rclone                 xcodegen
convox                 godep                  libcaca                recon-ng               xsimd
cromwell               goreleaser             libfabric              redis                  yarn
crystal                gosu                   libomp                 reop                   you-get
dbmate                 grakn                  libphonenumber         rke                    youtube-dl
deno                   groonga                libpulsar              rom-tools              zbackup
devspace               groovysdk              librealsense           roswell                zig
dhall-bash             grpc                   libtensorflow          ruby                   zola
dhall-json             grpcurl                lightgbm               ruby-build
==> Deleted Formulae
llvm@3.9                               llvm@5                                 pbrt

==> Tapping bazelbuild/tap
Cloning into '/usr/local/Homebrew/Library/Taps/bazelbuild/homebrew-tap'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 1), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Tapped 3 formulae (42 files, 50.6KB).
brew install bazelbuild/tap/bazel
==> Installing bazel from bazelbuild/tap
==> Downloading https://releases.bazel.build/0.29.1/release/bazel-0.29.1-installer-darwin-x86_64.sh
######################################################################## 100.0%
==> ./bazel-0.29.1-installer-darwin-x86_64.sh --prefix=/private/tmp/bazel-20191004-30591-eeo3dt
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/bazel/0.29.1: 6 files, 39.5MB, built in 11 seconds
GO111MODULE=on go mod vendor
go: finding github.com/gogo/protobuf v1.3.0
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/jinzhu/gorm v1.9.11
go: finding github.com/peterbourgon/ff v1.6.0
go: finding google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107
go: finding go.uber.org/atomic v1.4.0
go: finding go.uber.org/zap v1.10.0
go: finding go.uber.org/multierr v1.2.0
go: finding github.com/mitchellh/go-wordwrap v1.0.0
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding github.com/jinzhu/inflection v1.0.0
go: finding github.com/lib/pq v1.1.1
go: finding github.com/mattn/go-sqlite3 v1.11.0
go: finding github.com/jinzhu/now v1.0.1
go: finding github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3
go: finding github.com/kisielk/errcheck v1.2.0
go: finding golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563
go: finding golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: finding cloud.google.com/go v0.37.4
go: finding github.com/googleapis/gax-go/v2 v2.0.4
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
go: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024
go: finding github.com/google/martian v2.1.0+incompatible
go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421
go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f
go: finding go.opencensus.io v0.20.1
go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c
go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: finding google.golang.org/api v0.3.1
go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a
go: finding github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829
go: finding github.com/apache/thrift v0.12.0
go: finding github.com/openzipkin/zipkin-go v0.1.6
go: finding github.com/Shopify/toxiproxy v2.1.4+incompatible
go: finding github.com/pierrec/lz4 v2.0.5+incompatible
go: finding github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: finding github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: finding github.com/eapache/queue v1.1.0
go: finding golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b
go: finding google.golang.org/grpc v1.17.0
go: finding github.com/gogo/protobuf v1.2.0
go: finding github.com/Shopify/sarama v1.19.0
go: finding github.com/eapache/go-resiliency v1.1.0
go: finding golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
go: finding github.com/prometheus/common v0.2.0
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f
go: finding github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/prometheus/client_golang v0.9.1
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/gogo/protobuf v1.3.0
go: downloading github.com/peterbourgon/ff v1.6.0
go: downloading github.com/jinzhu/gorm v1.9.11
go: downloading go.uber.org/zap v1.10.0
go: extracting github.com/peterbourgon/ff v1.6.0
go: extracting go.uber.org/zap v1.10.0
go: extracting github.com/jinzhu/gorm v1.9.11
go: downloading github.com/mattn/go-sqlite3 v1.11.0
go: extracting github.com/golang/protobuf v1.3.2
go: downloading google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading go.uber.org/atomic v1.4.0
go: extracting github.com/jinzhu/inflection v1.0.0
go: extracting go.uber.org/atomic v1.4.0
go: downloading go.uber.org/multierr v1.2.0
go: extracting go.uber.org/multierr v1.2.0
go: extracting github.com/gogo/protobuf v1.3.0
go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: extracting github.com/mattn/go-sqlite3 v1.11.0
go: downloading golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: downloading golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: extracting google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107
go: extracting golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
touch vendor
/usr/local/bin/bazel  run  //:gazelle
Starting local Bazel server and connecting to it...
ERROR: /private/var/tmp/_bazel_pnj/19832668af8c76163523b166471a5d77/external/local_config_cc/BUILD:64:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-armeabi-v7a: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration
ERROR: Analysis of target '//:gazelle' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-armeabi-v7a' failed; build aborted
INFO: Elapsed time: 28.196s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (44 packages loaded, 6545 targets configured)
FAILED: Build did NOT complete successfully (44 packages loaded, 6545 targets configured)
    Fetching @com_github_pmezard_go_difflib; Restarting. 6s
    Fetching @bazel_gazelle_go_repository_tools; fetching 6s
    Fetching @com_github_bazelbuild_buildtools; Restarting.
    Fetching @com_github_pelletier_go_toml; Restarting.
make: *** [cmd/bertychat/BUILD.bazel] Error 1

real    2m5.903s
user    0m58.782s
sys 0m41.161s
macmini:go pnj$ 
aeddi commented 5 years ago

Fix for this error:

ERROR: /private/var/tmp/_bazel_aeddi/9483d74943f1b89597516dbdfbe32484/external/local_config_cc/BUILD:64:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-armeabi-v7a: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
bazel clean --expunge
berty-assistant commented 5 years ago

fixed, thx!