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

Linker warnings with XCode 5.1 beta #62

Closed
koenvanderdrift opened this issue Feb 13, 2014 · 15 comments
Closed

Linker warnings with XCode 5.1 beta #62

koenvanderdrift opened this issue Feb 13, 2014 · 15 comments

Comments

@koenvanderdrift
Copy link

I'm getting these warnings with the latest beta (don't remember if they were there before):

warning: /Applications/Xcode51-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified, -all_load invalid /Applications/Xcode51-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC /Applications/Xcode51-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: ../Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTDefinitions.o has no symbols /Applications/Xcode51-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: ../Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlatformSpecificDefines.o has no symbols

@eskroch
Copy link
Member

eskroch commented Mar 11, 2014

It sounds like the linker changed. I don't have Xcode 5.1 yet to test with. Does the error occur only on the 2.0 branch or on the master branch, too?

@mike-lischke
Copy link

XCode 5.1 just came out.

It sounds like the linker changed. I don't have Xcode 5.1 yet to test with. Does the error occur only on the 2.0 branch or on the master branch, too?


Reply to this email directly or view it on GitHub.

Mike

www.soft-gems.net

@eskroch
Copy link
Member

eskroch commented Mar 11, 2014

It showed up in Software Update right after I posted this. :-) I'll look at this as soon as I can.

@mike-lischke
Copy link

Note: it doesn't affect already build packages. I can compile my app just fine with the framework I previously built.

It showed up in Software Update right after I posted this. :-) I'll look at this as soon as I can.


Reply to this email directly or view it on GitHub.

Mike

www.soft-gems.net

@ghost
Copy link

ghost commented Mar 11, 2014

The new Softwarebuild require 64bit by default and Core Plot doesn't have the 64-bit architecture in it. So, at the minimum, CorePlot needs to be compiled for 64bit support included as the standard architeure included with XCODE 5.1. This is now and Urgent priority issue as all apps are going to face this issue. A typical error message now is
Undefined symbols for architecture arm64:
"OBJC_CLASS$_CPTScatterPlot", referenced from:

@koenvanderdrift
Copy link
Author

Sorry about that - I was going to close the comment window, not the topic. That button is rather confusing.

@koenvanderdrift
Copy link
Author

Setting ONLY_ACTIVE_ARCH = NO; will allow all architectures to build with errors. However, the warning above still appears.

@eskroch
Copy link
Member

eskroch commented Mar 12, 2014

I'm going to do one more release with Xcode 5 and the old project settings for people who are supporting older systems. After that, I'll merge the release-2.0 branch into master so we only have one branch to maintain. This will eliminate the Xcode 5.1 errors from garbage collection being no longer supported. I will also add the 64-bit architecture to the iOS project settings and update the linker flags to eliminate the warning reported in this issue. I hope to have this all done by the coming weekend.

@sseyod
Copy link

sseyod commented Mar 14, 2014

Great news, thank you!

@koenvanderdrift
Copy link
Author

Still getting a bunch of errors when ONLY_ACTIVE_ARCH = YES; in the debug build settings. Setting it to NO solves that.

@eskroch
Copy link
Member

eskroch commented Mar 16, 2014

I get clean debug builds. What errors are you seeing?

@koenvanderdrift
Copy link
Author

I'm seeing lots of these:

ld: warning: ignoring file /Users/koen/Library/Developer/Xcode/DerivedData/InDigestion-gnnfctjmlnquvwdxcfqejmmbaqlm/Build/Products/Debug-iphonesimulator/libCorePlot-CocoaTouch.a, file was built for archive which is not the architecture being linked (i386): /Users/koen/Library/Developer/Xcode/DerivedData/InDigestion-gnnfctjmlnquvwdxcfqejmmbaqlm/Build/Products/Debug-iphonesimulator/libCorePlot-CocoaTouch.a Undefined symbols for architecture i386: "_CPTDataType", referenced from: -[IDHydroPlotViewController dataForPlot:field:recordIndexRange:] in IDHydroPlotViewController.o -[IDIsoPlotViewController dataForPlot:field:recordIndexRange:] in IDIsoPlotViewController.o "_CPTDecimalFromDouble", referenced from: -[IDHydroPlotViewController setUpPlotSpaceAndAxes] in IDHydroPlotViewController.o -[IDHydroPlotViewController plotSpace:willChangePlotRangeTo:forCoordinate:] in IDHydroPlotViewController.o -[IDIsoPlotViewController init] in IDIsoPlotViewController.o -[IDIsoPlotViewController setUpPlotSpaceAndAxes] in IDIsoPlotViewController.o "_CPTDecimalFromFloat", referenced from: -[IDIsoPlotViewController setupPlot] in IDIsoPlotViewController.o

ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

@eskroch
Copy link
Member

eskroch commented Mar 16, 2014

Do you see this error with any of the example apps? I've done clean builds of the Plot Gallery on its own and within the CorePlotExamples workspace and it builds fine both ways.

@koenvanderdrift
Copy link
Author

No problems there. And I found why it happened in my project, I had ONLY_ACTIVE_ARCH = NO; in my own project as well. Once I set that back to YES all errors were gone.

@eskroch
Copy link
Member

eskroch commented Mar 16, 2014

Good news. Thanks for tracking this down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants