gcc4: missing atomic builtins?

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Fri Mar 27 21:38:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dave,

Building djvulibre-3.5.21 with gcc4, while linking libdjvulibre:

.libs/atomic.o:atomic.cpp:(.text+0x3b): undefined reference to
`___sync_bool_compare_and_swap_4'
.libs/atomic.o:atomic.cpp:(.text+0x65): undefined reference to
`___sync_add_and_fetch_4'

Some googling shows that the culprit *may be* gcc4:

http://sourceware.org/ml/crossgcc/2008-06/msg00022.html

Any ideas?


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAknNMlwACgkQpiWmPGlmQSMzYwCg4EVtxHSvT98JxVKq4LLdXio6
VhMAmgJxWtOTYCeLGay2ZG2lN7B/0yJP
=RJil
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list