[MacPorts] #43744: library not found for -lgcc

MacPorts noreply at macports.org
Wed May 21 16:42:55 PDT 2014


#43744: library not found for -lgcc
----------------------+--------------------------------
  Reporter:  kj299@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.2.1
Resolution:           |   Keywords:
      Port:  sqlite3  |
----------------------+--------------------------------

Comment (by ryandesign@…):

 We're at least making progress. (P.S: Don't forget to use WikiFormatting
 when writing in Trac.)

 The [attachment:config.log sqlite3 config.log] you originally attached
 showed you are running Mavericks:

 {{{
 uname -v = Darwin Kernel Version 13.1.0: Wed Apr  2 23:52:02 PDT 2014;
 root:xnu-2422.92.1~2/RELEASE_X86_64
 }}}

 But that the version of clang it was trying to use was old:

 {{{
 /usr/bin/clang --version >&5
 clang version 1.0.2 (http://llvm.org/svn/llvm-
 project/cfe/tags/Apple/clang-32 exported)
 }}}

 [comment:4 Next, you showed] that your `gcc` symlink was pointing to an
 old version of llvm-gcc:

 {{{
 $ gcc --version
 i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
 5646) (LLVM build 2207.5)
 }}}

 Those versions of clang and llvm-gcc are the ones that were included with
 [wiki:XcodeVersionInfo#MacOSX10.6 Xcode 3.2.2 on Mac OS X 10.6 Snow
 Leopard] and are not appropriate for OS X 10.9 Mavericks. They were
 probably migrated from your previous system. This should have been fixed
 by reinstalling Xcode, which you said you subsequently did. [comment:7
 After uninstalling and reinstalling Xcode, you showed] that your
 `xcodebuild` reports the correct Xcode version 5.1.1, and that your `gcc`
 symlink now points to the correct version of clang. So that's good
 progress.

 However, you also showed that your `xcode-select` command does not
 recognize the `--install` argument, which suggests your version of `xcode-
 select` is not the one that belongs on Mavericks, and could mean that your
 Xcode command line tools are not up to date. I'm not sure what package
 provides `xcode-select`; I think it used to be provided by Xcode on
 previous systems but on Mavericks it is provided by the operating system
 itself. So that's puzziling; the only way that your Mavericks `xcode-
 select` should have been replaced by an older version is if you ran an
 older Xcode installer while on Mavericks.

 Regardless of how the old `xcode-select` got on your system, you need to
 get the Mavericks version of `xcode-select` back onto your system. If it's
 not in your backups, you can use the one I'm attaching to this ticket
 (copy it into /usr/bin, owned by root:wheel, permissions 755). Then you
 should be able to run `xcode-select --install` to update the Xcode command
 line tools.

 The Xcode command line tools can also be downloaded from the
 [https://developer.apple.com/downloads/index.action Apple developer
 downloads] (the package called "Command Line Tools (OS X Mavericks) for
 Xcode - April 2014"). I don't know if that would reinstall your `xcode-
 select` program, though.

-- 
Ticket URL: <https://trac.macports.org/ticket/43744#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list