setting up boost locally as external repository

1,013 views
Skip to first unread message

das.ay...@gmail.com

unread,
Jul 22, 2017, 4:58:52 AM7/22/17
to bazel-discuss
I have a directory tree like this:

boost/
bazel/
boost.bzl // contains "boost_library" function from https://github.com/nelhage/rules_boost/blob/master/boost/boost.bzl
BUILD // blank
boost/ // the original boost headers folder from original boost dist
lib/ // the original boost sources folder from original boost dist
BUILD
WORKSPACE

The BUILD file looks like this one:
-----------------------------------
https://github.com/nelhage/rules_boost/blob/master/BUILD.boost
with properly loading "boost.bzl"

The WORKSPACE is just:
----------------------
workspace( name = "boost" )

The issue:
----------
Now I am trying to build individual components (bazel build //:<component>).
Some of the components are failing to build. Some of them are failing to build producing similar errors (not finding header files) .. one is shown below (for "Boost.Container")

INFO: Found 1 target...
ERROR: /home/spyder/codebase/boost/BUILD:103:1: C++ compilation of rule '//:container' failed: Process exited with status 1 [sandboxed].
libs/container/src/dlmalloc.cpp:12:47: fatal error: boost/container/detail/dlmalloc.hpp: No such file or directory
compilation terminated.
Use --strategy=CppCompile=standalone to disable sandboxing for the failing actions.
Target //:container failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 7.525s, Critical Path: 3.76s

Please help.

Marcel Hlopko

unread,
Jul 26, 2017, 7:51:08 AM7/26/17
to das.ay...@gmail.com, bazel-discuss

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/1f5c3878-5a64-4fad-9284-64a43b70d909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle | Registergericht und -nummer: Hamburg, HRB 86891
Reply all
Reply to author
Forward
0 new messages