From: alex@gai.ru (Alex Sverdlin)
To: linux-arm-kernel@lists.infradead.org
Subject: cmpxchg() in recent kernels
Date: Sat, 09 Oct 2010 13:32:39 +0400 [thread overview]
Message-ID: <4CB036B7.7000100@gai.ru> (raw)
Hello!
I've probably missed something, but how to compile recent kernels on ARM?
I've been using GCC 3.4.3 from Cirrus for my EP9302 boards up to 2.6.35.4
But 2.6.36-rc and upper won't compile anymore.
The problem is appearing in multiplatform code of cmpxchg() function.
First in kernel/pid.c (2.6.36-rc4 - 2.6.36-rc6)
Then 4 times in 2.6.36-rc7-next... atomic_cmpxchg compiles fine, and when I
replace cmpxhg with atomic_ version, everything compiles fine.
Here is output of make from 2.6.36-rc7-next:
...
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
kernel/built-in.o: In function `alloc_pid':
elfcore.c:(.text+0x1c258): undefined reference to `wrong_size_cmpxchg'
net/built-in.o: In function `rt_bind_peer':
sysctl_net.c:(.text+0x3bb38): undefined reference to `wrong_size_cmpxchg'
net/built-in.o: In function `inet_add_protocol':
sysctl_net.c:(.text+0x3f4dc): undefined reference to `wrong_size_cmpxchg'
net/built-in.o: In function `inet_del_protocol':
sysctl_net.c:(.text+0x3f5a8): undefined reference to `wrong_size_cmpxchg'
net/built-in.o: In function `build_ehash_secret':
sysctl_net.c:(.text+0x6a034): undefined reference to `wrong_size_cmpxchg'
make[1]: *** [vmlinux] Error 1
...
Best regards!
next reply other threads:[~2010-10-09 9:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 9:32 Alex Sverdlin [this message]
2010-10-15 4:26 ` cmpxchg() in recent kernels Aras Vaichas
2010-10-24 21:43 ` Kristoffer Ericson
2010-10-24 22:08 ` Russell King - ARM Linux
2010-10-25 1:33 ` Aras Vaichas
2010-10-25 6:37 ` Uwe Kleine-König
2010-10-25 15:13 ` Russell King - ARM Linux
2010-10-25 22:48 ` Aras Vaichas
2010-10-26 6:44 ` Uwe Kleine-König
2010-10-26 12:10 ` Aras Vaichas
2010-10-25 21:07 ` Kristoffer Ericson
2010-10-25 22:37 ` Alexander Sverdlin
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=4CB036B7.7000100@gai.ru \
--to=alex@gai.ru \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.