Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 11.1 update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Mon May 03, 2021 10:41 pm    Post subject: gcc 11.1 update Reply with quote

Greetings all has anyone updated gcc to 11.1?
Working thru an emerge world update and it went pretty smooth other than mongoDb and libreoffice both seemed to have strange errors
Code:
                 from src/mongo/db/pipeline/semantic_analysis.cpp:33:
src/mongo/db/exec/plan_stats.h:214:10: error: ‘optional’ in namespace ‘std’ does not name a template type
  214 |     std::optional<std::string> replanReason;
      |          ^~~~~~~~
src/mongo/db/exec/plan_stats.h:41:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?


Libreoffice also had a similar c++ error.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Mon May 03, 2021 11:13 pm    Post subject: Reply with quote

There's plenty of known build issues, and list still growing (most with C++ packages given gcc11 defaults to c++17 now).

Starting to see reports of potential runtime issues too, but that still need looking into. So use care if select it.

I use it myself (for testing) and minus a few occasional hiccups been going fine, but I still keep 10 around for when needed.

For mongodb it's bug #768339, this one been known for a while before 11 was released.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Tue May 04, 2021 12:24 am    Post subject: Reply with quote

Thanks for the reply Ionen and the bug link.
Yeah I have got
Code:
 gcc-config -l
 [1] x86_64-pc-linux-gnu-9.2.0
 [2] x86_64-pc-linux-gnu-10.3.0
 [3] x86_64-pc-linux-gnu-11.1.0 *

I'll try libreoffice with 10.3 later.

I have about 14 more builds to go before the world update is complete.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue May 04, 2021 8:24 am    Post subject: Re: gcc 11.1 update Reply with quote

turtles wrote:
Libreoffice also had a similar c++ error.

Libreoffice-6.4.7.2 clearly has some problems. Did you already try a newer version? (Could safe me some time trying...)
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Tue May 04, 2021 8:33 am    Post subject: Re: gcc 11.1 update Reply with quote

mv wrote:
turtles wrote:
Libreoffice also had a similar c++ error.

Libreoffice-6.4.7.2 clearly has some problems. Did you already try a newer version? (Could safe me some time trying...)

app-office/libreoffice-7.1.3.2 is okay with GCC-11.1.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1656

PostPosted: Tue May 04, 2021 2:12 pm    Post subject: Reply with quote

Thanks Perfect I am trying that out now.
I got everything else to compile.

Once I added a
#include <optional>
to the source in mongo/db/exec/plan_stats.h
I got mongodb to compile.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Wed May 05, 2021 8:17 am    Post subject: Reply with quote

My servers (console-only) seems mostly fine with gcc11 - only had net-misc/dhcp acting up...
gcc10+lto was fine, gcc11+lto compiles fine, but segfaults when starting (for me anyway).
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Wed May 05, 2021 8:21 am    Post subject: Reply with quote

freke wrote:
only had net-misc/dhcp acting up....
Are you using -O3? dhcp issue is apparently specific to gcc11 + -O3 (bug #787935, assuming you didn't file that yourself anyway ;))
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Wed May 05, 2021 8:33 am    Post subject: Reply with quote

Ionen wrote:
freke wrote:
only had net-misc/dhcp acting up....
Are you using -O3? dhcp issue is apparently specific to gcc11 + -O3 (bug #787935, assuming you didn't file that yourself anyway ;))


yeah - I saw that bug, but no - I'm pretty standard, I guess (apart maybe from using graphite and lto)
Code:
CFLAGS="-fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CFLAGS="${CFLAGS} -flto=4 -fuse-linker-plugin -fno-fat-lto-objects"
CFLAGS="${CFLAGS} -ftree-vectorize"
CFLAGS="${CFLAGS} -march=native -O2 -pipe -fomit-frame-pointer"


Works fine when I disable the lto-flags/add net-misc/dhcp to my no-lto packages....
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Wed May 05, 2021 8:40 am    Post subject: Reply with quote

freke wrote:
yeah - I saw that bug, but no - I'm pretty standard, I guess (apart maybe from using graphite and lto)
Well, you are using parts of -O3, i.e. -O3 enables -floop-interchange, -ftree-vectorize, and -ftree-loop-distribution. lto may just be an alternate way to trigger this though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum