Hi, if I want to use 'llvm-gcc' I get: dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib Referenced from: /Users/me/llvm/gcc/bin/llvm-gcc Reason: Incompatible library version: llvm-gcc requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 Trace/BPT trap So I installed MacPorts and 'libiconv', but I get the same error message. But it _should_ work, because otool -L /opt/local/lib/libiconv.2.dylib gives me: /opt/local/lib/libiconv.2.dylib: /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) Any hint what went wrong? Thanks a lot, Nico
Eric Christopher
2009-Dec-05 22:00 UTC
[LLVMdev] GCC frontend binaries + Darwin10 (Mac OS X)
On Dec 5, 2009, at 1:27 PM, Nico wrote:> Hi, > > if I want to use 'llvm-gcc' I get: > > dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib > Referenced from: /Users/me/llvm/gcc/bin/llvm-gcc > Reason: Incompatible library version: llvm-gcc requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > Trace/BPT trap > > So I installed MacPorts and 'libiconv', but I get the same error message. But it _should_ work, because > > otool -L /opt/local/lib/libiconv.2.dylib > > gives me: > > /opt/local/lib/libiconv.2.dylib: > /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) > > Any hint what went wrong? >Fun. My guess is that it's still not loading the right libiconv, but not sure ultimately. I've never seen that problem (and I do run with macports and libiconv on my system). At any rate, we do have binaries for that system that are shipped with the developer tools. Otherwise I would try building and running on the same system. -eric
Alexander MacDonald
2009-Dec-05 22:12 UTC
[LLVMdev] GCC frontend binaries + Darwin10 (Mac OS X)
Did you follow the macports migration guide (http://trac.macports.org/wiki/Migration ) after upgrading from 10.5 to 10.6? I seem to remember having a similar problem and fixing it by recompiling everything on 10.6 On Dec 5, 2009, at 2:00 PM, Eric Christopher wrote:> > On Dec 5, 2009, at 1:27 PM, Nico wrote: > >> Hi, >> >> if I want to use 'llvm-gcc' I get: >> >> dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib >> Referenced from: /Users/me/llvm/gcc/bin/llvm-gcc >> Reason: Incompatible library version: llvm-gcc requires version >> 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >> Trace/BPT trap >> >> So I installed MacPorts and 'libiconv', but I get the same error >> message. But it _should_ work, because >> >> otool -L /opt/local/lib/libiconv.2.dylib >> >> gives me: >> >> /opt/local/lib/libiconv.2.dylib: >> /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, >> current version 8.0.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current >> version 125.0.0) >> >> Any hint what went wrong? >> > > Fun. My guess is that it's still not loading the right libiconv, but > not sure ultimately. I've never seen that problem (and I do run with > macports and libiconv on my system). > > At any rate, we do have binaries for that system that are shipped > with the developer tools. Otherwise I would try building and > running on the same system. > > -eric > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On Dec 5, 2009, at 11:00 PM, Eric Christopher wrote:> Fun.Not at all ;-)
Jakob Stoklund Olesen
2009-Dec-07 06:18 UTC
[LLVMdev] GCC frontend binaries + Darwin10 (Mac OS X)
On Dec 5, 2009, at 1:27 PM, Nico wrote:> Hi, > > if I want to use 'llvm-gcc' I get: > > dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib > Referenced from: /Users/me/llvm/gcc/bin/llvm-gcc > Reason: Incompatible library version: llvm-gcc requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > Trace/BPT trap > > So I installed MacPorts and 'libiconv', but I get the same error message. But it _should_ work, because > > otool -L /opt/local/lib/libiconv.2.dylib > > gives me: > > /opt/local/lib/libiconv.2.dylib: > /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) > > Any hint what went wrong?I think installing libiconv with +universal makes that problem go away. /jakob -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1929 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091206/6e2e9847/attachment.bin>
On Dec 5, 2009, at 1:27 PM, Nico wrote:> Hi, > > if I want to use 'llvm-gcc' I get: > > dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib > Referenced from: /Users/me/llvm/gcc/bin/llvm-gcc > Reason: Incompatible library version: llvm-gcc requires version > 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > Trace/BPT trap > > So I installed MacPorts and 'libiconv', but I get the same error > message. But it _should_ work, because > > otool -L /opt/local/lib/libiconv.2.dylib > > gives me: > > /opt/local/lib/libiconv.2.dylib: > /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, > current version 8.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 125.0.0) > > Any hint what went wrong? >Perhaps a 32/64 bit mixup? If one is 32-bit and the other is 64-bit, that could cause something like this. Use "otool -vf" and "otool -vh" to check which slices are built for the programs.> Thanks a lot, > Nico > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev