Skip to content

Building with GCC 11 fails #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
awvwgk opened this issue May 24, 2021 · 7 comments
Closed

Building with GCC 11 fails #416

awvwgk opened this issue May 24, 2021 · 7 comments
Labels
bug Something isn't working compiler: gfortran Specific to GCC Fortran compiler

Comments

@awvwgk
Copy link
Member

awvwgk commented May 24, 2021

GCC 11 is now available and we already have packages for Ubuntu 21.04 and homebrew, would be nice if we could start testing this here as well. Since our Linux runner is using Ubuntu 20.04 it might be a bit more involved to install GCC 11 there.

@jvdp1
Copy link
Member

jvdp1 commented May 24, 2021

AFAIK Ubuntu 21.04 is not available among the supported Github runners.

Here and here are some discussions on GCC 11 on Ubuntu 20.04

@awvwgk
Copy link
Member Author

awvwgk commented May 24, 2021

We are triggering an ICE with GCC 11 in stdlib_optval:

cd /home/runner/work/stdlib/stdlib/build/src/tests/optval && /usr/bin/gfortran-11  -I/home/runner/work/stdlib/stdlib/build/src/mod_files  -O3 -DNDEBUG -O3   -fimplicit-none -ffree-line-length-132 -Wall -Wextra -Wimplicit-procedure -Wconversion-extra -pedantic-errors -std=f2018 -Wno-error=pedantic -c /home/runner/work/stdlib/stdlib/src/tests/optval/test_optval.f90 -o CMakeFiles/test_optval.dir/test_optval.f90.o
f951: internal compiler error: Segmentation fault
0xd40aeb internal_error(char const*, ...)
	???:0
0x15913ef gfc_resolve_code(gfc_code*, gfc_namespace*)
	???:0
0x1572ad1 gfc_parse_file()
	???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

@awvwgk awvwgk added the bug Something isn't working label May 24, 2021
@awvwgk awvwgk changed the title Test GCC 11 Building with GCC 11 fails May 24, 2021
@LKedward
Copy link
Member

I opened a possible fix in awvwgk#80. Works locally, but not tested in Github actions CI yet.

@awvwgk
Copy link
Member Author

awvwgk commented May 25, 2021

This seems to do the trick, thanks.

@ghost
Copy link

ghost commented May 26, 2021

For information, current git~master builds unmodified with GCC-11-x86-64 on Windows 10 x64, using make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4 clean test.

@awvwgk
Copy link
Member Author

awvwgk commented May 26, 2021

The manual makefile does not set the -pedantic-errors option which is triggering the ICE in the CMake based build.

@awvwgk
Copy link
Member Author

awvwgk commented Jun 2, 2021

Maybe worth reporting on https://gcc.gnu.org/bugzilla/, stdlib_optval.fypp should be self-contained enough for a good minimal reproducer. I might be able to upgrade my toolchains to GCC11 by the end of this month and create a report, until then please feel free to go ahead, report this issue and post the ticket here if you have already a GCC11 version around.

@awvwgk awvwgk closed this as completed Sep 18, 2021
@awvwgk awvwgk added compiler: gfortran Specific to GCC Fortran compiler and removed compilers labels Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler: gfortran Specific to GCC Fortran compiler
Projects
None yet
Development

No branches or pull requests

3 participants