I’m trying to setup a local dev environment for pa...
# general
l
I’m trying to setup a local dev environment for pants itself but found some issues bootstrapping. 1) The tool to download protoc doesn’t find a binary for my version of macos (
mac/10.14
) and couldn’t continue. I just went ahead and installed protoc from homebrew and made a symlink to be able to continue. 2) After that I get a new error still relating to compiling: https://gist.github.com/gaqzi/7a29c00aa0bfb3dd13d6b0d63875fd1f Before starting all of this I configured the environment variables specified in https://www.pantsbuild.org/howto_contribute.html for making sure openssl was available, and I also verified that openssl is installed and available at that location. Any suggestion for what I can do? 🙂
trying to get it building so that I can try and address this issue I raised: https://github.com/pantsbuild/pants/issues/7616 Maybe there is some other way of trying to work on it though? How I went about it is just downloading the repo and then doing
./pants test src/python::
❤️ 1
a
Hello!
I’m sorry for the hassle! Can you show me the output of your
echo $LDFLAGS
?
a
i believe the protoc issue has been fixed since version 1.12.0
oop, that's evidently wrong
i believe the error you described in the gist is probably from
cannot find GOROOT directory: /go
and possibly requires that env var to be set
from https://github.com/golang/go/issues/21271 it's possible that we should be setting that ourselves or checking that it is set
l
@average-vr-56795: sorry for the delay, got pulled into a meeting and forgot about this 🙂
Copy code
~/w/pants $ echo $LDFLAGS
-L/usr/local/opt/openssl/lib
 ~/w/pants $ echo $CPPFLAGS
-I/usr/local/opt/openssl/include
 ~/w/pants $ echo $PATH/usr/local/opt/openssl/bin /Users/ba/bin /Users/ba/.pyenv/versions/3.6.1/bin /Users/ba/.pyenv/versions/2.7.12/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Applications/VMware <http://Fusion.app/Contents/Public|Fusion.app/Contents/Public>`
(I’m using fish so the paths look a bit wonky)
also
Copy code
$ echo $GOROOT
/Users/ba/go
$ go version
go version go1.11.5 darwin/amd64
a
It looks like you’re at a super old sha…
Way before the OSX forwards compatibility fix that @aloof-angle-91616 linked to
In particular I’m seeing in your log:
Copy code
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404
Which are silent failures I imagine we’ve fixed long since…
So… Any reason you need to be at such an old sha?
l
I tried it out on master at first but it failed there too, maybe it’ll work better now that I figured out protoc. I had it checked out on the head of 15.0.x just because I had issues getting it running (that said, I may well have messed up setting the head of it properly). Trying again on master now… 🙂
sadly still failing, but it’s a different error now. I put in the sha I’m on in the gist
thanks for helping out!
a
wow, that's interesting
this^ might be the kind of error motivating a native-engine binary build cache (like mozilla does for firefox) cc @happy-kitchen-89482
also maybe @witty-crayon-22786 might you be aware of what type of error this gist^ is showing in building rust from the pants repo
w
Hm. A sufficiently old rust install on your path, maybe?
Or an old rust checkout?
Can nuke
~/. cache/pants
for the latter thing
👍 1
And ... run
rustup update
for the former thing (although we don't require a rust install, so it shouldn't be leaking)