From: Bill P. <bpr...@sy...> - 2007-01-29 17:11:18
|
On 28 Jan 2007, ml...@ta... wrote: > Unfortunately, I've been encountering an apparently new problem with > an undefined '___popcountsi2' symbol. That is, the fixes for my old > '___popcountsi2' symbol problem have failed to prevent it. Well, depending on what you wish to achieve, you can edit the config.h and comment out the line "HAS_BUILTIN_POPCOUNT". This is only referenced in misc.h. It is being use to determine if only a single bit is set. You may also be able to send this to Configure with "-U d_built_popcount". This should short circuit the U/new/d_built_popcount.U. This script (put in Configure) is trying to compile this, int main(void) { static int ret; ret |= __builtin_popcount(127); return ret ? 0 : 1; } For some reason, this is compiling (and linking) on your system. I think the code could be changed to this, int main(void) { static int ret; ret |= __builtin_popcount(127); return ret == 7 ? 0 : 1; } That would verify that the popcount is working correctly. Could you put those code snippets in a foo.c and compile and run them? Do they work? This would help determine if Configure is not handling your system correctly or if there is something wrong with your build environment. hth, Bill Pringlemeir. |