[MacPorts] #41467: cmake 2.8.12 configure fails: in libnotify.dylib, file was built for unsupported file format which is not the architecture being linked (was: cmake 2.8.12 configure fails)

MacPorts noreply at macports.org
Wed Nov 20 10:05:14 PST 2013


#41467: cmake 2.8.12 configure fails: in libnotify.dylib, file was built for
unsupported file format which is not the architecture being linked
-------------------------+-------------------
  Reporter:  dwelling@…  |      Owner:  css@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.1
Resolution:              |   Keywords:  lion
      Port:  cmake       |
-------------------------+-------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)
 * keywords:   => lion
 * owner:  macports-tickets@… => css@…


Comment:

 Hmm, the log says:

 {{{
 :info:configure   Linking C executable cmTryCompileExec61975824
 :info:configure
 :info:configure
 :info:configure
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12-i386/Bootstrap.cmk/cmake
 :info:configure   -E cmake_link_script
 CMakeFiles/cmTryCompileExec61975824.dir/link.txt
 :info:configure   --verbose=1
 :info:configure
 :info:configure   /usr/bin/llvm-gcc-4.2 -pipe -Os -arch i386 -isysroot
 :info:configure   /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7
 :info:configure   -Wl,-search_paths_first -Wl,-headerpad_max_install_names
 -L/opt/local/lib
 :info:configure   -Wl,-headerpad_max_install_names -arch i386
 :info:configure
 CMakeFiles/cmTryCompileExec61975824.dir/testCCompiler.c.o -o
 :info:configure   cmTryCompileExec61975824
 :info:configure
 :info:configure   ld: in /opt/local/lib/libnotify.dylib, file was built
 for unsupported file
 :info:configure   format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x
 0 0x 0 0x 0 0x 6
 :info:configure   0x 0 0x 0 0x 0 ) which is not the architecture being
 linked (i386):
 :info:configure   /opt/local/lib/libnotify.dylib for architecture i386
 :info:configure
 :info:configure   collect2: ld returned 1 exit status
 :info:configure
 :info:configure   make[1]: *** [cmTryCompileExec61975824] Error 1
 :info:configure
 :info:configure   make: *** [cmTryCompileExec61975824/fast] Error 2
 }}}

 This is curious because I don't see why cmake would be trying to use
 libnotify. It's not listed as a dependency in the port, and I see no
 mention of libnotify in the compile line.

 We've seen this once before, in #30697. That was also on Lion, also with
 llvm-gcc-4.2. There, the solution was to uninstall libnotify, which I
 recommend to you as well. Or if you actually need libnotify (or another
 port you've installed does), then the workaround would be to reinstall
 libnotify with the universal variant, i.e.:

 {{{
 sudo port upgrade --enforce-variants libnotify +universal
 }}}

 The fact that MacPorts chose to compile with llvm-gcc-4.2 instead of clang
 also suggests you are running Xcode 4.0 or 4.1; consider upgrading to
 Xcode 4.6.3.

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


More information about the macports-tickets mailing list