Bug#725143: ogre-1.9 unbuildable on some archs

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Thu Oct 10 13:41:59 UTC 2013


Control: reopen -1

It now links with latomic in the architectures without these
instructions, but fails to compile anyway because the functions
__sync* don't seem to exist in the linked library:

  https://buildd.debian.org/status/fetch.php?pkg=ogre-1.9&arch=mips&ver=1.9.0%7E20130731%2Bdfsg1-3&stamp=1381403685

According to the doc:
http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins

  "Not all operations are supported by all target processors. If a
particular operation cannot be implemented on the target processor, a
warning is generated and a call an external function is generated. The
external function carries the same name as the built-in version, with
an additional suffix ‘_n’ where n is the size of the data type."

It seems that the names have to be changed as in the following URLs:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708929 (see
openimageio.patch)

  http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html

Hopefully this will fix the problem.

Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Pkg-games-devel mailing list