installing ld64 and/or llvm problem

M A markoilcan at gmail.com
Tue Aug 13 09:27:20 PDT 2013


While trying to upgrade gcc47 (from 4.7.2 to 4.7.3) I ran into a problem
when port was trying to install ld64. (Error message below.) In particular
it could not find the file "llvm-c/lto.h", even though I was able to
confirm it existed in /opt/local/libexec/llvm-3.2/include/llvm-c/lto.h.
Looking at the portfile it seems ld64 needs llvm-3.3, but I only had
llvm-3.2 (though it's not clear to me that it actually cannot use
llvm-3.2). After executing port install llvm-3.3, which resulted in port
"fixing" and rebuilding several other ports (including ld64), everything
seems to be working. I'm not sure if I should be filing a ticket against
the ld64 port, or does this indicate an error in the llvm-3.2 port?

I'm on OS 10.7 with Xcode 4.6.3

Thanks,
Mark A


--->  Computing dependencies for ld64.
--->  Fetching archive for ld64
--->  ld64-136_2+llvm32.darwin_11.x86_64.tbz2 doesn't seem to exist in
/opt/local/var/macports/incoming/verified
--->  Attempting to fetch ld64-136_2+llvm32.darwin_11.x86_64.tbz2 from
http://packages.macports.org/ld64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0
--->  Attempting to fetch ld64-136_2+llvm32.darwin_11.x86_64.tbz2 from
http://lil.fr.packages.macports.org/ld64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0
--->  Attempting to fetch ld64-136_2+llvm32.darwin_11.x86_64.tbz2 from
http://mse.uk.packages.macports.org/sites/packages.macports.org/ld64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0
--->  Fetching distfiles for ld64
--->  ld64-136.tar.gz doesn't seem to exist in
/opt/local/var/macports/distfiles/ld64
--->  Attempting to fetch ld64-136.tar.gz from
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ld64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
100  566k  100  566k    0     0   823k      0 --:--:-- --:--:-- --:--:--
1803k
--->  Verifying checksums for ld64
--->  Checksumming ld64-136.tar.gz
--->  Extracting ld64
--->  Extracting ld64-136.tar.gz
--->  Applying patches to ld64
--->  Applying ld64-version.patch
patching file src/ld/Options.cpp
Hunk #1 succeeded at 92 with fuzz 2 (offset 60 lines).
Hunk #2 succeeded at 2891 with fuzz 2 (offset 736 lines).
--->  Applying ld64-133-no-CrashReporterClient.h.patch
patching file src/ld/Options.cpp
Hunk #2 succeeded at 4257 (offset 10 lines).
--->  Applying ld64-134-missing-include.patch
patching file src/ld/parsers/lto_file.cpp
Hunk #1 succeeded at 36 with fuzz 2 (offset 1 line).
patching file src/other/rebase.cpp
--->  Applying ld64-136-i386-badAddress.patch
patching file src/ld/LinkEdit.hpp
--->  Applying ld64-136-hash_set.patch
patching file src/ld/InputFiles.cpp
patching file src/ld/InputFiles.h
patching file src/ld/LinkEditClassic.hpp
patching file src/ld/Options.h
patching file src/ld/OutputFile.cpp
patching file src/ld/Resolver.cpp
patching file src/ld/Resolver.h
patching file src/ld/SymbolTable.cpp
patching file src/ld/SymbolTable.h
patching file src/ld/ld.cpp
patching file src/ld/ld.hpp
patching file src/ld/parsers/archive_file.cpp
patching file src/ld/parsers/lto_file.cpp
Hunk #1 succeeded at 30 with fuzz 2.
Hunk #2 succeeded at 213 (offset 2 lines).
patching file src/ld/parsers/macho_dylib_file.cpp
patching file src/ld/passes/dtrace_dof.cpp
patching file src/ld/passes/got.cpp
patching file src/ld/passes/order.cpp
patching file src/ld/passes/tlvp.cpp
patching file src/other/dyldinfo.cpp
patching file src/other/machochecker.cpp
patching file src/other/unwinddump.cpp
--->  Configuring ld64
DERIVED_SOURCES_DIR=src/ld DERIVED_FILE_DIR=src/ld src/create_configure >
src/ld/configure.h
--->  Building ld64
dyld: Library not loaded: /opt/local/lib/libffi.5.dylib
  Referenced from: /opt/local/libexec/llvm-3.2/bin/llvm-config
  Reason: image not found
dyld: Library not loaded: /opt/local/lib/libffi.5.dylib
  Referenced from: /opt/local/libexec/llvm-3.2/bin/llvm-config
  Reason: image not found
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64/work/ld64-136'
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/other/ObjectDump.o src/other/ObjectDump.cpp
/usr/bin/clang -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/debugline.o
src/ld/debugline.c
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/parsers/macho_relocatable_file.o
src/ld/parsers/macho_relocatable_file.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/parsers/lto_file.o src/ld/parsers/lto_file.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/other/dyldinfo.o
src/other/dyldinfo.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/stubs/stubs.o src/ld/passes/stubs/stubs.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/ld.o
src/ld/ld.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/InputFiles.o
src/ld/InputFiles.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/Options.o
src/ld/Options.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/OutputFile.o
src/ld/OutputFile.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/Resolver.o
src/ld/Resolver.cpp
echo "static const char *compile_stubs = " > src/ld/compile_stubs.h
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/SymbolTable.o
src/ld/SymbolTable.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/parsers/archive_file.o src/ld/parsers/archive_file.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/parsers/macho_dylib_file.o src/ld/parsers/macho_dylib_file.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/parsers/opaque_section_file.o src/ld/parsers/opaque_section_file.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/branch_island.o src/ld/passes/branch_island.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/branch_shim.o src/ld/passes/branch_shim.cpp
cat compile_stubs | sed s/\"/\\\\\"/g | sed s/^/\"/ | sed s/$/\\\\n\"/ >>
src/ld/compile_stubs.h
echo ";" >> src/ld/compile_stubs.h
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/compact_unwind.o src/ld/passes/compact_unwind.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/dtrace_dof.o src/ld/passes/dtrace_dof.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o
src/ld/passes/dylibs.o src/ld/passes/dylibs.cpp
/usr/bin/clang++ -Os -Os -arch x86_64 -I -DLTO_SUPPORT -Isrc/abstraction
-Isrc/ld -Isrc/ld/parsers -I/opt/local/include  -c -o src/ld/passes/got.o
src/ld/passes/got.cpp
src/ld/parsers/lto_file.cpp:49:10: fatal error: 'llvm-c/lto.h' file not
found
#include "llvm-c/lto.h"
         ^
In file included from src/ld/passes/compact_unwind.cpp:39:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130813/ef570fcb/attachment.html>


More information about the macports-users mailing list