mold icon indicating copy to clipboard operation
mold copied to clipboard

unsupported -single_module option on macos

Open grandinj opened this issue 2 years ago • 1 comments

Hi

Trying out mold with LibreOffice on macOS 11.6.8 (Big Sur) and it's complaining about the single_module flag. This is an x86-64 build.

Thanks

grandinj avatar Aug 28 '22 15:08 grandinj

Hmm, I see this option is deprecated and is now the default (of course, apples documentation is so terrible I cannot figure out when that happened.)

But even if I remove the flag, my build fails with

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: fatal error: file not in an order that can be processed (symbol table out of place): /Users/noelgrandin/lode/dev/core2/instdir/LibreOfficeDev.app/Contents/Frameworks/libpdfiumlo.dylib cannot /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -change /@.__________________________________________________OOO/lib/liblcms2.2.dylib @loader_path/liblcms2.2.dylib -change @__________________________________________________URELIB/libicuuc.dylib.71 @loader_path/libicuuc.dylib.71 -change @__________________________________________________OOO/libpdfiumlo.dylib @loader_path/libpdfiumlo.dylib /Users/noelgrandin/lode/dev/core2/instdir/LibreOfficeDev.app/Contents/Frameworks/libpdfiumlo.dylib at /Users/noelgrandin/lode/dev/core2/solenv/bin/macosx-change-install-names.pl line 93. /Users/noelgrandin/lode/dev/core2/external/pdfium/Library_pdfium.mk:10: recipe for target '/Users/noelgrandin/lode/dev/core2/instdir/LibreOfficeDev.app/Contents/Frameworks/libpdfiumlo.dylib' failed

so I guess mold is probably not quite ready for LibreOffice on mac :-)

grandinj avatar Aug 28 '22 18:08 grandinj