Error compiling WebRTC framework for ios

361 views
Skip to first unread message

Rohan Jariwala

unread,
Apr 10, 2017, 9:41:04 AM4/10/17
to discuss-webrtc
I am compiling WebRTC framework for iOS by following the steps mentioned in this link:
 But I am getting this error and I am stuck over here. Can anyone guide me how to resolve this issue.

FAILED: clang_x64/protoc 

TOOL_VERSION=1491818086 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++  -stdlib=libc++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -Wl,-ObjC -Wl,-pie -Werror -o "clang_x64/protoc" -Wl,-filelist,"clang_x64/protoc.rsp"  

ld: unexpected token: !tapi-tbd-v2 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libc++.tbd' for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Traceback (most recent call last):

  File "../../build/toolchain/mac/linker_driver.py", line 229, in <module>

    Main(sys.argv)

  File "../../build/toolchain/mac/linker_driver.py", line 79, in Main

    subprocess.check_call(compiler_driver_args)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-stdlib=libc++', '-arch', 'x86_64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk', '-mmacosx-version-min=10.9', '-Wl,-ObjC', '-Wl,-pie', '-Werror', '-o', 'clang_x64/protoc', '-Wl,-filelist,clang_x64/protoc.rsp']' returned non-zero exit status 1

[22/397] OBJCXX obj/webrtc/sdk/rtc_sdk_common_objc/RTCFileLogger.o

ninja: build stopped: subcommand failed.

Henrik Kjellander

unread,
Apr 11, 2017, 2:53:54 PM4/11/17
to discuss-webrtc
This is identical to https://groups.google.com/forum/#!topic/discuss-webrtc/LsR8BTkXmK4
I suggest you look around for solutions on the web. I suspect you might have a linker that is non-default (like from macports/homebrew etc) but it could be something else with your environment as well.

Please always provide details about your OS version, Xcode version and the exact commands used for building.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/8c08ca9a-60d4-4e95-a793-de2dd5aaf256%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages