Skip to content

can't build with just the CppBackend #3740

@llvmbot

Description

@llvmbot
Bugzilla Link 3368
Version 2.4
OS Windows XP
Attachments suggested fix for linker errors
Reporter LLVM Bugzilla Contributor
CC @isanbard,@jayfoad

Extended Description

On Linux/x86 I did:

$ ../llvm-2.4/configure --enable-targets=cbe ; make

It fails with:

llvm[2]: Linking Release executable llc (without symbols)
/home/foad/llvm/objdir-poo/tools/llc/Release/llc.o: In function global constructors keyed to FileType': llc.cpp:(.text+0x93d): undefined reference to llvm::createBURRListDAGScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*, llvm::MachineBasicBlock*, bool)'
llc.cpp:(.text+0x961): undefined reference to llvm::createTDRRListDAGScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*, llvm::MachineBasicBlock*, bool)' llc.cpp:(.text+0x985): undefined reference to llvm::createTDListDAGScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*, llvm::MachineBasicBlock*, bool)'
llc.cpp:(.text+0x9a9): undefined reference to llvm::createFastDAGScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*, llvm::MachineBasicBlock*, bool)' llc.cpp:(.text+0x9cd): undefined reference to llvm::createDefaultScheduler(llvm::SelectionDAGISel*, llvm::SelectionDAG*, llvm::MachineBasicBlock*, bool)'
llc.cpp:(.text+0x9d7): undefined reference to `llvm::linkOcamlGCPrinter()'
collect2: ld returned 1 exit status
make[2]: *** [/home/foad/llvm/objdir-poo/Release//bin/llc] Error 1

I would find it useful to be able to build llc without any of the native codegen backends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaobsoleteIssues with old (unsupported) versions of LLVMtools:llcwontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions