Date: Tue, 17 Mar 2015 11:35:31 -0700 From: Justin Hibbits <jrh29@alumni.cwru.edu> To: Jukka Ukkonen <jau789@gmail.com> Cc: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: Something missing perhaps? Message-ID: <CAHSQbTBtQeoKLrhsrd7idE9O4W7GGfKx8dKUTgn5EeCUpAip6g@mail.gmail.com> In-Reply-To: <55082540.1020001@gmail.com> References: <55082540.1020001@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
These symbol references are generated by the compiler to handle 64-bit atomic operations. I don't think there's currently any support, even in libgcc, for 64-bit atomics on 32-bit powerpc. Something *could* be hacked together to handle it, using a mutex wrapper, but to the best of my knowledge, nobody's done the work for it. - Justin On Tue, Mar 17, 2015 at 5:59 AM, Jukka Ukkonen <jau789@gmail.com> wrote: > > Hello all, > > I was trying to build kyotocabinet from the ports tree > on an old PowerMac G4 Quicksilver, but the attempt failed > in a very peculiar manner... > Do these complaints from cc ring any bells... > > ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' > ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' > ./libkyotocabinet.so: undefined reference to > `__sync_bool_compare_and_swap_8' > ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' > ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' > ./libkyotocabinet.so: undefined reference to > `__sync_bool_compare_and_swap_8' > > Those missing names are apparenly being referenced by > work/kyotocabinet-1.2.76/kcthread.cc. Since I failed > to find the definition of these names anywhere in the > kyotocabinet source, I assume the names are used in > some compiler header file. > Were those names really intended to be in the headers > as-is or were they actually some sort of place holders > for something which have then been completely forgotten > for some reason? > > The all important details of the system are... > > # uname -a > FreeBSD yggdrasil 10.1-STABLE FreeBSD 10.1-STABLE #0 r280132: Mon Mar 16 > 06:12:57 EET 2015 root@yggdrasil:/opt2/obj/usr/src-10.1/sys/GENERIC > powerpc > > # uname -KU > 1001510 1001510 > > # freebsd-version -ku > 10.1-STABLE > 10.1-STABLE > > > --jau > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTBtQeoKLrhsrd7idE9O4W7GGfKx8dKUTgn5EeCUpAip6g>