build-toolchain fail with error on Ubuntu-15.10

I'm trying to build toolchain using `build-toolchain` command, but the
script is failing with error:

CMake Error at
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138
(message):
  Could NOT find BSD (missing: BSD_INCLUDE_DIR BSD_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindBSD.cmake:18 (find_package_handle_standard_args)
  stdlib/CMakeLists.txt:23 (find_package)

The complete log can be found here:

I'm using Ubuntu-15.10 server, running on VirtualBox.

Could someone please help?

I think you might be missing libbsd. Please run:

sudo apt-get install libbsd-dev

Dmitri

···

On Sun, Mar 13, 2016 at 10:08 AM, bhargav gurlanka via swift-build-dev <swift-build-dev@swift.org> wrote:

I'm trying to build toolchain using `build-toolchain` command, but the
script is failing with error:

CMake Error at
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138
(message):
  Could NOT find BSD (missing: BSD_INCLUDE_DIR BSD_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindBSD.cmake:18 (find_package_handle_standard_args)
  stdlib/CMakeLists.txt:23 (find_package)

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/