On 1/18/21 10:17 AM, Laurent Vivier wrote:
> This commit breaks the build of my hello world test program with
> mips64el/stretch guest
> (and I guess some others too).
>
> cat > $CHROOT/tmp/hello.c <<EOF
> #include <stdio.h>
> int main(void)
> {
> printf("Hello World!\n");
> return 0;
> }
> EOF
>
> unshare --time --ipc --uts --pid --fork --kill-child --mount --mount-proc
> --root \
> $CHROOT gcc /tmp/hello.c -o /tmp/hello
> /tmp/hello.c:1:0: internal compiler error: Segmentation fault
> #include <stdio.h>
>
> executable file is not ELF
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
>
> # gcc --version
> gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
> Copyright (C) 2016 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 idea?
Working on it:
https://bugs.launchpad.net/bugs/1912065
There's a temp hack in there that may work for you. With no change, you'll see
an assert instead of a segv if you --enable-debug-tcg.
r~