[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    Re: [LLVMdev] Error with llc after using llvm-g++ WIN32
From:       Evan Cheng <evan.cheng () apple ! com>
Date:       2006-05-26 5:59:03
Message-ID: 6B95264C-7C8A-4504-9447-0DE35E58FB3B () apple ! com
[Download RAW message or body]

Hi Ashwin,

Thanks for testing it out. Free feel to contribute patches to fix the  
problems! :-) Given that I work for Apple, you can't expect me to  
know anything about WIN32, right? :^)

Evan

On May 25, 2006, at 5:19 PM, Ashwin Chandra wrote:

> Hi Evan,
> Actually the unrecognized commas disappeared with the patch. What  
> remains is a call to ".local" which doesn't exist in x86 or at  
> least is not compilable by g++.
> Ashwin
>
>
> On 5/25/06, Ashwin Chandra <ashwin.chandra1@gmail.com> wrote:
> Hi Evan,
> I updated cvs and recompilled llvm. Still getting some unrecognized  
> commas in the compilation of the assembly file after using llc. I  
> guess this is still future work...
>
> Ashwin
>
>
> On 5/25/06, Evan Cheng <evan.cheng@apple.com > wrote:
> The patch is now in. Sorry about the delay!
>
>
> Evan
>
> On May 25, 2006, at 10:20 AM, Ashwin Chandra wrote:
>
>> Hi Anton,
>> Is the patch going to be uploaded to the CVS source?
>>
>> Ashwin
>>
>>
>> On 5/24/06, Evan Cheng <evan.cheng@apple.com > wrote:
>>
>> On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote:
>>
>> > Hello, Ashwin.
>> >
>> > You wrote Wednesday, May 24, 2006, 11:25:11 AM:
>> >
>> > AC> "Pass::getClassPassInfo<PassClass>()    "Pass class not
>> > AC> registered!"" failed: file
>> > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h",
>> > line 76
>> > AC> Aborted
>> > Same for me.
>> >
>> > AC> Wihtout the -march specified (using native x86 assembly) it  
>> does
>> > AC> convert it into assembly, but is uncompilable (with some
>> > unecognized "," (comma)
>> > AC> characters in the .s file).
>> > Yes. X86AsmWriter should be fixed. I've submitted patches for  
>> that in
>> > this maillist some days ago.
>>
>> Could you resent? I cannot find your patch submission.
>>
>> Thanks,
>>
>> Evan
>> >
>> > AC> Does anyone have an idea why these two errors happen and has
>> > anyone
>> > AC> successfully used llvm-g++ on a WIN32 platform to compile files
>> > into bytecode
>> > AC> and used llc to convert back into C/assembly?
>> > C++ is definitely broken on win32 platform due to many platform
>> > specific issues (e.g. static ctors, etc.). Thank you for triggering
>> > this bug - I'm working on this.
>> >
>> > --
>> > With best regards,
>> >  Anton                          mailto:asl@math.spbu.ru
>> >
>> > Wednesday, May 24, 2006 4:00:59 PM
>> >
>> > Faculty of Mathematics & Mechanics, Saint-Petersburg State  
>> University
>> >
>> >
>> > _______________________________________________
>> > LLVM Developers mailing list
>> > LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


[Attachment #3 (unknown)]

<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: \
after-white-space; ">Hi Ashwin,<DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>Thanks for testing it out. Free feel to \
contribute patches to fix the problems! :-) Given that I work for Apple, you can't \
expect me to know anything about WIN32, right? :^)</DIV><DIV><BR \
class="khtml-block-placeholder"></DIV><DIV>Evan</DIV><DIV><BR><DIV><DIV>On May 25, \
2006, at 5:19 PM, Ashwin Chandra wrote:</DIV><BR \
class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Hi Evan,</DIV> \
<DIV>Actually the unrecognized commas disappeared with the patch. What remains is a \
call to ".local" which doesn't exist in x86 or at least is not compilable by \
g++.</DIV> <DIV>Ashwin<BR><BR> </DIV> <DIV><SPAN class="gmail_quote">On 5/25/06, <B \
class="gmail_sendername">Ashwin Chandra</B> &lt;<A \
href="mailto:ashwin.chandra1@gmail.com">ashwin.chandra1@gmail.com</A>&gt; \
wrote:</SPAN> <BLOCKQUOTE class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <DIV> <DIV>Hi Evan,</DIV> <DIV>I updated \
cvs and recompilled llvm. Still getting some unrecognized commas in the compilation \
of the assembly file after using llc. I guess this is still future \
work...</DIV></DIV> <DIV><SPAN class="sg"> <DIV> </DIV> <DIV>Ashwin<BR><BR> \
</DIV></SPAN></DIV> <DIV><SPAN class="e" id="q_10b6e08a85198b1b_2"> <DIV><SPAN \
class="gmail_quote">On 5/25/06, <B class="gmail_sendername">Evan Cheng</B> &lt;<A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:evan.cheng@apple.com" target="_blank">evan.cheng@apple.com</A> &gt; \
wrote:</SPAN> <BLOCKQUOTE class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <DIV> <DIV style="WORD-WRAP: \
break-word">The patch is now in. Sorry about the delay! <DIV><BR> </DIV> \
<DIV>Evan</DIV> <DIV><SPAN><BR> <DIV> <DIV>On May 25, 2006, at 10:20 AM, Ashwin \
Chandra wrote:</DIV><BR> <BLOCKQUOTE type="cite"> <DIV>Hi Anton,</DIV> <DIV>Is the \
patch going to be uploaded to the CVS source?</DIV> <DIV> </DIV> <DIV>Ashwin<BR><BR> \
</DIV> <DIV><SPAN class="gmail_quote">On 5/24/06, <B class="gmail_sendername">Evan \
Cheng</B> &lt;<A onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:evan.cheng@apple.com" target="_blank">evan.cheng@apple.com</A> &gt; \
wrote:</SPAN> <BLOCKQUOTE class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><BR>On May 24, 2006, at 5:03 AM, Anton \
Korobeynikov wrote:<BR><BR>&gt; Hello, Ashwin.<BR>&gt;<BR>&gt; You wrote Wednesday, \
May 24, 2006, 11:25:11 AM: <BR>&gt;<BR>&gt; AC&gt; \
"Pass::getClassPassInfo&lt;PassClass&gt;()    "Pass class not<BR>&gt; AC&gt; \
registered!"" failed: file<BR>&gt; AC&gt; \
"/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", <BR>&gt; line 76<BR>&gt; \
AC&gt; Aborted<BR>&gt; Same for me.<BR>&gt;<BR>&gt; AC&gt; Wihtout the -march \
specified (using native x86 assembly) it does<BR>&gt; AC&gt; convert it into \
assembly, but is uncompilable (with some<BR> &gt; unecognized "," (comma)<BR>&gt; \
AC&gt; characters in the .s file).<BR>&gt; Yes. X86AsmWriter should be fixed. I've \
submitted patches for that in<BR>&gt; this maillist some days ago.<BR><BR>Could you \
resent? I cannot find your patch submission. \
<BR><BR>Thanks,<BR><BR>Evan<BR>&gt;<BR>&gt; AC&gt; Does anyone have an idea why these \
two errors happen and has<BR>&gt; anyone<BR>&gt; AC&gt; successfully used llvm-g++ on \
a WIN32 platform to compile files<BR>&gt; into bytecode <BR>&gt; AC&gt; and used llc \
to convert back into C/assembly?<BR>&gt; C++ is definitely broken on win32 platform \
due to many platform<BR>&gt; specific issues (e.g. static ctors, etc.). Thank you for \
triggering<BR>&gt; this bug - I'm working on this. <BR>&gt;<BR>&gt; --<BR>&gt; With \
best regards,<BR>&gt;  Anton                          mailto:<A onclick="return \
top.js.OpenExtLink(window,event,this)" href="mailto:asl@math.spbu.ru" \
target="_blank">asl@math.spbu.ru</A><BR> &gt;<BR>&gt; Wednesday, May 24, 2006 4:00:59 \
PM<BR>&gt;<BR>&gt; Faculty of Mathematics &amp; Mechanics, Saint-Petersburg State \
University <BR>&gt;<BR>&gt;<BR>&gt; \
_______________________________________________<BR>&gt; LLVM Developers mailing list \
<BR>&gt; <A onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</A>         <A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://llvm.cs.uiuc.edu/" target="_blank"> http://llvm.cs.uiuc.edu</A><BR>&gt; \
<A onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR> \
<BR>_______________________________________________<BR>LLVM Developers mailing list \
<BR><A onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</A>         <A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</A><BR><A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank"> \
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev </A><BR></BLOCKQUOTE></DIV><BR> \
<DIV style="MARGIN: 0px">_______________________________________________</DIV> <DIV \
style="MARGIN: 0px">LLVM Developers mailing list</DIV> <DIV style="MARGIN: 0px"><A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</A> <SPAN>      \
</SPAN><A onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://llvm.cs.uiuc.edu/" target="_blank"> http://llvm.cs.uiuc.edu</A></DIV> \
<DIV style="MARGIN: 0px"><A onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A></DIV></BLOCKQUOTE> \
</DIV><BR></SPAN></DIV> \
<DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>LLVM \
Developers mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu </A>        <A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</A><BR><A \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank"> \
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR><BR><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV><BR><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">_______________________________________________</DIV><DIV style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LLVM Developers mailing \
list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "><A href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A> \
<SPAN class="Apple-converted-space">        </SPAN><A \
href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</A></DIV><DIV \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A \
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A></DIV> \
</BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic