# Bootsnap not compiling on branch main ( FreeBSD 10.0 ) \[ fatal error: sys/xattr.h: No such file or directory #include \<sys/xattr.h\> \]

**URL:** <https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723>\
**Category:** Development\
**Created:** [2017年五月15日 11:17 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723 "2017-05-15T11:17:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugeSpider](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@HugeSpider](https://meta.discourse.org/u/HugeSpider)\
**Post date:** [2017年五月15日 11:17 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723/1 "2017-05-15T11:17:16Z")

</div>

branch: master  
OS: 10.3-STABLE FreeBSD

since bootsnap was added on May 11 when i try to

```
env GYP_DEFINES="make_clang_dir=" CXX=/usr/bin/clang++ CC=/usr/bin/clang bundle install --without development test

```

I get error

```
(...)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/home/spider/.rvm/gems/ruby-2.3.3/gems/bootsnap-0.2.14/ext/bootsnap
/home/spider/.rvm/rubies/ruby-2.3.3/bin/ruby -r ./siteconf20170515-61851-u8spxp.rb extconf.rb
creating Makefile

current directory: /usr/home/spider/.rvm/gems/ruby-2.3.3/gems/bootsnap-0.2.14/ext/bootsnap
make "DESTDIR=" clean

current directory: /usr/home/spider/.rvm/gems/ruby-2.3.3/gems/bootsnap-0.2.14/ext/bootsnap
make "DESTDIR="
compiling bootsnap.c
bootsnap.c:3:23: fatal error: sys/xattr.h: No such file or directory
 #include <sys/xattr.h>
                       ^
compilation terminated.
*** Error code 1

Stop.
make: stopped in /usr/home/spider/.rvm/gems/ruby-2.3.3/gems/bootsnap-0.2.14/ext/bootsnap

make failed, exit code 1

Gem files will remain installed in /home/spider/.rvm/gems/ruby-2.3.3/gems/bootsnap-0.2.14 for inspection.
Results logged to /home/spider/.rvm/gems/ruby-2.3.3/extensions/x86_64-freebsd-10/2.3.0/bootsnap-0.2.14/gem_make.out

An error occurred while installing bootsnap (0.2.14), and Bundler cannot continue.
Make sure that `gem install bootsnap -v '0.2.14'` succeeds before bundling.

```

I assume that it’s something similar to issue with platform triplet as mentioned in [Exceeding max allowed process count on accounts with limits when trying to `gem install libv8` · Issue #236 · rubyjs/libv8 · GitHub](https://github.com/cowboyd/libv8/issues/236)

Before bootsnap was added I had no issues.

---

<div class="post-metadata">

**Author:** ![HugeSpider](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@HugeSpider](https://meta.discourse.org/u/HugeSpider)\
**Post date:** [2017年五月15日 11:38 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723/2 "2017-05-15T11:38:35Z")

</div>

I submited bug report also to bootsnap:  
[https://github.com/Shopify/bootsnap/issues/32](https://github.com/Shopify/bootsnap/issues/32)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年五月15日 13:07 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723/3 "2017-05-15T13:07:15Z")

</div>

Note, I had not intention of breaking anything but we are going to need your help here submitting a PR to bootsnap. the xattr stuff is not needed for a lot of what it does, if it is not detected in mkmf it should just skip that part.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年五月26日 13:39 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723/4 "2017-05-26T13:39:13Z")

</div>

This is now sorted per:

[https://github.com/discourse/discourse/commit/076f079d17bf69b157d38445d769f13946755d9f](https://github.com/discourse/discourse/commit/076f079d17bf69b157d38445d769f13946755d9f)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年五月26日 13:39 UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723/5 "2017-05-26T13:39:20Z")

</div>


