ld64.lld: error: -dylib_compatibility_version 109110.0.1: ma

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

ld64.lld: error: -dylib_compatibility_version 109110.0.1: ma

Postby ifbao » Tue Aug 15, 2023 8:19 am

when i build 109.110.1+gfc368b7 on macos, with xcode 13.2, i got the link error, what's the problem?

Code: Select all
if [ ! -e "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" -o ! -e "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.TOC" ] || /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" | grep -q LC_REEXPORT_DYLIB ; then TOOL_VERSION=1692015798 ../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -Wcrl,installnametoolpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared  -Wcrl,dsym,. -Wcrl,dsymutilpath,../../tools/clang/dsymutil/bin/dsymutil -Wl,-install_name,@executable_path/../Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework -compatibility_version 109110.0.1 -current_version 109110.0.1 -Werror -fuse-ld=lld -Wl,-fatal_warnings -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,-cache_path_lto,thinlto-cache -Wcrl,object_path_lto -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -arch x86_64 -no-canonical-prefixes -Wl,-dead_strip -Wl,-no_data_in_code_info -Wl,-no_function_starts -nostdlib++ -isysroot ../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacos-version-min=10.13 -Wl,--lto-O0 -Wl,-ObjC -Wcrl,strip,-x,-S -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/lib -o "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" "@obj/cef/cef_framework_shared_library/Chromium Embedded Framework.rsp" && { /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" | grep LC_ID_DYLIB -A 5; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" | cut -f1-2 -d' ' | grep -v U$$; true; } > "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.TOC"; else TOOL_VERSION=1692015798 ../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -Wcrl,installnametoolpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared  -Wcrl,dsym,. -Wcrl,dsymutilpath,../../tools/clang/dsymutil/bin/dsymutil -Wl,-install_name,@executable_path/../Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework -compatibility_version 109110.0.1 -current_version 109110.0.1 -Werror -fuse-ld=lld -Wl,-fatal_warnings -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,-cache_path_lto,thinlto-cache -Wcrl,object_path_lto -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -arch x86_64 -no-canonical-prefixes -Wl,-dead_strip -Wl,-no_data_in_code_info -Wl,-no_function_starts -nostdlib++ -isysroot ../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacos-version-min=10.13 -Wl,--lto-O0 -Wl,-ObjC -Wcrl,strip,-x,-S -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/lib -o "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" "@obj/cef/cef_framework_shared_library/Chromium Embedded Framework.rsp" && { /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" | grep LC_ID_DYLIB -A 5; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "obj/cef/cef_framework_shared_library/Chromium Embedded Framework" | cut -f1-2 -d' ' | grep -v U$$; true; } > "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.tmp" && if ! cmp -s "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.tmp" "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.TOC"; then mv "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.tmp" "obj/cef/cef_framework_shared_library/Chromium Embedded Framework.TOC" ; fi; fi
ld64.lld: error: -dylib_compatibility_version 109110.0.1: malformed version
ld64.lld: error: -dylib_current_version 109110.0.1: malformed version
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ifbao
Techie
 
Posts: 13
Joined: Wed Jun 30, 2021 9:53 pm

Re: ld64.lld: error: -dylib_compatibility_version 109110.0.1

Postby magreenblatt » Tue Aug 15, 2023 8:53 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: ld64.lld: error: -dylib_compatibility_version 109110.0.1

Postby ifbao » Tue Aug 15, 2023 10:16 pm

sorry , i have already use Xcode 14.3.1, with sdk 13.3.

I found the macOS Build Requirements is
macOS 10.13+ deployment, 12.5+ build system w/ 13.0 base SDK (Xcode 14.0), Ninja, 64-bit only。

is my xcode too high ?
ifbao
Techie
 
Posts: 13
Joined: Wed Jun 30, 2021 9:53 pm

Re: ld64.lld: error: -dylib_compatibility_version 109110.0.1

Postby ifbao » Wed Aug 16, 2023 1:51 am

i run the script, and got rhe result 109110.0.1, is it right dylib version
cef109@B-438UML7H-0240 tools % python3 cef_version.py "dylib"
109110.0.1
ifbao
Techie
 
Posts: 13
Joined: Wed Jun 30, 2021 9:53 pm

Re: ld64.lld: error: -dylib_compatibility_version 109110.0.1

Postby ifbao » Wed Aug 16, 2023 3:32 am

it works after i fix the script cef_version.py
ifbao
Techie
 
Posts: 13
Joined: Wed Jun 30, 2021 9:53 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 121 guests