Xcode "compact unwind" warnings

Xcode "compact unwind" warnings

When using IPP with Xcode 4 on OS X I get hundreds of warnings along the lines of:ld: warning: could not create compact unwindA KB article from 18 months ago said that an Apple update was expected to fix this. Has there been any progress on that, or is there any way to suppress those warning messages? There are so many of them that true warnings may be getting lost once the maximum number of warnings has been reached.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Gauss,

What's your OSX version?
Would youplease try to
add -no_compact_unwind to the link line to suppress the warning message.

The option is totell the linker (ld)to notproduce compact unwind information
for example,add option "-Wl,-no_compact_unwind" to builder makefile

gcc -arch i386 -arch x86_64... -Wl,-no_compact_unwind... -o "$(name).dylib"

and see if it works?

Best Regards,
Ying H.

Using Xcode 4.3.2 on Lion (Mac OS X 10.7.3) adding -Wl,-no_compact_unwind to "Other Linker Flags" removes that warning, but it sprays a bunch of other warnings instead:

ld: warning: direct access in __ZN3UMC20ColorSpaceConversion8GetFrameEPNS_9MediaDataES2_ to global weak symbol __ZN3UMC9VideoData12GetClassNameEv means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

ld: warning: direct access in __ZN3UMC20ColorSpaceConversion8GetFrameEPNS_9MediaDataES2_ to global weak symbol __ZN3UMC9VideoData12GetClassNameEv means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

Hello torrey,

I checked the problem in internet, see some solutions as <<http://stackoverflow.com/questions/8685045/xcode-with-boost-linkerid-warning-about-visibility-settings>>.

would you please try :
set for an entire target or project with the Symbols Hidden by Default build setting to YES
and rebuild all.

let us know how it works?

Thanks
Ying

Leave a Comment

Please sign in to add a comment. Not a member? Join today