ice icon indicating copy to clipboard operation
ice copied to clipboard

macOS Linker warning

Open externl opened this issue 7 months ago • 2 comments

We're getting this with the recent version of Xcode when building C++/Ruby/Python.

ld: warning: reducing alignment of section __DATA,__common from 0x8000 to 0x4000 because it exceeds segment maximum alignment

Previously we were seeing a similar warning during the Swift build of slice2swift. I thought I opened an issue for it but I can't find it now.

externl avatar Apr 24 '25 14:04 externl

This warnings appear to affect only the Slice compilers and Python/Ruby/PHP "extension" libraries that include the Slice library.

bernardnormier avatar May 04 '25 19:05 bernardnormier

Unfortunately this is still an issue for Xcode builds (and is very noisy), specifically when the mcpp is statically linked into an app.

It would be best to figure out how to fix this in our mcpp fork.

externl avatar Jun 10 '25 17:06 externl

The work-around was applied to Package.swift a while ago.

bernardnormier avatar Sep 10 '25 19:09 bernardnormier

Still seeing this in builds with Xcode.

externl avatar Sep 24 '25 15:09 externl