ipop-project / ipop-project.github.io

Current Wiki and Documentation for IPOP
http://ipop-project.github.io/
87 stars 31 forks source link

Errors when building WebRTC #83

Open miguelwon opened 4 years ago

miguelwon commented 4 years ago

I'm getting these erros when trying to build WebRTC. First when running install-build-deps.sh and then for some reason gn is using python 3.

mwon@mwon:/mwon_disk/disk2/raspberry/build-webrtc/workspace/webrtc-checkout/src$ ./build/install-build-deps.sh
Running as non-root user.
You might have to enter your password one or more times for 'sudo'.

This script installs all tools and libraries needed to build Chromium.

For most of the libraries, it can also install debugging symbols, which
will allow you to debug code in the system libraries. Most developers
won't need these symbols.
Do you want me to install them for you (y/N) Y
Including debugging symbols.
Including 32-bit libraries for ARM/Android.
Including ARM cross toolchain.
Including NaCl, NaCl toolchain, NaCl ports dependencies.
sudo: unable to resolve host mwon
sudo: unable to resolve host mwon
0% [Working]
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease       
Get:3 http://dl.google.com/linux/chrome/deb stable Release [943 B]                                               
Hit:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease                                                                      
Get:5 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]                                                                     
Ign:6 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial InRelease                                                                                                                          
Ign:7 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease                                                                                
Hit:8 http://nova.clouds.archive.ubuntu.com/ubuntu xenial InRelease                                           
Ign:9 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial Release          
Get:10 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release [3,457 B]                           
Hit:11 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease                                  
Ign:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages
Err:5 http://dl.google.com/linux/chrome/deb stable Release.gpg           
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
Hit:13 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages             
Get:16 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release.gpg [801 B]  
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US         
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en            
Ign:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages            
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages                 
Err:16 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release.gpg               
  The following signatures were invalid: KEYEXPIRED 1544811256
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages                  
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en
Ign:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en
Ign:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en
Ign:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en
Err:12 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main amd64 Packages
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Ign:14 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main i386 Packages
Ign:15 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en_US
Ign:18 http://ppa.launchpad.net/igraph/ppa/ubuntu xenial/main Translation-en
Fetched 5,077 B in 3s (1,383 B/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/igraph/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release: The following signatures were invalid: KEYEXPIRED 1544811256
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: Failed to fetch http://ppa.launchpad.net/igraph/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1560:8008::15 80]
W: Failed to fetch https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.6/Release.gpg  The following signatures were invalid: KEYEXPIRED 1544811256
W: Some index files failed to download. They have been ignored, or old ones used instead.
mwon@mwon:/mwon_disk/disk2/raspberry/build-webrtc/workspace/webrtc-checkout/src$ gn gen out/debug --args='target_os="linux" target_cpu="arm" is_debug=true enable_iterator_debugging=false is_component_build=false is_debug=true rtc_build_wolfssl=true rtc_build_ssl=false rtc_ssl_root="/usr/local/include"'
ERROR at //build/config/compiler/BUILD.gn:103:7: Script returned non-zero exit code.
      exec_script("//tools/clang/scripts/update.py", update_args, "trim string")
      ^----------
Current dir: /mwon_disk/disk2/raspberry/build-webrtc/workspace/webrtc-checkout/src/out/debug/
Command: python -- /mwon_disk/disk2/raspberry/build-webrtc/workspace/webrtc-checkout/src/tools/clang/scripts/update.py --print-revision
Returned 1.
stderr:

  File "/mwon_disk/disk2/raspberry/build-webrtc/workspace/webrtc-checkout/src/tools/clang/scripts/update.py", line 121
    print ' Done.'
                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(' Done.')?

See //build/config/BUILDCONFIG.gn:481:3: which caused the file to be included.
  "//build/config/compiler:default_stack_frames",
  ^---------------------------------------------
vahid-dan commented 4 years ago

Hi.

Have you run sudo apt update before running build/install-build-deps.sh? It seems this PPA is not available: http://ppa.launchpad.net/igraph/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages. You should be able to install it using other methods. If you search Google, you should find the solution.

Bests, Vahid