On 01/06/2012 12:30 PM, Iain Sandoe wrote:

On 6 Jan 2012, at 16:42, Jack Howarth wrote:

On Fri, Jan 06, 2012 at 10:58:51AM -0500, Patrick Marlier wrote:
On 01/06/2012 10:38 AM, Mike Stump wrote:
On Jan 6, 2012, at 12:29 AM, Iain Sandoe wrote:
I think something is wrong in the configure. Indeed, on
apple-darwin10.8.0, weak ref works but it is configure as "no".
I guess it should not try to run it but only compile it (or the
symbol should exists).

Which tool-chain are you using ? (XCode version) - the problem is
tool-chain related.
thanks

3.2.6 on x86_64-apple-darwin10.8.0 works for me with either -m32 or
-m64. If you have an older Xcode 3.2.x, try updating.

4.0 (build 4A304a) on x86_64-apple-darwin10.8.0. I will try to update
it.

Thanks.

Using Xcode 4.2 on Snow Leopard, I see the same runtime failure for
the configure test of
"checking whether weak refs work like ELF"...

Note the "like ELF"
.. the purpose of the test is to find out if we need to have the dummy
routines.

(weak refs actually work at runtime for all current versions of Darwin -
- the tricky bit is getting the link phase right)

Is the resulting libitm working?

libitm compiles but the dummy function are used at runtime (eh-1.C testcase fails)...
Removing the dummy definitions in eh_cpp.cc makes it compile and work.

Patrick.

Reply via email to