Closed iBicha closed 6 years ago
Running ubuntu 16.04 LTS
Seems like clang doesn't recognise some of the flags. Here's the full log
$ ./build.sh -t android -c arm Host OS: linux Target OS: android Target CPU: arm Checking webrtcbuilds dependencies Checking depot-tools Building revision: 5fcc7b5a5306e319164863e584f16d49c070bef7 Associated revision number: 21537 Checking out WebRTC revision (this will take awhile): 5fcc7b5a5306e319164863e584f16d49c070bef7 Syncing projects: 100% (45/45), done. Running hooks: 100% (26/26), done. Checking WebRTC dependencies [sudo] password for ibicha: Skipping debugging symbols. Skipping 32-bit libraries for ARM/Android. Skipping ARM cross toolchain. Skipping NaCl, NaCl toolchain, NaCl ports dependencies. Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable Release Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:5 http://ca.archive.ubuntu.com/ubuntu xenial InRelease Hit:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Fetched 204 kB in 2s (91.3 kB/s) Reading package lists... Done Finding missing packages... Packages required: apache2-bin binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bison cdbs curl devscripts dpkg-dev elfutils fakeroot flex fonts-ipafont g++ git-core git-svn gperf lib32gcc1 lib32stdc++6 libapache2-mod-php7.0 libasound2 libasound2-dev libatk1.0-0 libatk1.0-dbg libav-tools libbluetooth-dev libbrlapi0.6 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-i386 libcairo2 libcairo2-dbg libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexpat1 libffi6 libffi-dev libfontconfig1 libfontconfig1-dbg libfreetype6 libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libglib2.0-0 libglib2.0-0-dbg libglib2.0-dev libglu1-mesa-dev libgnome-keyring0 libgnome-keyring-dev libgtk2.0-0 libgtk2.0-dev libgtk-3-0 libgtk-3-0-dbg libgtk-3-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango1.0-0 libpango1.0-0-dbg libpci3 libpci-dev libpcre3 libpixman-1-0 libpng16-16 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libwww-perl libx11-6 libx11-6-dbg libx11-xcb1 libx11-xcb1-dbg libxau6 libxcb1 libxcomposite1 libxcursor1 libxcursor1-dbg libxdamage1 libxdamage1-dbg libxdmcp6 libxext6 libxfixes3 libxfixes3-dbg libxi6 libxi6-dbg libxinerama1 libxkbcommon-dev libxrandr2 libxrandr2-dbg libxrender1 libxrender1-dbg libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst6-dbg libxtst-dev locales mesa-common-dev openbox patch perl php7.0-cgi pkg-config python python-cherrypy3 python-crypto python-dev python-numpy python-opencv python-openssl python-psutil python-yaml realpath rpm ruby subversion ttf-mscorefonts-installer wdiff x11-utils xcompmgr zip zlib1g No missing packages, and the packages are up to date. Skipping installation of Chrome OS fonts. Installing locales. Locales already up-to-date. Skipping debugging symbols. Including 32-bit libraries for ARM/Android. Skipping ARM cross toolchain. Skipping NaCl, NaCl toolchain, NaCl ports dependencies. Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable Release Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial InRelease Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Fetched 204 kB in 1s (104 kB/s) Reading package lists... Done Finding missing packages... Packages required: libpci3:i386 linux-libc-dev:i386 apache2-bin binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bison cdbs curl devscripts dpkg-dev elfutils fakeroot flex fonts-ipafont g++ g++-5-multilib git-core git-svn gperf lib32gcc1 lib32stdc++6 libapache2-mod-php7.0 libasound2 libasound2-dev libatk1.0-0 libatk1.0-dbg libav-tools libbluetooth-dev libbrlapi0.6 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-i386 libcairo2 libcairo2-dbg libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexpat1 libffi6 libffi-dev libfontconfig1 libfontconfig1-dbg libfreetype6 libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libglib2.0-0 libglib2.0-0-dbg libglib2.0-dev libglu1-mesa-dev libgnome-keyring0 libgnome-keyring-dev libgtk2.0-0 libgtk2.0-dev libgtk-3-0 libgtk-3-0-dbg libgtk-3-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango1.0-0 libpango1.0-0-dbg libpci3 libpci-dev libpcre3 libpixman-1-0 libpng16-16 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libwww-perl libx11-6 libx11-6-dbg libx11-xcb1 libx11-xcb1-dbg libxau6 libxcb1 libxcomposite1 libxcursor1 libxcursor1-dbg libxdamage1 libxdamage1-dbg libxdmcp6 libxext6 libxfixes3 libxfixes3-dbg libxi6 libxi6-dbg libxinerama1 libxkbcommon-dev libxrandr2 libxrandr2-dbg libxrender1 libxrender1-dbg libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst6-dbg libxtst-dev locales mesa-common-dev openbox patch perl php7.0-cgi pkg-config python python-cherrypy3 python-crypto python-dev python-numpy python-opencv python-openssl python-psutil python-yaml realpath rpm ruby subversion ttf-mscorefonts-installer wdiff x11-utils xcompmgr zip zlib1g No missing packages, and the packages are up to date. Skipping installation of Chrome OS fonts. Installing locales. Locales already up-to-date. Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done x11-utils is already the newest version (7.7+3). lighttpd is already the newest version (1.4.35-4ubuntu2). python-pexpect is already the newest version (4.0.1-1). lib32z1 is already the newest version (1:1.2.8.dfsg-2ubuntu4.1). xvfb is already the newest version (2:1.18.4-0ubuntu0.7). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done libncurses5:i386 is already the newest version (6.0+20160213-1ubuntu1). libstdc++6:i386 is already the newest version (5.4.0-6ubuntu1~16.04.5). zlib1g:i386 is already the newest version (1:1.2.8.dfsg-2ubuntu4.1). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done bsdiff is already the newest version (4.3-15). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. install-build-deps-android.sh complete. Patching WebRTC source Compiling WebRTC Done. Made 2258 targets from 200 files in 391ms ninja: Entering directory `.' [1/4421] CXX obj/api/libjingle_peerconnection_api/jsep.o FAILED: obj/api/libjingle_peerconnection_api/jsep.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/jsep.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/jsep.cc -o obj/api/libjingle_peerconnection_api/jsep.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [2/4421] CXX obj/webrtc_common/common_types.o FAILED: obj/webrtc_common/common_types.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/webrtc_common/common_types.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../common_types.cc -o obj/webrtc_common/common_types.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [3/4421] CXX obj/api/libjingle_peerconnection_api/mediastreaminterface.o FAILED: obj/api/libjingle_peerconnection_api/mediastreaminterface.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/mediastreaminterface.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/mediastreaminterface.cc -o obj/api/libjingle_peerconnection_api/mediastreaminterface.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [4/4421] CXX obj/api/libjingle_peerconnection_api/mediaconstraintsinterface.o FAILED: obj/api/libjingle_peerconnection_api/mediaconstraintsinterface.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/mediaconstraintsinterface.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/mediaconstraintsinterface.cc -o obj/api/libjingle_peerconnection_api/mediaconstraintsinterface.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [5/4421] CXX obj/api/libjingle_peerconnection_api/rtcerror.o FAILED: obj/api/libjingle_peerconnection_api/rtcerror.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/rtcerror.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/rtcerror.cc -o obj/api/libjingle_peerconnection_api/rtcerror.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [6/4421] CXX obj/api/libjingle_peerconnection_api/candidate.o FAILED: obj/api/libjingle_peerconnection_api/candidate.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/candidate.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/candidate.cc -o obj/api/libjingle_peerconnection_api/candidate.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [7/4421] CXX obj/api/libjingle_peerconnection_api/rtp_headers.o FAILED: obj/api/libjingle_peerconnection_api/rtp_headers.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/rtp_headers.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/rtp_headers.cc -o obj/api/libjingle_peerconnection_api/rtp_headers.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [8/4421] CXX obj/api/libjingle_peerconnection_api/rtpparameters.o FAILED: obj/api/libjingle_peerconnection_api/rtpparameters.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/rtpparameters.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/rtpparameters.cc -o obj/api/libjingle_peerconnection_api/rtpparameters.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [9/4421] CXX obj/api/libjingle_peerconnection_api/mediatypes.o FAILED: obj/api/libjingle_peerconnection_api/mediatypes.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/mediatypes.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/mediatypes.cc -o obj/api/libjingle_peerconnection_api/mediatypes.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] [10/4421] CXX obj/api/libjingle_peerconnection_api/proxy.o FAILED: obj/api/libjingle_peerconnection_api/proxy.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/libjingle_peerconnection_api/proxy.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_tools/ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -D__NDK_FPABI__= -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fno-tree-sra -fno-caller-saves -mfpu=neon -mthumb -mthumb-interwork -Wall -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fvisibility=hidden -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin -fno-builtin-cosf -fno-builtin-sinf -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/proxy.cc -o obj/api/libjingle_peerconnection_api/proxy.o clang: error: unknown argument: '-fno-tree-sra' clang: error: unknown argument: '-mthumb-interwork' clang: warning: optimization flag '-fno-caller-saves' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument] ninja: build stopped: subcommand failed.
Thanks for the report, PR #75, should address this and get the build further.
Thanks, didn't try this, but I'll close since it should be fixed.
Running ubuntu 16.04 LTS
Seems like clang doesn't recognise some of the flags. Here's the full log