NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: internal compiler error on NetBSD-6.0_STABLE i386

On Thu, 7 Feb 2013 20:48:40 +0000
Sad Clouds <> wrote:

> Hello, I'm trying to build xen-4.2.1 on i386, however it fails with
> 'internal compiler error' when building tools:
> # LD_LIBRARY_PATH=/usr/pkg/lib gmake tools
> ...
> gmake[3]: Entering directory `/opt/tmp/xen-4.2.1/tools/qemu-xen-dir'
>   GEN   config-host.h
>   GEN   trace.h
>   GEN   trace.c
>   GEN   config-target.h
>   CC    i386-softmmu/op_helper.o
> /opt/tmp/xen-4.2.1/tools/qemu-xen/target-i386/op_helper.c: In function
> 'helper_flds_FT0': 
> /opt/tmp/xen-4.2.1/tools/qemu-xen/target-i386/op_helper.c:3651:1:
> internal compiler error: in dwarf2out_frame_debug_expr, at
> dwarf2out.c:2261 Please submit a full bug report, with preprocessed
> source if appropriate. See  for instructions.
> gmake[4]: *** [op_helper.o] Error 1
> gmake[3]: *** [subdir-i386-softmmu] Error 2
> gmake[3]: Leaving directory `/opt/tmp/xen-4.2.1/tools/qemu-xen-dir'
> gmake[2]: *** [subdir-all-qemu-xen-dir] Error 2
> gmake[2]: Leaving directory `/opt/tmp/xen-4.2.1/tools'
> gmake[1]: *** [subdirs-install] Error 2
> gmake[1]: Leaving directory `/opt/tmp/xen-4.2.1/tools'
> gmake: *** [install-tools] Error 2
> I thought it could be due to flaky hardware, so I ran memtest86 and it
> didn't show up any issues.
> Is anyone else seeing this on i386?

It turned out it was GCC -g flag that was causing issue. Running the
following build command by hand on op_helper.c without -g flag
generated binary without compiler errors:

# pwd

# gcc -I/opt/tmp/xen-4.2.1/tools/qemu-xen/slirp -I. 
-I/opt/tmp/xen-4.2.1/tools/qemu-xen -I/opt/tmp/xen-4.2.1/tools/qemu-xen/fpu 
-I/opt/tmp/xen-4.2.1/tools/qemu-xen/tcg/i386 -m32 -D_FORTIFY_SOURCE=2 
-Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes 
-fno-strict-aliasing -I/opt/tmp/xen-4.2.1/tools/../tools/include 
-I/opt/tmp/xen-4.2.1/tools/../tools/xenstore/compat -fstack-protector-all 
-Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs 
-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers 
-Wold-style-declaration -Wold-style-definition -Wtype-limits -DHAS_AUDIO 
-I/opt/tmp/xen-4.2.1/tools/qemu-xen/target-i386 -DNEED_CPU_H -pthread 
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2
 .0/include -I/usr/pkg/include -pthread -I/usr/pkg/include/glib/glib-2.0 
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -fomit-frame-pointer -MMD 
-MP -MT op_helper.o -MF ./op_helper.d -O2 -c -o op_helper.o 

Home | Main Index | Thread Index | Old Index