• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Error calling __builtin_expect inside omp parallel for?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error calling __builtin_expect inside omp parallel for?


  • Subject: Error calling __builtin_expect inside omp parallel for?
  • From: Stonewall Ballard <email@hidden>
  • Date: Mon, 24 Oct 2011 17:05:03 -0400

In Xcode 4.2 on OS X 10.7.2, I've been intermittently getting an "Undefined Symbol" linker error for "___builtin_expect", caused by a use of __builtin_expect inside the standard "assert" macro, inside an "omp parallel for" block. I'm using the LLVM GCC 4.2 compiler.

I can explicitly use __builtin_expect outside of the parallel block and it works, but inside the block, it causes this undefined symbol error most of the time.

The actual error is:
------
Undefined symbols for architecture x86_64:
  "___builtin_expect", referenced from:
      __ZN2cvL19bilateralFilter_32fERKNS_3MatERS0_iddiPNS_16ProgressReporterE.omp_fn.0 in smooth.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
------

FWIW, I'm compiling a modified version of the OpenCV bilateralFilter.

Any idea why this is happening?

Thanks.

 - Stoney

--
Stonewall Ballard
email@hidden           http://stoney.sb.org/

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [Debugging] Developer Tools Access needs to take control
  • Next by Date: Re: Adding files to Xcode via script bridge.
  • Previous by thread: Re: Xcode 4.2 super slow documentation searching
  • Next by thread: Re: Error calling __builtin_expect inside omp parallel for?
  • Index(es):
    • Date
    • Thread