I am trying to build pytorch for a flatpak from source. I have the following in my yaml file. I don’t know if the build commands are right, but that doesn’t concern me right now. For some reason the googletest repo isn’t downloading.
-
name: torch
buildsystem: simple
build-commands:- git submodule update --init --jobs 0
- pip3 install --prefix=/app .
sources: - type: git
url: https://github.com/pytorch/pytorch
commit: 67ece03c8cd632cce9523cd96efde6f2d1cc8121
I get the message below.
Downloading sources
Fetching git repo https://github.com/pytorch/pytorch, ref refs/tags/v1.12.0-rc8
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/pybind/pybind11.git, ref refs/tags/v2.6.2
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Receiving objects: 100% (1/1), 176 bytes | 176.00 KiB/s, done.
Fetching git repo https://github.com/NVlabs/cub.git, ref refs/tags/1.9.10
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Receiving objects: 100% (1/1), 199 bytes | 199.00 KiB/s, done.
Fetching git repo https://gitlab.com/libeigen/eigen.git, ref refs/tags/3.4.0
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching full git repo https://github.com/google/googletest.git
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 30 (delta 17), reused 18 (delta 17), pack-reused 4
Receiving objects: 100% (30/30), 36.83 KiB | 7.37 MiB/s, done.
Resolving deltas: 100% (17/17), completed with 9 local objects.
From https://github.com/google/googletest
+ 08a2a8e7...0813e1ac refs/pull/3695/merge -> refs/pull/3695/merge (forced update)
Fetching git repo https://github.com/google/benchmark.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/protocolbuffers/protobuf.git, ref refs/heads/3.13.x
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/google/benchmark.git, ref refs/tags/v1.2.0
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Receiving objects: 100% (1/1), 157 bytes | 157.00 KiB/s, done.
Fetching full git repo https://github.com/google/googletest.git
Fetching git repo https://github.com/Yangqing/ios-cmake.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching git repo https://github.com/Maratyszcza/NNPACK.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching full git repo https://github.com/facebookincubator/gloo
Failed to download sources: module torch: Not a gitlink tree: third-party/googletest
Thanks for your time. Any help would be great. I was hoping there would be some kind of flag that I could set that would make this part of the flatpak build work. That may not be the case.
EDIT: it seems that the forum has messed up the indentation on my yaml snippet. I’m going to leave it as it is.