[Gc] atomic-ops on arm trouble, again
gregf at hq.newdream.net
Fri Mar 18 13:58:03 PST 2011
Ahhhh....that's what it looked like to me but I didn't think atomic-ops had any .c files -- we really haven't needed them for *anything* else! -- I just assumed it was a broken chain of preprocessor definitions leaving something not defined that should have been. *blush*
...aaand atomic_ops.c is not included in the Debian packages. (Now I feel slightly better.) Hmm. I wonder if it's rolled into one of the headers somehow...
At this point I assume that's the issue, but I will test out in my own setup and report back after testing (and try and figure something out with Ian).
Thanks so much!
On Friday, March 18, 2011 at 2:37 PM, Ivan Maidanski wrote:
> Is this a linkage error? If yes then check that src/atomic_ops.c is included in the compilation set.
> Fri, 18 Mar 2011 14:28:01 -0700 Gregory Farnum <gregf at hq.newdream.net>:
> > Well here's what I've got. Our Debian maintainer recently started trying to
> > build Ceph on their armel port, which is an ARMv5 setup. It failed as
> > mentioned below (full logs:
> > https://buildd.debian.org/fetch.cgi?pkg=ceph&arch=armel&ver=0.24.3-2&stamp=1298712439&file=log&as=raw).
> > Setting AO_REQUIRE_CAS as suggested lets the build proceed further, but ends
> > up failing on:
> > libtool: link: g++ -Wall -DAO_REQUIRE_CAS -D__CEPH__ -D_FILE_OFFSET_BITS=64
> > -D_REENTRANT -D_THREAD_SAFE -rdynamic -g -O2 -Wl,--as-needed -o cmon cmon.o
> > SimpleMessenger.o libmon.a libcrush.a libcommon.a -lpthread -lm -lcrypto++
> > cmon.o: In function `AO_fetch_and_add_full':
> > /usr/include/atomic_ops/generalize.h:338: undefined reference to
> > `AO_compare_and_swap_emulation(unsigned int volatile*, unsigned int, unsigned
> > int)'
> > (Transcribed by hand out of a QEMU console, so please forgive any typos :)).
> > My tests (like the above failure) are on a QEMU arm setup (I think Debian's
> > default). /proc/cpuinfo says, among other things:
> > Processor : ARM926EJ-S rev 5 (v51)
> > Features : swp half thumb fastmult vfp edsp java
> > CPU implementer : 0x41
> > CPU architecture: 5TEJ
> > CPU variant : 0x0
> > CPU part : 0x926
> > CPU revision : 5
> > Hardware : ARM-Versatile PB
> > I don't have access to the exact specs for Debian's build farm but I should be
> > able to get more information from our maintainer if requested.
> > I don't think I should need to be adding anything else for this to work if
> > it's set up properly in atomic-ops, should I?
> > -Greg
More information about the Gc