[Interest] Qt 6.5.4-LTS from source -> fatal: Unable to find current revision in submodule path 'qt5compat'

Nuno Santos nuno.santos at imaginando.pt
Fri Feb 9 11:05:43 CET 2024


Alexandru,

Same problem

➜  6.5.4 git clone "ssh://sinosoidal@codereview.qt-project.org:29418/qt/tqtc-qt5"
Cloning into 'tqtc-qt5'...
remote: Counting objects: 189, done
remote: Finding sources: 100% (32453/32453)
remote: Total 32453 (delta 22269), reused 31126 (delta 22269)
Receiving objects: 100% (32453/32453), 10.35 MiB | 16.92 MiB/s, done.
Resolving deltas: 100% (22269/22269), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout
➜  6.5.4 cd tqtc-qt5
➜  tqtc-qt5 git:(main) git checkout origin/tqtc/lts-6.5.4
Note: switching to 'origin/tqtc/lts-6.5.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3303dc7a Provisioning: Update Axivion bauhaus-suite
➜  tqtc-qt5 git:(3303dc7a) ./init-repository --module-subset=qt5compat
+ git submodule init qt5compat
Submodule 'qt5compat' (ssh://sinosoidal@codereview.qt-project.org:29418/qt/tqtc-qt5compat.git) registered for path 'qt5compat'
+ git config commit.template /Users/nsantos/Qt/6.5.4/tqtc-qt5/.commit-template
+ git clone --no-checkout ssh://sinosoidal@codereview.qt-project.org:29418/qt/tqtc-qt5compat.git qt5compat
Cloning into 'qt5compat'...
remote: Counting objects: 29, done
remote: Finding sources: 100% (6700/6700)
remote: Total 6700 (delta 3705), reused 6477 (delta 3705)
Receiving objects: 100% (6700/6700), 15.95 MiB | 20.39 MiB/s, done.
Resolving deltas: 100% (3705/3705), done.
+ git config commit.template /Users/nsantos/Qt/6.5.4/tqtc-qt5/.commit-template
+ git config remote.gerrit.url ssh://codereview.qt-project.org/qt/tqtc-qt5compat.git
+ git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/
+ git submodule update --force --no-fetch
fatal: Unable to find current revision in submodule path 'qt5compat'
git submodule update --force --no-fetch exited with status 32768 at ./init-repository line 207.
	Qt::InitRepository::exe(Qt::InitRepository=HASH(0x15980bdd8), "git", "submodule", "update", "--force", "--no-fetch") called at ./init-repository line 452
	Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x15980bdd8), "tqtc-qt5", 0, "", "qt5compat") called at ./init-repository line 674
	Qt::InitRepository::run(Qt::InitRepository=HASH(0x15980bdd8)) called at ./init-repository line 685
➜  tqtc-qt5 git:(3303dc7a)

> On 9 Feb 2024, at 09:52, Alexandru Croitor <alexandru.croitor at qt.io> wrote:
> 
> Hi,
> 
> I just tried the following sequence of commands locally with no pre-existing directory, and everything worked fine.
> 
> git clone "ssh://<my-username>@codereview.qt-project.org:29418/qt/tqtc-qt5" qt6_new
> cd qt6_new
> git checkout origin/tqtc/lts-6.5.4
> ./init-repository --module-subset=qt5compat
> 
> Can you confirm whether the same works for you, to figure out whether this is a general issue, or an issue with the state of your pre-existing checkout?
> 
> Also please show the output of running 'git rev-parse HEAD' in your pre-existing qt5compat directory and in your tqtc-qt5 directory.
> 
> 
>> On 9. Feb 2024, at 10:33, Nuno Santos via Interest <interest at qt-project.org> wrote:
>> 
>> Thiago,
>> 
>> Doing just:
>> 
>> git submodule init qt5compat does nothing, the directory remains empty
>> 
>> Curiously it says the same thing as the perl init repository if I do:
>> 
>> git submodule update --init --recursive qt5compat
>> 
>> fatal: Unable to find current revision in submodule path ‘qt5compat’
>> 
>> ➜  tqtc-qt5 git:(v6.5.4-lts) ✗ cat .gitmodules | grep qt5compat
>> [submodule "qt5compat"]
>> path = qt5compat
>> url = ../tqtc-qt5compat.git
>> alias = qt/qt5compat
>> 
>> Any ideas?
>> 
>> Best,
>> 
>> Nuno
>> 
>> 
>>> On 9 Feb 2024, at 00:37, Thiago Macieira <thiago.macieira at intel.com> wrote:
>>> 
>>> On Thursday, 8 February 2024 13:28:10 PST Nuno Santos via Interest wrote:
>>>> One question. I’m not interested in all the modules. Just some of them. If I
>>>> do that I will unit all the modules and therefore the build will contain
>>>> them all right?
>>> 
>>> Correct.
>>> 
>>> You can do "git submodule init" for each of the modules you want.
>>> 
>>> Alternatively, you can clone and build just the modules you want. You don't 
>>> need the top-level dir.
>>> 
>>> -- 
>>> Thiago Macieira - thiago.macieira (AT) intel.com
>>> Cloud Software Architect - Intel DCAI Cloud Engineering
>>> _______________________________________________
>>> Interest mailing list
>>> Interest at qt-project.org
>>> https://lists.qt-project.org/listinfo/interest
>> 
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
> 



More information about the Interest mailing list