Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Ubuntu 18.04 #16

Closed
udnaan opened this issue Aug 6, 2018 · 11 comments
Closed

Build fails on Ubuntu 18.04 #16

udnaan opened this issue Aug 6, 2018 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@udnaan
Copy link

udnaan commented Aug 6, 2018

The command used to invoke the build was following:

sudo apt install libglu1-mesa-dev libc++-dev libc++abi-dev ninja-build libxi-dev
env CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./dist-linux -Bbuild -H.
make -C build -j4

Here is the error:

(.text+0x53d): undefined reference to `__cxa_allocate_exception'
(.text+0x556): undefined reference to `__cxa_guard_acquire'
(.text+0x580): undefined reference to `__cxa_guard_release'
(.text+0x5ea): undefined reference to `__cxa_throw'
(.text+0x60f): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::__assoc_sub_state::set_exception(std::exception_ptr)':
(.text+0x6c8): undefined reference to `__cxa_allocate_exception'
(.text+0x6e1): undefined reference to `__cxa_guard_acquire'
(.text+0x70b): undefined reference to `__cxa_guard_release'
(.text+0x77a): undefined reference to `__cxa_throw'
(.text+0x7a5): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::__assoc_sub_state::set_exception_at_thread_exit(std::exception_ptr)':
(.text+0x85f): undefined reference to `__cxa_allocate_exception'
(.text+0x878): undefined reference to `__cxa_guard_acquire'
(.text+0x8a2): undefined reference to `__cxa_guard_release'
(.text+0x911): undefined reference to `__cxa_throw'
(.text+0x937): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::__assoc_sub_state::__execute()':
(.text+0xc0a): undefined reference to `__cxa_allocate_exception'
(.text+0xc23): undefined reference to `__cxa_guard_acquire'
(.text+0xc4d): undefined reference to `__cxa_guard_release'
(.text+0xc77): undefined reference to `__cxa_throw'
(.text+0xc82): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::future<void>::future(std::__1::__assoc_sub_state*)':
(.text+0xccf): undefined reference to `__cxa_allocate_exception'
(.text+0xce8): undefined reference to `__cxa_guard_acquire'
(.text+0xd12): undefined reference to `__cxa_guard_release'
(.text+0xd3c): undefined reference to `__cxa_throw'
(.text+0xd47): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::~promise()':
(.text+0xf46): undefined reference to `std::logic_error::~logic_error()'
(.text+0xf8a): undefined reference to `__cxa_guard_acquire'
(.text+0xfb8): undefined reference to `__cxa_guard_release'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::get_future()':
(.text+0x1038): undefined reference to `__cxa_allocate_exception'
(.text+0x1051): undefined reference to `__cxa_guard_acquire'
(.text+0x107b): undefined reference to `__cxa_guard_release'
(.text+0x10a5): undefined reference to `__cxa_throw'
(.text+0x10b0): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::set_value()':
(.text+0x10de): undefined reference to `__cxa_allocate_exception'
(.text+0x10f7): undefined reference to `__cxa_guard_acquire'
(.text+0x1121): undefined reference to `__cxa_guard_release'
(.text+0x114b): undefined reference to `__cxa_throw'
(.text+0x1156): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::set_exception(std::exception_ptr)':
(.text+0x11cd): undefined reference to `__cxa_allocate_exception'
(.text+0x11e6): undefined reference to `__cxa_guard_acquire'
(.text+0x1210): undefined reference to `__cxa_guard_release'
(.text+0x123a): undefined reference to `__cxa_throw'
(.text+0x124a): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::set_value_at_thread_exit()':
(.text+0x128e): undefined reference to `__cxa_allocate_exception'
(.text+0x12a7): undefined reference to `__cxa_guard_acquire'
(.text+0x12d1): undefined reference to `__cxa_guard_release'
(.text+0x12fb): undefined reference to `__cxa_throw'
(.text+0x1306): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::__1::promise<void>::set_exception_at_thread_exit(std::exception_ptr)':
(.text+0x137d): undefined reference to `__cxa_allocate_exception'
(.text+0x1396): undefined reference to `__cxa_guard_acquire'
(.text+0x13c0): undefined reference to `__cxa_guard_release'
(.text+0x13ea): undefined reference to `__cxa_throw'
(.text+0x13fa): undefined reference to `__cxa_free_exception'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o): In function `std::exception_ptr std::make_exception_ptr<std::__1::future_error>(std::__1::future_error)':
(.text._ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_[_ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_]+0x11): undefined reference to `__cxa_allocate_exception'
(.text._ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_[_ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_]+0x4c): undefined reference to `__cxa_throw'
(.text._ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_[_ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_]+0x54): undefined reference to `__cxa_begin_catch'
(.text._ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_[_ZSt18make_exception_ptrINSt3__112future_errorEESt13exception_ptrT_]+0x61): undefined reference to `__cxa_end_catch'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o):(.data.rel.ro+0x68): undefined reference to `std::logic_error::what() const'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o):(.data.rel.ro+0x70): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o):(.data.rel.ro+0x80): undefined reference to `typeinfo for std::logic_error'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o):(.data.rel.ro+0xc0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/libc++.a(future.cpp.o):(.data.rel.ro+0xe0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same is true whether the build is invoked using ninja or make. For instance, this sequence gives the exact same results:

env CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./dist-linux -Bbuild -H.
cd build; ninja

Using the easy build altogether fails. (I haven't looked at the script yet)

./build.sh -j debug
Warning: JAVA_HOME is not set, skipping Java projects
Building debug in out/cmake-debug...
CMake Error at CMakeLists.txt:5 (message):
  Prevented in-tree build.  Create a sub-directory and invoke cmake from
  there.


-- Configuring incomplete, errors occurred!
@romainguy
Copy link
Collaborator

You need to add -DFILAMENT_REQUIRES_CXXABI=true on Ubuntu apparently.

@udnaan
Copy link
Author

udnaan commented Aug 6, 2018

This fixes the issue with manual building. The build.sh script is still broken. Perhaps the readme should be updated to reflect that.

@romainguy
Copy link
Collaborator

Would you mind adding set -x at the top of script and copy the logs please? I have no issues with script on multiple machines and OSs and I can't repro :/

@udnaan
Copy link
Author

udnaan commented Aug 6, 2018

Sure. Here:

./build.sh -j release                                                                                    0 < 18:15:45
+ API_LEVEL=24
+ HOST_TOOLS='matc cmgen'
+ TARGET=release
+ ISSUE_CLEAN=false
+ ISSUE_DEBUG_BUILD=false
+ ISSUE_RELEASE_BUILD=false
+ ISSUE_ANDROID_BUILD=false
+ ISSUE_DESKTOP_BUILD=true
+ ISSUE_ARCHIVES=false
+ ISSUE_CMAKE_ALWAYS=false
+ ENABLE_JAVA=ON
+ INSTALL_COMMAND=
+ GENERATE_TOOLCHAINS=false
+ VULKAN_ANDROID_OPTION=-DFILAMENT_SUPPORTS_VULKAN=OFF
+ BUILD_GENERATOR=Ninja
+ BUILD_COMMAND=ninja
+ BUILD_CUSTOM_TARGETS=
+++ uname
++ echo Linux
+ UNAME=Linux
++ echo Linux
++ tr '[:upper:]' '[:lower:]'
+ LC_UNAME=linux
+ TOOLCHAIN_SCRIPT=/ndk-bundle/build/tools/make_standalone_toolchain.py
++ dirname ./build.sh
+ pushd .
+ getopts :hacfijmp:tv opt
+ case ${opt} in
+ ENABLE_JAVA=OFF
+ getopts :hacfijmp:tv opt
+ '[' 2 == 0 ']'
+ shift 1
+ for arg in "$@"
+ '[' release == release ']'
+ ISSUE_RELEASE_BUILD=true
+ validate_build_command
+ set +e
++ which cmake
+ cmake_binary=/usr/bin/cmake
+ '[' '!' /usr/bin/cmake ']'
+ '[' ninja == ninja ']'
++ which ninja
+ ninja_binary=/usr/bin/ninja
+ '[' '!' /usr/bin/ninja ']'
+ '[' ninja == make ']'
++ which javac
+ javac_binary=/usr/bin/javac
+ '[' '' == '' ']'
+ echo 'Warning: JAVA_HOME is not set, skipping Java projects'
Warning: JAVA_HOME is not set, skipping Java projects
+ ENABLE_JAVA=OFF
+ set -e
+ '[' false == true ']'
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop_target Release ''
++ echo Release
++ tr '[:upper:]' '[:lower:]'
+ local LC_TARGET=release
+ local BUILD_TARGETS=
+ '[' '!' '' ']'
+ BUILD_TARGETS=
+ echo 'Building release in out/cmake-release...'
Building release in out/cmake-release...
+ mkdir -p out/cmake-release
+ cd out/cmake-release
+ '[' '!' -d CMakeFiles ']'
+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release/filament -DFILAMENT_REQUIRES_CXXABI= -DENABLE_JAVA=OFF ../..
CMake Error at CMakeLists.txt:5 (message):
  Prevented in-tree build.  Create a sub-directory and invoke cmake from
  there.


-- Configuring incomplete, errors occurred!

@romainguy
Copy link
Collaborator

Weird, all the commands are correct. I'll investigate, thanks!

@romainguy romainguy reopened this Aug 6, 2018
@udnaan
Copy link
Author

udnaan commented Aug 6, 2018

With cmake, using the -B<build_dir> and -H<cmakelist_dir> could be a better pattern than changing directories manually. Just an idea.

@romainguy romainguy self-assigned this Aug 6, 2018
@romainguy romainguy added the bug Something isn't working label Aug 6, 2018
romainguy added a commit that referenced this issue Aug 6, 2018
@romainguy
Copy link
Collaborator

I just committed a change that should address this issue. Would you mind syncing and trying again? Thanks!

@udnaan
Copy link
Author

udnaan commented Aug 6, 2018

Unfortunately no. Things haven't improved.

#!/bin/bash
set -e
set -e -x

# NDK API level
API_LEVEL=24
┌─<nan @ nan-hehe in ~/p/filament>
└─< (master)* >──» ./build.sh release                                                                                       0 < 15:37:40
+ API_LEVEL=24
+ HOST_TOOLS='matc cmgen'
+ TARGET=release
+ ISSUE_CLEAN=false
+ ISSUE_DEBUG_BUILD=false
+ ISSUE_RELEASE_BUILD=false
+ ISSUE_ANDROID_BUILD=false
+ ISSUE_DESKTOP_BUILD=true
+ ISSUE_ARCHIVES=false
+ ISSUE_CMAKE_ALWAYS=false
+ ENABLE_JAVA=ON
+ INSTALL_COMMAND=
+ GENERATE_TOOLCHAINS=false
+ VULKAN_ANDROID_OPTION=-DFILAMENT_SUPPORTS_VULKAN=OFF
+ BUILD_GENERATOR=Ninja
+ BUILD_COMMAND=ninja
+ BUILD_CUSTOM_TARGETS=
+++ uname
++ echo Linux
+ UNAME=Linux
++ echo Linux
++ tr '[:upper:]' '[:lower:]'
+ LC_UNAME=linux
+ TOOLCHAIN_SCRIPT=/ndk-bundle/build/tools/make_standalone_toolchain.py
++ dirname ./build.sh
+ pushd .
+ getopts :hacfijmp:tv opt
+ '[' 1 == 0 ']'
+ shift 0
+ for arg in "$@"
+ '[' release == release ']'
+ ISSUE_RELEASE_BUILD=true
+ validate_build_command
+ set +e
++ which cmake
+ cmake_binary=/usr/bin/cmake
+ '[' '!' /usr/bin/cmake ']'
+ '[' ninja == ninja ']'
++ which ninja
+ ninja_binary=/usr/bin/ninja
+ '[' '!' /usr/bin/ninja ']'
+ '[' ninja == make ']'
++ which javac
+ javac_binary=/usr/bin/javac
+ '[' '' == '' ']'
+ echo 'Warning: JAVA_HOME is not set, skipping Java projects'
Warning: JAVA_HOME is not set, skipping Java projects
+ ENABLE_JAVA=OFF
+ set -e
+ '[' false == true ']'
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop_target Release ''
++ echo Release
++ tr '[:upper:]' '[:lower:]'
+ local LC_TARGET=release
+ local BUILD_TARGETS=
+ '[' '!' '' ']'
+ BUILD_TARGETS=
+ echo 'Building release in out/cmake-release...'
Building release in out/cmake-release...
+ mkdir -p out/cmake-release
+ cd out/cmake-release
+ '[' '!' -d CMakeFiles ']'
+ '[' false == true ']'
+ ninja
ninja: error: loading 'build.ninja': No such file or directory
┌─<nan @ nan-hehe in ~/p/filament>
└─< (master)* >──»                                                                                                          1 < 15:37:43

Note that I also got another error after pulling

─< (master)>──» ./build.sh debug                                                                                           0 < 15:32:05
Warning: JAVA_HOME is not set, skipping Java projects
Building debug in out/cmake-debug...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindThreads.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  third_party/libgtest/tnt/CMakeLists.txt:26 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nan/p/filament/out/cmake-debug/CMakeFiles/CMakeOutput.log".
See also "/home/nan/p/filament/out/cmake-debug/CMakeFiles/CMakeError.log".
┌─<nan @ nan-hehe in ~/p/filament>

A stackoverflow post talks about this being a Cmake bug and after peeking into /usr/share/cmake-3.10/Modules/CheckIncludeFile.cxx.in, I changed the int main() to int main(void).
I wasn't getting this error before.

@romainguy
Copy link
Collaborator

Can you try with build.sh -c release please? -c will destroy the build directory, just to make sure we bypass any leftover from previous attempts.

@udnaan
Copy link
Author

udnaan commented Aug 7, 2018

 ./build.sh -c release                                                                                    1 < 19:54:07
+ API_LEVEL=24
+ HOST_TOOLS='matc cmgen'
+ TARGET=release
+ ISSUE_CLEAN=false
+ ISSUE_DEBUG_BUILD=false
+ ISSUE_RELEASE_BUILD=false
+ ISSUE_ANDROID_BUILD=false
+ ISSUE_DESKTOP_BUILD=true
+ ISSUE_ARCHIVES=false
+ ISSUE_CMAKE_ALWAYS=false
+ ENABLE_JAVA=ON
+ INSTALL_COMMAND=
+ GENERATE_TOOLCHAINS=false
+ VULKAN_ANDROID_OPTION=-DFILAMENT_SUPPORTS_VULKAN=OFF
+ BUILD_GENERATOR=Ninja
+ BUILD_COMMAND=ninja
+ BUILD_CUSTOM_TARGETS=
+++ uname
++ echo Linux
+ UNAME=Linux
++ tr '[:upper:]' '[:lower:]'
++ echo Linux
+ LC_UNAME=linux
+ TOOLCHAIN_SCRIPT=/ndk-bundle/build/tools/make_standalone_toolchain.py
++ dirname ./build.sh
+ pushd .
+ getopts :hacfijmp:tv opt
+ case ${opt} in
+ ISSUE_CLEAN=true
+ getopts :hacfijmp:tv opt
+ '[' 2 == 0 ']'
+ shift 1
+ for arg in "$@"
+ '[' release == release ']'
+ ISSUE_RELEASE_BUILD=true
+ validate_build_command
+ set +e
++ which cmake
+ cmake_binary=/usr/bin/cmake
+ '[' '!' /usr/bin/cmake ']'
+ '[' ninja == ninja ']'
++ which ninja
+ ninja_binary=/usr/bin/ninja
+ '[' '!' /usr/bin/ninja ']'
+ '[' ninja == make ']'
++ which javac
+ javac_binary=/usr/bin/javac
+ '[' '' == '' ']'
+ echo 'Warning: JAVA_HOME is not set, skipping Java projects'
Warning: JAVA_HOME is not set, skipping Java projects
+ ENABLE_JAVA=OFF
+ set -e
+ '[' true == true ']'
+ build_clean
+ echo 'Cleaning build directories...'
Cleaning build directories...
+ rm -Rf out
+ rm -Rf android/filament-android/build
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop
+ '[' false == true ']'
+ '[' true == true ']'
+ build_desktop_target Release ''
++ echo Release
++ tr '[:upper:]' '[:lower:]'
+ local LC_TARGET=release
+ local BUILD_TARGETS=
+ '[' '!' '' ']'
+ BUILD_TARGETS=
+ echo 'Building release in out/cmake-release...'
Building release in out/cmake-release...
+ mkdir -p out/cmake-release
+ cd out/cmake-release
+ '[' '!' -d CMakeFiles ']'
+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release/filament -DFILAMENT_REQUIRES_CXXABI= -DENABLE_JAVA=OFF ../..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindThreads.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  third_party/libgtest/tnt/CMakeLists.txt:26 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nan/p/filament/out/cmake-release/CMakeFiles/CMakeOutput.log".
See also "/home/nan/p/filament/out/cmake-release/CMakeFiles/CMakeError.log".

Here is the CMakeError.log

Determining if the include file pthread.h exists failed with the following output:
Change Dir: /home/nan/p/filament/out/cmake-release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_16d2e"
[1/2] Building C object CMakeFiles/cmTC_16d2e.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_16d2e.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fcolor-diagnostics -o CMakeFiles/cmTC_16d2e.dir/CheckIncludeFile.c.o   -c CheckIncludeFile.c
cc: error: unrecognized command line option ‘-fcolor-diagnostics’
ninja: build stopped: subcommand failed.

@udnaan
Copy link
Author

udnaan commented Aug 7, 2018

Update:
Never mind, I think I know what the issue is.

env CC=/usr/bin/clang CXX=/usr/bin/clang++ FILAMENT_REQUIRES_CXXABI=true ./build.sh -c release

And the build is going through. Thanks for the help!