最近我們開始在我們的OS X版本上得到這個警告。ld警告:堆棧子指令與OS X上的矮堆棧大小差別太大
ld: warning:
could not create compact unwind for __Z10createMenuv: stack subl instruction is too different from dwarf stack size
ld: warning:
could not create compact unwind for __Z10del_modulejb: stack subl instruction is too different from dwarf stack size
could not create compact unwind for __Z14menu_patchbytev: stack subl instruction is too different from dwarf stack size
我能找到的鉻bug跟蹤系統,但建議「修復」的這一些討論是禁用緊湊的展開產生。我想知道爲什麼會發生此警告,並且這是我們的代碼或工具鏈中的問題。
我們的工具鏈是在Xcode 7.3.1:
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
我們不使用的Xcode IDE,但使用'make'和'gcc'駕駛員命令行編譯。 –
也是,我們對x86('-arch i386')構建有這個警告,而不是x64('-arch x86_64')。 –