# 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:** [15 Mayo, 2017 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:** 1\
**Showing post:** 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:** [15 Mayo, 2017 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.

---

_[View the full topic](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)._
