View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Mon May 03, 2021 10:41 pm Post subject: gcc 11.1 update |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2719
|
Posted: Mon May 03, 2021 11:13 pm Post subject: |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Tue May 04, 2021 12:24 am Post subject: |
|
|
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 |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Tue May 04, 2021 8:24 am Post subject: Re: gcc 11.1 update |
|
|
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 |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Tue May 04, 2021 8:33 am Post subject: Re: gcc 11.1 update |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Tue May 04, 2021 2:12 pm Post subject: |
|
|
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 |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Wed May 05, 2021 8:17 am Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2719
|
Posted: Wed May 05, 2021 8:21 am Post subject: |
|
|
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 |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Wed May 05, 2021 8:33 am Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2719
|
Posted: Wed May 05, 2021 8:40 am Post subject: |
|
|
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 |
|
|
|