mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
ba9d1737a8
Summary: This patch will update the Makefile and source code so that we can build RocksDB successfully on FreeBSD 10 and 11 (64-bit and 32-bit) I have also encountered some problems when running tests on FreeBSD, I will try to fix them individually in different diffs Notes: - FreeBSD uses clang as it's default compiler (http://lists.freebsd.org/pipermail/freebsd-current/2012-September/036480.html) - GNU C++ compiler have C++ 11 problems on FreeBSD (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193528) - make is not gmake on FreeBSD (http://www.khmere.com/freebsd_book/html/ch01.html) Test Plan: Using VMWare Fusion Create 4 VM machines (FreeBSD 11 64-bit, FreeBSD 11 32-bit, FreeBSD 10 64-bit, FreeBSD 10 32-bit) - pkg install git gmake gflags archivers/snappy - git clone https://github.com/facebook/rocksdb.git - apply this patch - setenv CXX c++ - setenv CPATH /usr/local/include/ - setenv LIBRARY_PATH /usr/local/lib/ - gmake db_bench - make sure compilation is successful and db_bench is running - gmake all - make sure compilation is successful Reviewers: sdong, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D33891
34 lines
862 B
Ruby
34 lines
862 B
Ruby
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 4096
|
|
v.cpus = 2
|
|
end
|
|
|
|
config.vm.define "ubuntu14" do |box|
|
|
box.vm.box = "ubuntu/trusty64"
|
|
end
|
|
|
|
config.vm.define "centos65" do |box|
|
|
box.vm.box = "chef/centos-6.5"
|
|
end
|
|
|
|
config.vm.define "FreeBSD10" do |box|
|
|
box.vm.guest = :freebsd
|
|
box.vm.box = "robin/freebsd-10"
|
|
# FreeBSD does not support 'mount_virtualbox_shared_folder', use NFS
|
|
box.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"
|
|
box.vm.network "private_network", ip: "10.0.1.10"
|
|
|
|
# build everything after creating VM, skip using --no-provision
|
|
box.vm.provision "shell", inline: <<-SCRIPT
|
|
pkg install -y gmake clang35
|
|
export CXX=/usr/local/bin/clang++35
|
|
cd /vagrant
|
|
gmake clean
|
|
gmake all OPT=-g
|
|
SCRIPT
|
|
end
|
|
|
|
end
|