qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] QEMU make: ROM is too large


From: Thomas Hanson
Subject: Re: [Qemu-devel] QEMU make: ROM is too large
Date: Mon, 22 Aug 2016 10:44:46 -0600

On 22 August 2016 at 08:23, Peter Maydell <address@hidden> wrote:

> PS: just passing --enable-debug to configure should
> be sufficient to do a no-optimization debug-symbols
> build; do you really need to manually specify
> CFLAGS? I wonder whether you're ending up with two
> -Osomething options in your CFLAGS which is then
> confusing the "override with -O2" logic in the
> pc-bios/optionrom/Makefile.
>

Peter,

Looks like you're onto something.

With:
CFLAGS="-g3 -O0" ./configure --target-list=aarch64-softmmu,arm-softmmu
--enable-vhost-net --enable-virtfs

cc -I/home/tom/QEMU/SrcTree/tcg -I/home/tom/QEMU/SrcTree/tcg/i386
-I/home/tom/QEMU/SrcTree/linux-headers
-I/home/tom/QEMU/SrcTree/linux-headers -I. -I/home/tom/QEMU/SrcTree
-I/home/tom/QEMU/SrcTree/include -Iqga -Iqga -I/usr/include/pixman-1
 -Werror -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef
-Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common
 -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
-fstack-protector-strong -I/home/tom/QEMU/SrcTree/tests -I
qga/qapi-generated -MMD -MP -MT qga/main.o -MF qga/main.d *-O2*
-U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include   *-g -g3 -O0  -c* -o
qga/main.o qga/main.c


With
./configure --enable-debug --target-list=aarch64-softmmu,arm-softmmu
--enable-vhost-net --enable-virtfs

cc -I/home/tom/QEMU/SrcTree/tcg -I/home/tom/QEMU/SrcTree/tcg/i386
-I/home/tom/QEMU/SrcTree/linux-headers
-I/home/tom/QEMU/SrcTree/linux-headers -I. -I/home/tom/QEMU/SrcTree
-I/home/tom/QEMU/SrcTree/include -Iqga -Iqga -I/usr/include/pixman-1
 -Werror -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef
-Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common
 -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
-fstack-protector-strong -I/home/tom/QEMU/SrcTree/tests -I
qga/qapi-generated -MMD -MP -MT qga/main.o -MF qga/main.d -pthread
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   *-g
  -c -o* qga/main.o qga/main.c

AND with the 2nd (--enable-debug) command line, the problem goes away.

Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]