Aaron Gray
2009-Jul-27 10:25 UTC
[LLVMdev] [Cygwin] error building llvm-gcc - X86ATTAsmPrinter error in libstdc++
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 >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090727/530f1fb8/attachment.html>
Aaron Gray
2009-Jul-27 12:06 UTC
[LLVMdev] [Cygwin] error building llvm-gcc - X86ATTAsmPrinter error in libstdc++
2009/7/27 Aaron Gray <aaronngray.lists at googlemail.com>> 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 >I am able to take the last compile line and output a '.bc' file from 'valarray-inst.cc', compile the '.bc' file then assemble this file with 'gas', then disassemble the file with objdump. llc -mtriple=i686-pc-cygwin valarray-inst.bc -f as valarray-inst.s -o valarray-inst.o This works fine. I have llvm & llvm-gcc revisions 77165. I have used an optimized build for llvm. I can only think I did something wrong in building, but cannot think what I could have done ? Any help welcome, Aaron> > 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 >>> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090727/f97d4fa2/attachment.html>
Evan Cheng
2009-Jul-27 18:13 UTC
[LLVMdev] [Cygwin] error building llvm-gcc - X86ATTAsmPrinter error in libstdc++
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>
Aaron Gray
2009-Jul-27 20:04 UTC
[LLVMdev] [Cygwin] error building llvm-gcc - X86ATTAsmPrinter error in libstdc++
2009/7/27 Evan Cheng <evan.cheng at apple.com>> This looks like pr4572. >Right, yes it does ! What gets me if I do the operations separately llvm-gcc to .bc, llc to .s, gas to .o then the bug does not occur. Is there anyway the passes and ordering of llvm-gcc compared to llc account for this ? I know very little of TableGen and friends so will be of no use here. Okay, hopefully this will be solved well before the next release :) Thanks, Aaron> > 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 > > > > _______________________________________________ > 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/65789df0/attachment.html>