public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-10 branch builds out version 12 ALL THE TIME ?
@ 2021-06-28  1:46 Pei Jia
  2021-06-28  2:10 ` Hongtao Liu
  2021-06-28 11:53 ` LIU Hao
  0 siblings, 2 replies; 12+ messages in thread
From: Pei Jia @ 2021-06-28  1:46 UTC (permalink / raw)
  To: gcc-help


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./
    /  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



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  1:46 gcc-10 branch builds out version 12 ALL THE TIME ? Pei Jia
@ 2021-06-28  2:10 ` Hongtao Liu
  2021-06-28  3:32   ` Pei Jia
  2021-06-28 11:53 ` LIU Hao
  1 sibling, 1 reply; 12+ messages in thread
From: Hongtao Liu @ 2021-06-28  2:10 UTC (permalink / raw)
  To: Pei Jia; +Cc: gcc-help

On Mon, Jun 28, 2021 at 9:47 AM Pei Jia <jiapei@longervision.com> 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
>
>


-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  2:10 ` Hongtao Liu
@ 2021-06-28  3:32   ` Pei Jia
  2021-06-28  5:16     ` Hongtao Liu
  2021-06-28  6:50     ` Jonathan Wakely
  0 siblings, 2 replies; 12+ messages in thread
From: Pei Jia @ 2021-06-28  3:32 UTC (permalink / raw)
  To: Hongtao Liu; +Cc: gcc-help

I now tried

commitr11-8201-g2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f  <https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f>


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@longervision.com> 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. <https://www.longervision.ca>
Email: jiapei@longervision.com <mailto:jiapei@longervision.com>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  3:32   ` Pei Jia
@ 2021-06-28  5:16     ` Hongtao Liu
  2021-06-28  5:52       ` Pei Jia
  2021-06-28  6:50     ` Jonathan Wakely
  1 sibling, 1 reply; 12+ messages in thread
From: Hongtao Liu @ 2021-06-28  5:16 UTC (permalink / raw)
  To: Pei Jia; +Cc: gcc-help

On Mon, Jun 28, 2021 at 11:32 AM Pei Jia <jiapei@longervision.com> 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@longervision.com> 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@longervision.com
> Cell Number: +1 778-863-5816



-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  5:16     ` Hongtao Liu
@ 2021-06-28  5:52       ` Pei Jia
  2021-06-28  6:46         ` Hongtao Liu
  0 siblings, 1 reply; 12+ messages in thread
From: Pei Jia @ 2021-06-28  5:52 UTC (permalink / raw)
  To: Hongtao Liu; +Cc: gcc-help


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@longervision.com> 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@longervision.com> 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@longervision.com
>> Cell Number: +1 778-863-5816
>
>
-- 
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd. <https://www.longervision.ca>
Email: jiapei@longervision.com <mailto:jiapei@longervision.com>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  5:52       ` Pei Jia
@ 2021-06-28  6:46         ` Hongtao Liu
  2021-06-28  7:12           ` Pei Jia
  2021-06-28  7:12           ` Pei Jia
  0 siblings, 2 replies; 12+ messages in thread
From: Hongtao Liu @ 2021-06-28  6:46 UTC (permalink / raw)
  To: Pei Jia; +Cc: gcc-help

On Mon, Jun 28, 2021 at 1:52 PM Pei Jia <jiapei@longervision.com> wrote:
>
>
> Do you mean releases/gcc-10 ?
Yes.
>
>
> ➜  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@longervision.com> 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@longervision.com> 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@longervision.com
> Cell Number: +1 778-863-5816
>
>
> --
> Dr. Pei Jia
> CTO of Longer Vision Technology (Canada) Ltd.
> Email: jiapei@longervision.com
> Cell Number: +1 778-863-5816



-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  3:32   ` Pei Jia
  2021-06-28  5:16     ` Hongtao Liu
@ 2021-06-28  6:50     ` Jonathan Wakely
  2021-06-28  7:01       ` Pei Jia
  1 sibling, 1 reply; 12+ messages in thread
From: Jonathan Wakely @ 2021-06-28  6:50 UTC (permalink / raw)
  To: Pei Jia; +Cc: Hongtao Liu, gcc-help

On Mon, 28 Jun 2021, 04:33 Pei Jia, <jiapei@longervision.com> wrote:

> I now tried
>
> commitr11-8201-g2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f  <
> https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f
> >
>

Why would you use that commit?


>
> It built out *gcc-11.0.1*
>

Obviously. Because you used commit r11-8201.

Use the releases/gcc-10 branch, and make sure it matches
origin/releases/gcc-10 (and is not a copy of trunk that you've called
gcc-10 somehow).

The problem is your use of git, not GCC.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  6:50     ` Jonathan Wakely
@ 2021-06-28  7:01       ` Pei Jia
  2021-06-28  9:14         ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: Pei Jia @ 2021-06-28  7:01 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: Hongtao Liu, gcc-help


Due to these 2 issues:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101 
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102>




