Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

ld: warning: could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog #145

Closed
MSch opened this issue Jun 11, 2013 · 9 comments

Comments

@MSch
Copy link
Contributor

MSch commented Jun 11, 2013

Got this warning after upgrading to the latest libffi

@zwaldowski
Copy link
Collaborator

It's a harmless i386 warning that LLVM/Clang folk have no intention of fixing, from what I've heard. It looks like my changes to the Xcode project undid what I did to inhibit the warning. I'll fix it soon, but in the meantime you can include -Wl,-no_compact_unwind in OTHER_LDFLAGS.

@MarcoTansini
Copy link

hi, i cannot silence the warning in the way you suggested, are you talking about the project or target settings?
I'm using it via cocoapods.

Thanks for your work. Marco

@fawkeswei
Copy link

Can't silence the warning also, any workarounds?

@zwaldowski
Copy link
Collaborator

There's a glitch here with CocoaPods that I'm working on fixing, though I'm confirming with a fresh project right here that -Wl,-no_compact_unwind in the Linker Flags of the linked project (so your app) does inhibit the warning.

@jagreenwood
Copy link

The warning showed up for me when libffi was updated to 3.0.13. Forcing CocoaPods to use a previous version inhibited the warning for me. pod 'libffi', '< 3.0.13'

@zwaldowski
Copy link
Collaborator

Sorry, there was a bit of a snafu with someone doing something they shouldn't have to the pod spec. 3.0.13 is okay to use again if you pull the spec repo, pod setup.

@hlung
Copy link

hlung commented Sep 26, 2013

-Wl,-no_compact_unwind doesn't seem to be a valid flag. I got this error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `W' in: -Wl,-no_compact_unwind

@fernandospr
Copy link

I'm also getting the error using that flag:
unknown option character `W' in: -Wl,-no_compact_unwind

Any workaround?

@duanefields
Copy link

This is still a problem for me as well, Xcode 5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants