The libs should be 32 bits... but it seems it is not this the issue... I have compiled clang+llvm from sources using the source distribution at: http://www.llvm.org/releases/ <http://www.llvm.org/releases/>
then I have built the whole llvm distribution (using the getting started guide): *../src/configure --prefix=<path-to-install-dir> --enable-optimized --enable-jit --target=i686-apple-darwin10* * * *There is also a Getting started guide at: * http://llvm.org/releases/3.1/docs/GettingStarted.html As soon as I get some time I'll try to use osx/macport distribs maybe I can figure out what is the problem... If you guys have any ideas on how to easily distribute an image+vm+libclang i'm very interested. For now I'm thinking of doing something like CMakeVMMaker script, but I don't like that the that package seems tigtly couple with VMMaker... Cheers, ciprian On Wed, Jan 23, 2013 at 5:08 PM, Stefan Marr <[email protected]>wrote: > Hi Mariano: > > On 23 Jan 2013, at 16:59, Mariano Martinez Peck wrote: > > > Maybe the lib needs to be 32 bits? can you check if the lib you are > trying is compiled for 32 or 64? > > Yes, it needs to be 32bit, but that's not the problem: > > smarr@minerva ~/tmp/libgit/libgit2$ file > /Developer/usr/clang-ide/lib/libclang.dylib > /Developer/usr/clang-ide/lib/libclang.dylib: Mach-O universal binary with > 2 architectures > /Developer/usr/clang-ide/lib/libclang.dylib (for architecture x86_64): > Mach-O 64-bit dynamically linked shared library x86_64 > /Developer/usr/clang-ide/lib/libclang.dylib (for architecture i386): > Mach-O dynamically linked shared library i386 > > smarr@minerva ~/tmp/libgit/libgit2$ file > /opt/local/libexec/llvm-3.1/lib/libclang.dylib > /opt/local/libexec/llvm-3.1/lib/libclang.dylib: Mach-O universal binary > with 2 architectures > /opt/local/libexec/llvm-3.1/lib/libclang.dylib (for architecture i386): > Mach-O dynamically linked shared library i386 > /opt/local/libexec/llvm-3.1/lib/libclang.dylib (for architecture x86_64): > Mach-O 64-bit dynamically linked shared library x86_64 > > Both version I have are universal binaries. > > Best regards > Stefan > > > -- > Stefan Marr > Software Languages Lab > Vrije Universiteit Brussel > Pleinlaan 2 / B-1050 Brussels / Belgium > http://soft.vub.ac.be/~smarr > Phone: +32 2 629 2974 > Fax: +32 2 629 3525 > > > -- Dr. Ciprian TEODOROV Ingénieur Développement CAO tél : 06 08 54 73 48 mail : [email protected] www.teodorov.ro