On 2021-06-27 11:50 p.m., Jonathan Wakely wrote:
>
>
> On Mon, 28 Jun 2021, 04:33 Pei Jia, <jiapei@longervision.com 
> <mailto:jiapei@longervision.com>> wrote:
>
>     I now tried
>
>     commitr11-8201-g2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f
>     <https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f
>     <https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f>>
>
>
> Why would you use that commit?
>
>
>
>     It built out *gcc-11.0.1*
>
>
> Obviously. Because you used commit r11-8201.
>
> Use the releases/gcc-10 branch, and make sure it matches 
> origin/releases/gcc-10 (and is not a copy of trunk that you've called 
> gcc-10 somehow).
>
> The problem is your use of git, not GCC.
-- 
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd. <https://www.longervision.ca>
Email: jiapei@longervision.com <mailto:jiapei@longervision.com>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  6:46         ` Hongtao Liu
@ 2021-06-28  7:12           ` Pei Jia
  2021-06-28  7:12           ` Pei Jia
  1 sibling, 0 replies; 12+ messages in thread
From: Pei Jia @ 2021-06-28  7:12 UTC (permalink / raw)
  To: Hongtao Liu; +Cc: gcc-help



Successfully built... Thank you ....

Pei


On 2021-06-27 11:46 p.m., Hongtao Liu wrote:
> On Mon, Jun 28, 2021 at 1:52 PM Pei Jia <jiapei@longervision.com> wrote:
>>
>> Do you mean releases/gcc-10 ?
> Yes.
>>
>> ➜  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@longervision.com> 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@longervision.com> 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@longervision.com
>> Cell Number: +1 778-863-5816
>>
>>
>> --
>> Dr. Pei Jia
>> CTO of Longer Vision Technology (Canada) Ltd.
>> Email: jiapei@longervision.com
>> Cell Number: +1 778-863-5816
>
>
-- 
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd. <https://www.longervision.ca>
Email: jiapei@longervision.com <mailto:jiapei@longervision.com>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  6:46         ` Hongtao Liu
  2021-06-28  7:12           ` Pei Jia
@ 2021-06-28  7:12           ` Pei Jia
  1 sibling, 0 replies; 12+ messages in thread
From: Pei Jia @ 2021-06-28  7:12 UTC (permalink / raw)
  To: Hongtao Liu; +Cc: gcc-help

Successfully built out 10.3.1, Thank you...

Pei


On 2021-06-27 11:46 p.m., Hongtao Liu wrote:
> On Mon, Jun 28, 2021 at 1:52 PM Pei Jia <jiapei@longervision.com> wrote:
>>
>> Do you mean releases/gcc-10 ?
> Yes.
>>
>> ➜  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@longervision.com> 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@longervision.com> 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@longervision.com
>> Cell Number: +1 778-863-5816
>>
>>
>> --
>> Dr. Pei Jia
>> CTO of Longer Vision Technology (Canada) Ltd.
>> Email: jiapei@longervision.com
>> Cell Number: +1 778-863-5816
>
>
-- 
Dr. Pei Jia
CTO of Longer Vision Technology (Canada) Ltd. <https://www.longervision.ca>
Email: jiapei@longervision.com <mailto:jiapei@longervision.com>
Cell Number: +1 778-863-5816 <tel:+1 778-863-5816>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  7:01       ` Pei Jia
@ 2021-06-28  9:14         ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2021-06-28  9:14 UTC (permalink / raw)
  To: Pei Jia; +Cc: Hongtao Liu, gcc-help

On Mon, 28 Jun 2021 at 08:01, Pei Jia wrote:
>
>
> Due to these 2 issues:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102

But it's obviously not going to give you a build of GCC 10. What I
mean is why would you use that commit when you're trying to build the
GCC 10 branch?

If you use a commit on the gcc-11 branch, then of course you will get GCC 11.x

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gcc-10 branch builds out version 12 ALL THE TIME ?
  2021-06-28  1:46 gcc-10 branch builds out version 12 ALL THE TIME ? Pei Jia
  2021-06-28  2:10 ` Hongtao Liu
@ 2021-06-28 11:53 ` LIU Hao
  1 sibling, 0 replies; 12+ messages in thread
From: LIU Hao @ 2021-06-28 11:53 UTC (permalink / raw)
  To: Pei Jia, gcc-help


[-- Attachment #1.1: Type: text/plain, Size: 997 bytes --]

在 6/28/21 9:46 AM, Pei Jia 写道:
> 
>     /➜  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./
>     /  master 461f937b472 [origin/master] Daily bump./
> 
> 

Note both your local branches `gcc-10` and `master` point to `461f937b472`, which means that your 
`gcc-10` is a copy of `master`. Building on your working tree has the same effect as building on the 
master branch, which of course gives you GCC 12.


In order to build the desired GCC 10 branch, you can either checkout `origin/releases/gcc-10`, or 
make your local `gcc-10` point to `origin/releases/gcc-10`, throwing away any changes, with

   git checkout gcc-10       # `git switch gcc-10` is recommended
   git reset --hard origin/releases/gcc-10




-- 
Best regards,
LIU Hao


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-06-29 19:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  1:46 gcc-10 branch builds out version 12 ALL THE TIME ? Pei Jia
2021-06-28  2:10 ` Hongtao Liu
2021-06-28  3:32   ` Pei Jia
2021-06-28  5:16     ` Hongtao Liu
2021-06-28  5:52       ` Pei Jia
2021-06-28  6:46         ` Hongtao Liu
2021-06-28  7:12           ` Pei Jia
2021-06-28  7:12           ` Pei Jia
2021-06-28  6:50     ` Jonathan Wakely
2021-06-28  7:01       ` Pei Jia
2021-06-28  9:14         ` Jonathan Wakely
2021-06-28 11:53 ` LIU Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).