Do you mean *releases/gcc-10* ?
/➜ gcc git:(master) ✗ git worktree add ../gcc-10 -b releases/gcc-10
origin/releases/gcc-10//
//Preparing worktree (new branch 'releases/gcc-10')//
//fatal: A branch named 'releases/gcc-10' already exists.//
//➜ gcc git:(master) ✗ git checkout releases/gcc-10//
//Updating files: 100% (32377/32377), done.//
//Switched to branch 'releases/gcc-10'//
//Your branch is up to date with 'origin/releases/gcc-10'./
On 2021-06-27 10:16 p.m., Hongtao Liu wrote:
On Mon, Jun 28, 2021 at 11:32 AM Pei Jia <jiapei@xxxxxxxxxxxxxxxx> wrote:
I now tried
commit r11-8201-g2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f
on your GCC master repo try
git worktree add ../gcc-10 -b releases/gcc-10 origin/releases/gcc-10
Then build for ../gcc-10 repo.
It built out gcc-11.0.1
➜ bin gcc --version
gcc (GCC) 11.0.1 20210415 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any further suggestions?
Cheers
Pei
On 2021-06-27 7:10 p.m., Hongtao Liu wrote:
On Mon, Jun 28, 2021 at 9:47 AM Pei Jia <jiapei@xxxxxxxxxxxxxxxx> wrote:
Hello:
I'm facing this issue addressed at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101> and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102> . My environment
is Ubuntu 20.04. The current gcc version is of 10.3.0, from the default
repo. I was trying to rebuild gcc by checking out the branch gcc-10:
/➜ gcc git:(gcc-10) ✗ git remote -v/
/origin git://gcc.gnu.org/git/gcc.git (fetch)/
/origin git://gcc.gnu.org/git/gcc.git (push)/
/➜ gcc git:(gcc-10) ✗ echo "$(git branch -vv)"/
/* gcc-10 461f937b472 Daily bump./
git gcc-desr 461f937b472 shows
r12-1830
it looks like you're on the main trunk but not releases/gcc-10.
/ master 461f937b472 [origin/master] Daily bump./
However, even if it's successfully built, it built out a version of 12,
which is NOT what I expect.
/➜ gcc git:(gcc-10) ✗ gcc --version//
//gcc (GCC) 12.0.0 20210627 (experimental)//
//Copyright (C) 2021 Free Software Foundation, Inc.//
//This is free software; see the source for copying conditions.
There is NO//
//warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE./
My configuration to build *gcc-10* is as:
/➜ gcc git:(gcc-10) ✗ $PWD/../gcc/configure --prefix=/usr/local
--enable-languages=c,c++,fortran,go --enable-multilib /
Can anybody give me a hand please?
Thank you very much
Best Regards
Pei
--
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd.
Email: jiapei@xxxxxxxxxxxxxxxx
Cell Number: +1 778-863-5816
--
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd. <https://www.longervision.ca>
Email: jiapei@xxxxxxxxxxxxxxxx <mailto:jiapei@xxxxxxxxxxxxxxxx>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>