pristineio / webrtc-build-scripts

A set of build scripts useful for building WebRTC libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
1.12k stars 448 forks source link

Build fails in iOS #159

Open ibc opened 8 years ago

ibc commented 8 years ago

Fresh installation of this project today (OSX 10.11.3 El Capitan). Common steps performed:

$ source ios/build.sh
$ WEBRTC_RELEASE=true
$ get_webrtc

Ok, then:

$ build_webrtc

It fails:

Get the current working directory so we can change directories back when done
If no directory where depot tools should be...
Change directory into the depot tools
Pull the depot tools down to the latest
Already up-to-date.
Go back to working directory

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c import os,sys;script = os.path.join("trunk","check_root_dir.py");_ = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 1d144ca7f86e0c684c67d6c1b6d5414ca9074615' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Chromium already up to date:  1d144ca7f86e0c684c67d6c1b6d5414ca9074615

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/setup_links.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/build/landmines.py --landmine-scripts src/webrtc/build/get_landmines.py --src-dir src' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Updating projects from gyp files...
gyp: talk/libjingle.gyp not found (cwd: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src)
Error: Command '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' returned non-zero exit status 1 in /Users/ibc/src/webrtc-build-scripts/ios/webrtc
mkdir: created directory '/Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds'
Running ninja
ninja: Entering directory `out_ios_armeabi_v7a/Release-iphoneos/'
ninja: fatal: chdir to 'out_ios_armeabi_v7a/Release-iphoneos/' - No such file or directory
Running libtool
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src/out_ios_armeabi_v7a/Release-iphoneos/*.a (No such file or directory)
Running strip
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-armeabi_v7a-Release.a (No such file or directory)

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c import os,sys;script = os.path.join("trunk","check_root_dir.py");_ = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 1d144ca7f86e0c684c67d6c1b6d5414ca9074615' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Chromium already up to date:  1d144ca7f86e0c684c67d6c1b6d5414ca9074615

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/setup_links.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/build/landmines.py --landmine-scripts src/webrtc/build/get_landmines.py --src-dir src' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Updating projects from gyp files...
gyp: talk/libjingle.gyp not found (cwd: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src)
Error: Command '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' returned non-zero exit status 1 in /Users/ibc/src/webrtc-build-scripts/ios/webrtc
Running ninja
ninja: Entering directory `out_ios_arm64_v8a/Release-iphoneos/'
ninja: fatal: chdir to 'out_ios_arm64_v8a/Release-iphoneos/' - No such file or directory
Running libtool
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src/out_ios_arm64_v8a/Release-iphoneos/*.a (No such file or directory)
Running strip
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-arm64_v8a-Release.a (No such file or directory)

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c import os,sys;script = os.path.join("trunk","check_root_dir.py");_ = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 1d144ca7f86e0c684c67d6c1b6d5414ca9074615' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Chromium already up to date:  1d144ca7f86e0c684c67d6c1b6d5414ca9074615

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/setup_links.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/build/landmines.py --landmine-scripts src/webrtc/build/get_landmines.py --src-dir src' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Updating projects from gyp files...
gyp: talk/libjingle.gyp not found (cwd: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src)
Error: Command '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' returned non-zero exit status 1 in /Users/ibc/src/webrtc-build-scripts/ios/webrtc
Running ninja
ninja: Entering directory `out_ios_x86/Release-iphonesimulator/'
ninja: fatal: chdir to 'out_ios_x86/Release-iphonesimulator/' - No such file or directory
Running libtool
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src/out_ios_x86/Release-iphonesimulator/*.a (No such file or directory)
Running strip
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-x86-Release.a (No such file or directory)

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c import os,sys;script = os.path.join("trunk","check_root_dir.py");_ = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 1d144ca7f86e0c684c67d6c1b6d5414ca9074615' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Chromium already up to date:  1d144ca7f86e0c684c67d6c1b6d5414ca9074615

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/setup_links.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/build/landmines.py --landmine-scripts src/webrtc/build/get_landmines.py --src-dir src' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'

________ running '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/Users/ibc/src/webrtc-build-scripts/ios/webrtc'
Updating projects from gyp files...
gyp: talk/libjingle.gyp not found (cwd: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src)
Error: Command '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' returned non-zero exit status 1 in /Users/ibc/src/webrtc-build-scripts/ios/webrtc
Running ninja
ninja: Entering directory `out_ios_x86_64/Release-iphonesimulator/'
ninja: error: unknown target 'libWebRTC_objc'
Running libtool
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/src/out_ios_x86_64/Release-iphonesimulator/*.a (No such file or directory)
Running strip
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-x86_64-Release.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-armeabi_v7a-Release.a /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-arm64_v8a-Release.a /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-x86-Release.a /Users/ibc/src/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-11669-ios-x86_64-Release.a (No such file or directory)
thebehera commented 8 years ago

Looks like there is a serious issue with locating the correct gyp file. Things have been moved around. Ill need to investigate. Thanks for posting this

atsakiridis commented 8 years ago

I confirm I had the same issue on OSX

GulinSS commented 8 years ago

Same issue