Bug 20213 - Symbol not found: __ZNKSt9exception4whatEv
Summary: Symbol not found: __ZNKSt9exception4whatEv
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-30 13:51 UTC by Frank A. Krueger
Modified: 2014-06-09 07:41 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Frank A. Krueger 2014-05-30 13:51:34 UTC
When trying to run an app on iOS 6.1 simulator, I get this error:

dyld: Symbol not found: __ZNKSt9exception4whatEv
  Referenced from: /Users/fak/Library/Application Support/iPhone Simulator/6.1/Applications/E00F4514-D2A8-4974-8E51-C087F32A68A4/Calca.app/Calca
  Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/libc++abi.dylib
 in /Users/fak/Library/Application Support/iPhone Simulator/6.1/Applications/E00F4514-D2A8-4974-8E51-C087F32A68A4/Calca.app/Calca

I think I need to compile with a C++ flag, but I can never remember which one. It would be nice if the build script detected these problems.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2014-05-30 20:29:23 UTC
Try adding --cxx to the additional mtouch arguments (this is probably related to, if not a dup of, bug #14891)
Comment 2 Frank A. Krueger 2014-05-30 21:03:32 UTC
Yes, --cxx fixes it.

It works on iOS 7 without the flag. Am I safe to remove it if I limit the app to iOS 7? Does it have any negative side effects?
Comment 3 narayanp 2014-06-02 10:17:32 UTC
I have run the iOS application on iOS Simulator 6.1 but I am not able to reproduce this issue. Could you please provide me some more steps so that I can reproduce this issue?

I am trying to reproduce this issue with following builds:
 
=== Xamarin Studio ===

Version 5.1 (build 307)
Installation UUID: 2591d519-875d-4afe-a3d9-5fcf391bbd2d
Runtime:
 Mono 3.4.0 ((no/c3fc3ba)
 GTK+ 2.24.23 (Raleigh theme)

 Package version: 304000204

=== Apple Developer Tools ===

Xcode 4.6.3 (2068)
Build 4H1503

=== Xamarin.iOS ===

Version: 7.2.99.403 (Business Edition)
Hash: 6da2906
Branch: 
Build date: 2014-05-29 23:28:00-0400

=== Xamarin.Android ===

Version: 4.14.0 (Trial Edition)
Android SDK: /Users/nischal/Desktop/android-sdk-macosx
 Supported Android versions:
  2.1   (API level 7)
  2.2   (API level 8)
  2.3   (API level 10)
  3.1   (API level 12)
  3.2   (API level 13)
  4.0   (API level 14)
  4.0.3 (API level 15)
  4.1   (API level 16)
  4.2   (API level 17)
  4.3   (API level 18)
  4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)

=== Xamarin.Mac ===

Xamarin.Mac: 1.8.0.8

=== Build Information ===

Release ID: 501000307
Git revision: def1bd7785c4bc27f13d0b67d860f5e6700d0dc0
Build date: 2014-05-30 14:10:52-04
Xamarin addins: 11878769601a89ead8775b80241fd6a91ba5ad9e

=== Operating System ===

Mac OS X 10.7.4
Darwin nischals-Mac-mini.local 11.4.0 Darwin Kernel Version 11.4.0
    Mon Apr  9 19:32:15 PDT 2012
    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Comment 4 Rolf Bjarne Kvinge [MSFT] 2014-06-09 07:12:12 UTC
It's perfectly safe to use (or remove) this flag as long as the app builds afterwards (it only changes how the final native executable is linked).
Comment 5 Rolf Bjarne Kvinge [MSFT] 2014-06-09 07:41:12 UTC
I've added info about this error/symbol to the documentation for MT5210.