Skip to content
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

GCC internal compiler error #4409

Closed
hunbernd opened this issue Sep 15, 2018 · 9 comments
Closed

GCC internal compiler error #4409

hunbernd opened this issue Sep 15, 2018 · 9 comments

Comments

@hunbernd
Copy link

I get the following build error when using 64 bit GCC 8.2.0.
internal compiler error: in based_loc_descr, at dwarf2out.c:14272
libbacktrace could not find executable to open

Using 32 bit GCC 7.3.0 the same codes compiles well.

It seems like that there is already a patch:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86593

Please provide an updated version of GCC for mingw64.

@oscarfv
Copy link
Contributor

oscarfv commented Sep 21, 2018

If you want this fix included in our gcc package, instead of waiting for somebody else to do the work you could modify the PKGBUILD for incorporating the patch, test the package build and, if successful, create a PR :-)

@Alexpux
Copy link
Member

Alexpux commented Oct 1, 2018

New 64 bit GCC 8 uploaded

@Alexpux Alexpux closed this as completed Oct 1, 2018
@cfis
Copy link

cfis commented Nov 13, 2018

I am still seeing this error when building ruby 2.5.3 from source. I believe I am using the latest version of gcc available, see below.


Error:

compiling array.c
during RTL pass: final
array.c: In function 'sort_by_i':
array.c:2696:1: internal compiler error: in based_loc_descr, at dwarf2out.c:14272
}
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See https://sourceforge.net/projects/msys2 for instructions.
make: *** [Makefile:376: array.o] Error 1


gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-8.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=ada,c,lto,c++,objc,obj-c++,fortran --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 8.2.0 (Rev3, Built by MSYS2 project)

@mingwandroid
Copy link
Member

Please produce a minimal test case using, for example, creduce. Then post it to gccs bugzilla with a link here.

@mati865
Copy link
Collaborator

mati865 commented Nov 13, 2018

It's said to be fixed in GCC 9 and backporting https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=264096 should fix it for GCC 8.

@cfis
Copy link

cfis commented Nov 14, 2018

Its not a minimal test case, but on Windows 10 using msys2 and mingw64:

And you'll see the error in about 5 seconds.

@mingwandroid
Copy link
Member

mingwandroid commented Nov 14, 2018 via email

@crlf0710
Copy link

Still seeing this problem. Proceeding by removing "-fno-emit-frame-pointer" as a work around.

@hunbernd
Copy link
Author

I managed to backport the patch: #5261

Minimal test case:
g++ test.c -o test.o -O -g -fno-omit-frame-pointer

test.c:

struct Foo
{
    int bar(int a, int b, int c, int i1, int i2, int i3, int d);
};

int Foo::bar(int a, int b, int c, int i1, int i2, int i3, int d)
{
  return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants