[6171/17362] CXX newlib_pnacl/obj/third_party/webrtc/libjingle/xmpp/rtc_xmpp/presenceouttask.o
FAILED: newlib_pnacl/obj/third_party/webrtc/libjingle/xmpp/rtc_xmpp/presenceouttask.o
/b/build/slave/cache/cipd/goma/gomacc ../../native_client/toolchain/linux_x86/pnacl_newlib/bin/pnacl-clang++ -MMD -MF newlib_pnacl/obj/third_party/webrtc/libjingle/xmpp/rtc_xmpp/presenceouttask.o.d -DNACL_TC_REV=dfb29536c5d4e8e8c26074b7bf9f982798bb97de -DFEATURE_ENABLE_SSL -D_DEBUG -DV8_DEPRECATION_WARNINGS -DENABLE_NOTIFICATIONS -DENABLE_PLUGINS=1 -DENABLE_PDF=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DUSE_OPENSSL_CERTS=1 -DNO_TCMALLOC -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_SUPERVISED_USERS=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DDYNAMIC_ANNOTATIONS_PREFIX=NACL_ -DWEBRTC_RESTRICT_LOGGING -DEXPAT_RELATIVE_PATH -DENABLE_EXTERNAL_AUTH -DHAVE_OPENSSL_SSL_H -DHAVE_SCTP -DHAVE_SRTP -DHAVE_WEBRTC_VIDEO -DHAVE_WEBRTC_VOICE -DLOGGING_INSIDE_WEBRTC -DSRTP_RELATIVE_PATH -DSSL_USE_OPENSSL -DUSE_WEBRTC_DEV_BRANCH -DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL -DEXPAT_RELATIVE_PATH -DGTEST_RELATIVE_PATH -DNO_MAIN_THREAD_WRAPPING -DNO_SOUND_SYSTEM -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL -DXML_STATIC -DSSL_USE_OPENSSL -DHAVE_OPENSSL_SSL_H -DFEATURE_ENABLE_SSL -DLOGGING=1 -DNO_MAIN_THREAD_WRAPPING -I../.. -Inewlib_pnacl/gen -I../../third_party/webrtc_overrides -I../../third_party -I../../third_party/expat/files/lib -I../../third_party/jsoncpp/overrides/include -I../../third_party/jsoncpp/source/include -fno-strict-aliasing -fcolor-diagnostics -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -O0 -g1 -fvisibility=hidden -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c ../../third_party/webrtc/libjingle/xmpp/presenceouttask.cc -o newlib_pnacl/obj/third_party/webrtc/libjingle/xmpp/rtc_xmpp/presenceouttask.o
In file included from ../../third_party/webrtc/libjingle/xmpp/presenceouttask.cc:15:
In file included from ../../third_party/webrtc/libjingle/xmpp/xmppclient.h:18:
In file included from ../../third_party/webrtc/libjingle/xmpp/xmppclientsettings.h:14:
In file included from ../../third_party/webrtc/p2p/base/port.h:20:
In file included from ../../third_party/webrtc/p2p/base/candidate.h:25:
In file included from ../../third_party/webrtc/base/network.h:21:
../../third_party/webrtc/base/ipaddress.h:15:10: fatal error: 'netinet/in.h' file not found
#include <netinet/in.h>
^
1 error generated.
I haven't been able to figure out what I might be missing. ["--sysroot=../../build/linux/debian_wheezy_amd64-sysroot"] ["--sysroot=../../build/linux/debian_wheezy_amd64-sysroot"]
Please help! Could it be something with NaCL? I'm not familiar with how the NaCl build really works.
It looks like the build is for another toolchain (output is in newlib_pnacl/obj). I don't think this toolchain uses the sysroot from the line you pointed (you can try to print $current_toolchain next to the code to check).I would recommend looking at what are the settings for that newlib_pnacl toolchain are or looking at why this target is built for the newlib_pnacl (maybe it is not needed).
[5/1144] AR newlib_pnacl/obj/third_party/libjingle/libjingle.a FAILED: newlib_pnacl/obj/third_party/libjingle/libjingle.a python "../../build/toolchain/gcc_ar_wrapper.py" --output=newlib_pnacl/obj/third_party/libjingle/libjingle.a --ar="../../native_client/toolchain/linux_x86/pnacl_newlib/bin/pnacl-ar" rcsD @"newlib_pnacl/obj/third_party/libjingle/libjingle.a.rsp" ##### ['rcsD', 'newlib_pnacl/obj/third_party/libjingle/libjingle.a', '@newlib_pnacl/obj/third_party/libjingle/libjingle.a.rsp'] Traceback (most recent call last): File "../../native_client/toolchain/linux_x86/pnacl_newlib/bin/pydir/loader.py", line 30, in <module> ret = driver_tools.DriverMain(module, argv) File "/ssd/chrome/src/native_client/toolchain/linux_x86/pnacl_newlib/bin/pydir/driver_tools.py", line 749, in DriverMain return module.main(argv) File "/ssd/chrome/src/native_client/toolchain/linux_x86/pnacl_newlib/bin/pydir/pnacl-ar.py", line 22, in main driver_tools.ParseArgs(argv, PATTERNS) File "/ssd/chrome/src/native_client/toolchain/linux_x86/pnacl_newlib/bin/pydir/driver_tools.py", line 337, in ParseArgs driver_args, argv = ParseArgsBase(argv, driver_patternlist) File "/ssd/chrome/src/native_client/toolchain/linux_x86/pnacl_newlib/bin/pydir/driver_tools.py", line 366, in ParseArgsBase unmatched.append(argv[i]) IndexError: list index out of rangeWhich I haven't been able to figure out yet (needs https://codereview.webrtc.org/2077883002/ to be patched into src/third_party/webrtc to reproduce).