From: Alexei Babich <a.babich@rez.ru>
To: linux-newbie@vger.kernel.org
Subject: crosscompiling error with CFLAGS+=-O0
Date: Sun, 18 May 2008 15:42:15 +0600 [thread overview]
Message-ID: <200805181542.15445.a.babich@rez.ru> (raw)
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
reply other threads:[~2008-05-18 9:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805181542.15445.a.babich@rez.ru \
--to=a.babich@rez.ru \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox