[LLVMbugs] [Bug 6224] New: The x86 Disassembler (edis) is built even if x86 target is not selected -> build fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 3 14:20:49 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6224

           Summary: The x86 Disassembler (edis) is built even if x86 target
                    is not selected -> build fails
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvmc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: zapster at zapster.cc
                CC: llvmbugs at cs.uiuc.edu


The x86 disassembler is built if x86 target is not enabled. Edis should be
disabled if the x86 target is not selected.

build steps:

$ ../llvm/configure --disable-optimized --enable-targets=pic16 ; make -j2 

...
llvm[3]: Linking Debug executable llvmc
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:56: error:
‘instInfoX86’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:57: error:
‘instInfoX86’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:59: error: too many
initializers for ‘InfoMap’
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:59: error: too many
initializers for ‘InfoMap’
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp: In static member
function ‘static void EDDisassembler::initialize()’:
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:114: error:
‘LLVMInitializeX86TargetInfo’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:114: error:
‘LLVMInitializeX86Target’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:114: error:
‘LLVMInitializeX86AsmPrinter’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:114: error:
‘LLVMInitializeX86AsmParser’ was not declared in this scope
/home/zapster/test/llvm/tools/edis/EDDisassembler.cpp:114: error:
‘LLVMInitializeX86Disassembler’ was not declared in this scope
make[2]: *** [/home/zapster/test/build/tools/edis/Debug/EDDisassembler.o] Error
1
make[2]: Leaving directory `/home/zapster/test/build/tools/edis'
make[1]: *** [edis/.makeall] Error 2
...


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list