On Wed, Apr 8, 2009 at 11:34 PM, Stewart Smith <[email protected]> wrote:
> On Thu, Apr 09, 2009 at 12:50:48AM +0200, Paul McCullagh wrote:
>> bzr branch lp:~drizzle-pbxt/drizzle/drizzle-pbxt
>
> Getting link failures on linux/sparc (you have ssh to the box, so feel
> free to try there if you like):
>
> ../storage/pbxt/src/libpbxt.a(libpbxt_a-lock_xt.o): In function
> `xt_atomic_dec2(unsigned short volatile*)':
> /home/stewart/drizzle/drizzle-pbxt/storage/pbxt/src/lock_xt.h:209:
> undefined reference to `__sync_fetch_and_sub_2'
> ../storage/pbxt/src/libpbxt.a(libpbxt_a-lock_xt.o): In function
> `xt_atomic_inc2(unsigned short volatile*)':
> /home/stewart/drizzle/drizzle-pbxt/storage/pbxt/src/lock_xt.h:194:
> undefined reference to `__sync_fetch_and_add_2'
> collect2: ld returned 1 exit status
>
> IIRC mtaylor had similar he had to sort out with the GCC atomics work.
>
> You can probably find the right SPARC assembler for it pretty easily
> though if that'd help.

Why can't Sun make the appropriate contributions to gcc to get this to work?
Even if we learn SPARC assembler, where is the platform on which to
test our changes?'

This isn't just a problem for PBXT+drizzle. Boost users have also run into it:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485434

And if you read that bug report, you realize that SPARC is at the same
level as HPPA with respect to support for it. Not a good place ot be
in.

>
> on a slightly different note, for the default #else there, The ++ and --
> operators I don't think are excellent choices... going instead for
> #error or a lock would be better (and produce correct results).
>
> --
> Stewart Smith
>
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Mark Callaghan
[email protected]

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to