[LLVMdev] building LLVM with just the C backend

Jay Foad jay.foad at antixlabs.com
Thu Dec 13 02:37:55 PST 2007


I tried building LLVM 2.1 with no real target CPU backends enabled, just the
C backend, by hacking the configure script slightly:


--- /home/foad/llvm/llvm-2.1/configure  2007-09-17 22:37:52.000000000 +0100
+++ configure   2007-12-13 10:29:41.000000000 +0000
@@ -4762,7 +4762,7 @@
   done
   ;;
 esac
-TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
+TARGETS_TO_BUILD="CBackend"
 TARGETS_TO_BUILD=$TARGETS_TO_BUILD


It didn't work. I get these link failures:


make[2]: Entering directory
`/home/foad/svn/antix/toolchain/trunk/toolchain/obj/llvm-obj/tools/llc'
llvm[2]: Linking Debug executable llc
/home/foad/svn/antix/toolchain/trunk/toolchain/obj/llvm-obj/tools/llc/Debug/
llc.o: In function `ForceCodegenLinking':
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:38: undefined reference to
`llvm::createBFS_DAGScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*,
llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:39: undefined reference to
`llvm::createSimpleDAGScheduler(llvm::SelectionDAGISel*,
llvm::SelectionDAG*, llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:40: undefined reference to
`llvm::createNoItinsDAGScheduler(llvm::SelectionDAGISel*,
llvm::SelectionDAG*, llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:41: undefined reference to
`llvm::createBURRListDAGScheduler(llvm::SelectionDAGISel*,
llvm::SelectionDAG*, llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:42: undefined reference to
`llvm::createTDRRListDAGScheduler(llvm::SelectionDAGISel*,
llvm::SelectionDAG*, llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:43: undefined reference to
`llvm::createTDListDAGScheduler(llvm::SelectionDAGISel*,
llvm::SelectionDAG*, llvm::MachineBasicBlock*)'
/home/foad/svn/antix/toolchain/trunk/toolchain/llvm/llvm/include/llvm/CodeGe
n/LinkAllCodegenComponents.h:44: undefined reference to
`llvm::createDefaultScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*,
llvm::MachineBasicBlock*)'
collect2: ld returned 1 exit status
make[2]: ***
[/home/foad/svn/antix/toolchain/trunk/toolchain/obj/llvm-obj/Debug/bin/llc]
Error 1


Is this something that ought to work? Any idea how to go about fixing it?

Thanks,
Jay.




More information about the llvm-dev mailing list