[LLVMdev] Building on x86-64
David Greene
dag at cray.com
Thu Sep 20 11:41:47 PDT 2007
I made my first attempt to build on an x86_64-unknown-linux-gnu system.
Is this supposed to work? I get libtools errors (below). The problem seems
to be that it finds a 32-bit libltdl rather than the 64-bit libltdl.
/home/dag> ls /usr/lib/libltdl.so.3.1.0
/usr/lib/libltdl.so.3.1.0
/home/dag> ls /usr/lib64/libltdl.so.3.1.0
/usr/lib64/libltdl.so.3.1.0
Is this a known problem? I'm not very familiar with how libtools works so I'm
a bit hesitant to hack up ltmain.sh.
-Dave
llvm[2]: Linking Debug+Checks executable tblgen
/tmp/ptmp/dag/build.llvm.modified.debug/mklib --tag=CXX --tag=disable-shared
--mode=link /tools/llvm-tools/x86_64-unknown-linux-gnu/bin/g++
-I/tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen
-I/users/dag/projects/llvm-project.modified/llvm/trunk/utils/TableGen
-I/tmp/ptmp/dag/build.llvm.modified.debug/include
-I/users/dag/projects/llvm-project.modified/llvm/trunk/include
-I/tmp/ptmp/dag/build.llvm.modified.debug/include
-I/users/dag/projects/llvm-project.modified/llvm/trunk/include -D_DEBUG
-D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -g
-Woverloaded-virtual -Wall -W -Wwrite-strings -Wunused -Wno-unused-parameter
-g -rpath /tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/bin
-export-dynamic -L/tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/lib
-L/tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/lib
-o /tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/bin/tblgen /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/AsmWriterEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CallingConvEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CodeEmitterGen.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CodeGenTarget.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/DAGISelEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/FileLexer.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/FileParser.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/InstrInfoEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/IntrinsicEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/Record.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/RegisterInfoEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/SubtargetEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/TableGen.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/TableGenBackend.o
-lLLVMSupport -lLLVMSystem \
-lltdl -lm -lelf
/tools/llvm-tools/x86_64-unknown-linux-gnu/bin/g++
-I/tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen
-I/users/dag/projects/llvm-project.modified/llvm/trunk/utils/TableGen
-I/tmp/ptmp/dag/build.llvm.modified.debug/include
-I/users/dag/projects/llvm-project.modified/llvm/trunk/include
-I/tmp/ptmp/dag/build.llvm.modified.debug/include
-I/users/dag/projects/llvm-project.modified/llvm/trunk/include -D_DEBUG
-D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -g -Woverloaded-virtual
-Wall -W -Wwrite-strings -Wunused -Wno-unused-parameter -g
-o /tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/bin/tblgen /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/AsmWriterEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CallingConvEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CodeEmitterGen.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/CodeGenTarget.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/DAGISelEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/FileLexer.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/FileParser.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/InstrInfoEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/IntrinsicEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/Record.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/RegisterInfoEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/SubtargetEmitter.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/TableGen.o /tmp/ptmp/dag/build.llvm.modified.debug/utils/TableGen/Debug+Checks/TableGenBackend.o
-Wl,--export-dynamic
-L/tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/lib -lLLVMSupport
-lLLVMSystem /usr/lib/libltdl.so -ldl -lm -lelf -Wl,--rpath
-Wl,/tmp/ptmp/dag/build.llvm.modified.debug/Debug+Checks/bin
More information about the llvm-dev
mailing list