[LLVMdev] [Cygwin] error building llvm-gcc - X86ATTAsmPrinter error in libstdc++

Evan Cheng evan.cheng at apple.com
Mon Jul 27 11:13:28 PDT 2009


This looks like pr4572.

Evan

On Jul 27, 2009, at 3:25 AM, Aaron Gray wrote:

> I am now getting an X86ATTAsmPrinter error in compiling libstdc++-v3  
> right near the end of compiling llvm-gcc in valarray-inst.cc.
>
>     assertion "IndexReg.getReg() != X86::ESP && "X86 doesn't allow  
> scaling by ESP"
>
> Does this build on Linux ?
>
> My remote Linux box has died and not a ble to reset it for a day or  
> two.
>
> /home/ang/build/llvm-gcc/./gcc/xgcc -shared-libgcc -B/home/ang/build/ 
> llvm-gcc/./
> gcc -nostdinc++ -L/home/ang/build/llvm-gcc/i686-pc-cygwin/libstdc++- 
> v3/src -L/ho
> me/ang/build/llvm-gcc/i686-pc-cygwin/libstdc++-v3/src/.libs -B/usr/ 
> llvm-gcc/i686
> -pc-cygwin/bin/ -B/usr/llvm-gcc/i686-pc-cygwin/lib/ -isystem /usr/ 
> llvm-gcc/i686-
> pc-cygwin/include -isystem /usr/llvm-gcc/i686-pc-cygwin/sys-include - 
> I/home/ang/
> build/llvm-gcc/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I/ 
> home/ang/bu
> ild/llvm-gcc/i686-pc-cygwin/libstdc++-v3/include -I/home/ang/svn/ 
> llvm-gcc/libstd
> c++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite- 
> strings -Wcast-qu
> al -fdiagnostics-show-location=once -ffunction-sections -fdata- 
> sections -g -O2 -
> c /home/ang/svn/llvm-gcc/libstdc++-v3/src/valarray-inst.cc -o  
> valarray-inst.o
> assertion "IndexReg.getReg() != X86::ESP && "X86 doesn't allow  
> scaling by ESP""
> failed: file "/home/ang/svn/llvm/lib/Target/X86/AsmPrinter/ 
> X86ATTAsmPrinter.cpp"
> , line 496
> make[4]: *** [valarray-inst.lo] Error 1
> make[4]: Leaving directory `/home/ang/build/llvm-gcc/i686-pc-cygwin/ 
> libstdc++-v3
> /src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/ang/build/llvm-gcc/i686-pc-cygwin/ 
> libstdc++-v3
> '
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/ang/build/llvm-gcc/i686-pc-cygwin/ 
> libstdc++-v3
> '
> make[1]: *** [all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory `/home/ang/build/llvm-gcc'
> make: *** [all] Error 2
> real    202m0.538s
> user    23m45.661s
> sys     24m39.707s
>
> Any one got any clues,
>
> Aaron
>
>
> 2009/7/26 Aaron Gray <aaronngray.lists at googlemail.com>
> 2009/7/26 Daniel Dunbar <daniel at zuster.org>
> On Sun, Jul 26, 2009 at 11:41 AM, Aaron
> Gray<aaronngray.lists at googlemail.com> wrote:
> > 2009/7/26 Daniel Dunbar <daniel at zuster.org>
> > lvm-backend.o
> > /home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp: In function 'void
> > llvm_initialize_b
> > ackend()':
> > /home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp:455: error:
> > 'getClosestStaticTargetF
> > orModule' is not a member of 'llvm::TargetRegistry'
>
> This should be work on TOT.
>
> >>If you use r77097, does it work?
> > Shall I try that, or latest revision ?
>
> Please try on TOT and if that fails, r77097.
>
> Okay.
>
>
> If it turns out to be my fault -- sorry for the breakage. :)
>
> Don't worry I am used to it, I think there are probably more  
> breakages anyway, its Cygwin !
>
> Aaron
>
>
>
>  - Daniel
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
> _______________________________________________
> 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/20090727/d74c8344/attachment.html>


More information about the llvm-dev mailing list