* crosscompiling error with CFLAGS+=-O0
@ 2008-05-18 9:42 Alexei Babich
0 siblings, 0 replies; only message in thread
From: Alexei Babich @ 2008-05-18 9:42 UTC (permalink / raw)
To: linux-newbie
Hello all.
When I crosscompile linux-2.6.25 (make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- spitz_defconfig; make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- zImage) with changed Makefile (by hand) from:
----
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else
KBUILD_CFLAGS += -O2
endif
---
to:
----
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else
KBUILD_CFLAGS += -O0
endif
---
.....for debugging, compilation crashes with error:
---
net/ipv4/xfrm4_state.c:70: error: initializer element is not constant
net/ipv4/xfrm4_state.c:70: error: (near initialization for 'xfrm4_state_afinfo.eth_proto')
make[2]: *** [net/ipv4/xfrm4_state.o] Error 1
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
---
How I can correct crosscompile for debugging ?
Thank you.
--
Regards,
Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: impatt@jabber.ru
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-18 9:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-18 9:42 crosscompiling error with CFLAGS+=-O0 Alexei Babich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox