Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot compile core main branch #2144

Closed
r10s opened this issue Apr 4, 2024 · 4 comments · Fixed by #2145
Closed

cannot compile core main branch #2144

r10s opened this issue Apr 4, 2024 · 4 comments · Fixed by #2145
Labels
bug build build and release related issues

Comments

@r10s
Copy link
Member

r10s commented Apr 4, 2024

core main branch is currently failing probably because of the updated image crate:

Screenshot 2024-04-04 at 17 24 28

whole log: https://gist.github.com/r10s/29541789102bcd84fb092f8047590ddd

core at https://github.com/deltachat/deltachat-core-rust/tree/0be8b5a5c44ab8b4c3f48c4746de8cf947389a6a builds without errors and warnings since #2143

@link2xt
Copy link
Contributor

link2xt commented Apr 4, 2024

Fix: #2145

Could be not the last issue.

@r10s
Copy link
Member Author

r10s commented Apr 4, 2024

Could be not the last issue.

indeed :)

the error above seems to be fixed by #2145 - thanks a lot! - i am compiling current core main, which requires rust 1.77 and therefore #2123 as well

however, we now get the ld error Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found

i can have a look into adding the framework, however, first i am wondering why it is needed :)

Ld /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Products/Debug-iphoneos/DcCore.framework/DcCore normal (in target 'DcCore' from project 'DcCore')
    cd /Users/bpetersen/projects/deltachat-ios/DcCore
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios12.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O0 -L/Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Products/Debug-iphoneos -L/Users/bpetersen/projects/deltachat-ios/DcCore/../deltachat-ios/libraries/deltachat-core-rust/deltachat-ffi -L/Users/bpetersen/projects/deltachat-ios/DcCore/../deltachat-ios/libraries -F/Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Products/Debug-iphoneos -filelist /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/DcCore.build/Debug-iphoneos/DcCore.build/Objects-normal/arm64/DcCore.LinkFileList -install_name @rpath/DcCore.framework/DcCore -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/DcCore.build/Debug-iphoneos/DcCore.build/Objects-normal/arm64/DcCore_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/DcCore.build/Debug-iphoneos/DcCore.build/Objects-normal/arm64/DcCore.swiftmodule -ldeltachat -framework SystemConfiguration -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Intermediates.noindex/DcCore.build/Debug-iphoneos/DcCore.build/Objects-normal/arm64/DcCore_dependency_info.dat -o /Users/bpetersen/Library/Developer/Xcode/DerivedData/deltachat-ios-cqaxukpzciruunbbumougxcdugkj/Build/Products/Debug-iphoneos/DcCore.framework/DcCore

ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
Undefined symbols for architecture arm64:
  "_kSCNetworkInterfaceTypeIrDA", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h5b25c757cbcd0d93 in libdeltachat.a[arm64][1397](system_configuration-d8584af5f460f2a8.system_configuration.e25abd7046603662-cgu.0.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@r10s
Copy link
Member Author

r10s commented Apr 4, 2024

hm, the error seems to be more that _kSCNetworkInterfaceTypeIrDA is missing; searching for that, it seems to be related to rist-libp2p, but i cannot make much sense of that

@link2xt
Copy link
Contributor

link2xt commented Apr 4, 2024

It is related to system-configuration crate, I force-pushed the fix into PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build build and release related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants