<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 7/20/2010 12:48 PM, Jin Guoliang wrote:
    <blockquote
      cite="mid:AANLkTilEFzXp1BBgTzKnC7B-_QDDlFKO5ZV7NFfzWyBU@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">On Tue, Jul 20, 2010 at 8:49 AM, Rafael
        Espindola <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:espindola@google.com">espindola@google.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div class="im">> export
            PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH"<br>
            > export CC="llvm-gcc -use-gold-plugin
            -Wl,-plugin-opt=also-emit-llvm"<br>
            > export CXX="llvm-g++ -use-gold-plugin
            -Wl,-plugin-opt=also-emit-llvm"<br>
            > export RANLIB=/bin/true<br>
            > export CFLAGS="-O4 -g"<br>
            ><br>
            > then configure, make, and then hit the error.<br>
            ><br>
            > The error only happens if the CFLAGS has -g in it.<br>
            <br>
          </div>
          Can you reduce the testcase a bit? It would be a lot easier to<br>
          reproduce with the ld invocation and the .o files given to it.<br>
          <br>
        </blockquote>
        <div>All the .o files are in the tarball. You can download it
          here (too large to send through the list): <a
            moz-do-not-send="true"
            href="http://pages.cs.wisc.edu/%7Ealiang/goldAndDebugTest.tar.gz">http://pages.cs.wisc.edu/~aliang/goldAndDebugTest.tar.gz</a><br>
          <br>
          The command is:<br>
          llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-
          <div id=":1ds" class="ii gt">llvm  -g -O4   -o flex  ccl.o
            dfa.o ecs.o scanflags.o gen.o main.o misc.o nfa.o parse.o
            scan.o skel.o sym.o tblcmp.o yylex.o options.o scanopt.o
            buf.o tables.o tables_shared.o filter.o regex.o  -lm<br>
            Then I got:<br>
            $ llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm 
            -g -O4   -o flex  ccl.o dfa.o ecs.o scanflags.o gen.o main.o
            misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o
            options.o scanopt.o buf.o tables.o tables_shared.o filter.o
            regex.o  -lm <br>
            <div class="im">
              collect2: ld terminated with signal 6 [Aborted]<br>
            </div>
            /local.toadette/aliang/packages/llvm-2.7/llvm-gcc/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld:

            error: buf.o:1:1: invalid character
            <div class="im"><br>
              Unknown constant!<br>
              UNREACHABLE executed at
/local.toadette/aliang/fixing/llvm-2.7/llvm-2.7/lib/Bitcode/Writer/BitcodeWriter.cpp:895!<br>
              <br>
            </div>
            I do not know how to get the ld invocation you need. If this
            command is not what you need, please tell me how to get the
            ld invocation.<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    Do you need something else from me to reproduce this?<br>
    <br>
    Thanks,<br>
    Guoliang<br>
  </body>
</html>