Questions tagged [buck]

Buck is a build system developed and used by Facebook. It encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.

Buck is a super-fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

It is used at Facebook to build the Facebook's main Android app, Messenger, and Instagram as well as internal infrastructure at Facebook. The Gerrit project also uses it.

112 questions
1
vote
1 answer

Buck exopackage multi-dex support?

According to this thread, Buck at the moment does not have full multi-dexing support - at least not in the sense of how multi-dexing is being solved with 'official' solutions. What I'm confused about: is this problem solved if I only go the…
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
1
vote
1 answer

How to use custom Annotation Processors with Buck?

As the title states - I'd like use custom Java Annotation Processors with Buck (e.g. Dagger 1 / 2). Checking out the documentation did not reveal any evident annotation-processing related properties for any Java (or Android) related build rules, and…
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
1
vote
1 answer

Why Is android-support-v4.jar Not Added In Buck AntennaPod Example?

I am working through the AntennaPod and looking at how it builds the submodules folder. There is a jar file android-support-v4.jar that is part of this project. I don't see anywhere in the code where this .jar is actually added. I also don't see it…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
1
vote
0 answers

Can't build buck

I execute following steps and get an error when Ant builds the buck buildsystem. Apache Ant(TM) version 1.9.6 compiled on June 29 2015 git clone https://github.com/facebook/buck.git cd buck ant Buildfile: /Users//01_Developer…
Philipp
  • 75
  • 2
  • 9
1
vote
4 answers

Buck build failing for "events-logs" Gerrit plugin (jar)

I am trying to build Gerrit plugin "events-log" jar ( https://gerrit.googlesource.com/plugins/events-log) via Buck build, but its failing with below error: root@jenkins-test:~/events-log# ll drwxr-xr-x 7 root root 4096 Jun 29 13:25 ./ drwxrwxr-x 24…
Rahul
  • 11
  • 1
  • 2
1
vote
1 answer

How to specify the gtest dependency for a cxx_test target when using Buck

I am trying to convert an existing googletest testcase to be built using Buck. This looks like it is straight forward using the cxx_test build target. However, when trying to build I get an error: BUILD FAILED: .buckconfig: cxx:gtest_dep must be…
Chris Smith
  • 18,244
  • 13
  • 59
  • 81
0
votes
0 answers

Buck2 can't create inotify watchers

I'm following the getting started guide for buck2. My system is Ubuntu 22.04 (Jammy). Installation worked with: $ rustup install nightly-2023-05-28 cargo +nightly-2023-05-28 install --git https://github.com/facebook/buck2.git buck2 # After…
CodeMonkey
  • 4,067
  • 1
  • 31
  • 43
0
votes
2 answers

Can I compile ios project by using bazel on Windows/linux machine?

Is it possible to use Bazel or Buck to compile an iOS project in CI/CD on Windows/Linux machines? We want to avoid using a Mac machine in CI/CD due to its significantly higher cost compared to other machines. So, my question is: Can we compile and…
zkglr
  • 65
  • 8
0
votes
0 answers

Build failed for rescuing Gradle/Buck/react/Android/Fastlane project - More than one variant of project [...] matches the consumer attributes

I try to revive an old React/Gradle/Buck/Android/Fastlane project for a friend whose developer moved whithout telling anybody anything. The task was just to change the server of the app, but well I cannot build it. First I installed all the (already…
0
votes
1 answer

If a logging warning occurs before __main__, how is it being called?

I'm working on a corporate python program which uses buck build. When I run part of the program, abc.py (via a .par file), then it runs the program starting with if __name__ == "__main__" etc. However, I'm trying to find source of logging warnings…
pongoS
  • 316
  • 1
  • 3
  • 14
0
votes
1 answer

How to find which part of a binary requires a certain version of a certain dependency?

I am compiling some inherited code onto a linux platform. When I try to run it, I get a library versioning error: [aardvark@aardvark-burrow /data/users/aardvark/project-source] …
0
votes
1 answer

Buck error using curl: due to protocol(http)

Using Ubuntu-14.04LTS system and with the instructions provided in this Link i am trying to build the gerrit delete-project.jar file for my gerrit version-2.13, However during build it fails with below error. Download…
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
1 answer

Change buck adb port

Is there a way to change the default port that buck uses for adb? I have an adb tunneling on a server to use my local machine connected devices, so I'm using a different port that the default one (5037). But when I do a buck install it spawns a new…
vicmns
  • 724
  • 1
  • 8
  • 20
0
votes
1 answer

How to use Facebook BUCK with DTrace files?

So, if you open https://github.com/airbnb/BuckSample And will try to install with cocoaPods https://github.com/ReactiveCocoa/ReactiveObjC and after you'll add a new BUCK build rule like apple_third_party_lib( name = "ReactiveObjC", …
alekseevpg
  • 533
  • 4
  • 10
0
votes
1 answer

Access files under path given by genrule in Buck

How can I reference files inside a directory path given by a genrule? I'm trying the following but it doesn't seem to work: http_file( name = "some_file", ... ) genrule( name = "zip_structure", srcs = [":some_file"], bash =…
Gonzalo
  • 3,674
  • 2
  • 26
  • 28