Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2015 06:01:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204512] [NEW PORT] devel/bazel: Correct, reproducible, and fast builds for everyone
Message-ID:  <bug-204512-13-UaDprzLO7U@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204512-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204512-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204512

Peter Jeremy <peterj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peterj@FreeBSD.org

--- Comment #4 from Peter Jeremy <peterj@FreeBSD.org> ---
Note that whilst this port builds and installs, I can't get it to actually
work.

Trying the first example at http://bazel.io/docs/getting-started.html, I get:

server% rm -fr ~/.cache
server% ls -lR         
total 26
-rw-r--r--  1 peter  wheel  117 22 Nov 16:31 BUILD
-rw-r--r--  1 peter  wheel    0 22 Nov 16:31 WORKSPACE
drwxr-xr-x  3 peter  wheel    3 22 Nov 16:30 src

./src:
total 17
drwxr-xr-x  3 peter  wheel  3 22 Nov 16:30 main

./src/main:
total 17
drwxr-xr-x  3 peter  wheel  3 22 Nov 16:30 java

./src/main/java:
total 17
drwxr-xr-x  3 peter  wheel  3 22 Nov 16:30 com

./src/main/java/com:
total 17
drwxr-xr-x  2 peter  wheel  4 22 Nov 16:30 example

./src/main/java/com/example:
total 17
-rw-r--r--  1 peter  wheel  122 22 Nov 16:30 Greeting.java
-rw-r--r--  1 peter  wheel  130 22 Nov 16:30 ProjectRunner.java
server% bazel build //:my-runner        
Extracting Bazel installation...
.......
ERROR: Loading of target '//tools/cpp:toolchain' failed; build aborted: no such
package 'tools/cpp': BUILD file not found on package path.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.628s

There is a //tools/cpp in ${WRKSRC} and it winds up unpacked in
~/.cache/bazel/_bazel_peter/install/74224bf095e5083be582f54ee1273ae7/_embedded_binaries/android_tools/tools

A ktrace shows that cpp/BUILD relative to both that directory and ./tools is
checked (with lstat(2)) but the absence of the latter path appears to trigger
the error message.  I'm still trying to work out what the correct fix is.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204512-13-UaDprzLO7U>