# Build from source FAILED: bazel build -c fastbuild //:ray\_pkg

**URL:** <https://discuss.ray.io/t/build-from-source-failed-bazel-build-c-fastbuild-ray-pkg/9690>\
**Category:** Ray Client\
**Created:** [March 8, 2023, 4:38pm UTC](https://discuss.ray.io/t/build-from-source-failed-bazel-build-c-fastbuild-ray-pkg/9690 "2023-03-08T16:38:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CryptoNerd700](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@CryptoNerd700](https://discuss.ray.io/u/CryptoNerd700)\
**Post date:** [March 8, 2023, 4:38pm UTC](https://discuss.ray.io/t/build-from-source-failed-bazel-build-c-fastbuild-ray-pkg/9690/1 "2023-03-08T16:38:35Z")

</div>

Dear Team  
I Have been trying to build ray from source on my ubuntu host, for few days, and this was the last point which is critically blocking me, ive attached below the logs

> **[bazel build -c fastbuild //:ray\_pkg :FAILS - Pastebin.com](https://pastebin.com/tdK9BZu8)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![rickyyx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rickyyx/32/2671_2.png) [@rickyyx](https://discuss.ray.io/u/rickyyx)\
**Post date:** [March 8, 2023, 8:58pm UTC](https://discuss.ray.io/t/build-from-source-failed-bazel-build-c-fastbuild-ray-pkg/9690/2 "2023-03-08T20:58:31Z")

</div>

Hmmm this is weird.

Is it hitting a memory limit? Could you monitor that while building it?
