On 5/3/11 11:12 AM, Arushi Aggarwal wrote:> Hi,
>
> I am trying to reduce what I believe to be a miscompilation bug.
>
> Running lli on my bitcode file causes a segmentation fault.
>
> However, running bugpoint as
>
> bugpoint file.bc
I think you need to tell bugpoint to link in libstdc++. I think you can
do that using the -Xlinker option.
-- John T.
>
> gives me the following errors,
> /tmp/ccAdmNqH.o: In function `_ZL17bus_error_handleriP7siginfoPv':
> bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x1b4e1): undefined
> reference to `std::cerr'
> /tmp/ccAdmNqH.o: In function `bb_poolcheck_debug':
> bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x1bdbb): undefined
> reference to `std::cerr'
> /tmp/ccAdmNqH.o: In function `DisplayChessBoard_OC_TEST':
> bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x3247d): undefined
> reference to `std::cerr'
> /tmp/ccAdmNqH.o: In function `DisplayPieceBoards':
> bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x3a820): undefined
> reference to `std::cerr'
> bugpoint-test-program.bc-Vega5s.cbe.c:(.text+0x3a8b1): undefined
> reference to `std::cerr'
>
> What is the correct options I need to pass to bugpoint?
>
> Thanks,
> Arushi
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110503/08f0b682/attachment.html>