Gautam Sewani
2009-Mar-13 08:35 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
Hi all, I am a new user of LLVM, and wanted to explore it in conjunction with the compilers course I am taking in my university. To this end, I downloaded the code for the LLVM suite and the LLVM-gcc front end from the respective repositories. Then, I built the LLVM suite without any hitch, but when I tried to build the llvm-gcc frontend (exactly following the instructions of README.LLVM) , I got compilator errors. I am using "gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)" on Ubuntu 7.10, Intel Core Duo. I have attached the make file output with this mail. (I did not find any mention of this mailing list's policy on attachments, and if it's against the rules then I apologise). I wished to know if the error is a result of some recent changes taking place in the code and if using the pre-compiled binaries will help, or is there something wrong at my end? Regards Gautam -------------- next part -------------- A non-text attachment was scrubbed... Name: make.out Type: application/octet-stream Size: 6989 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090313/25a9fa40/attachment.obj>
Gautam Sewani
2009-Mar-13 08:37 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
On Fri, Mar 13, 2009 at 2:05 PM, Gautam Sewani <gautamcool88 at gmail.com> wrote:> Hi all, > > I am a new user of LLVM, and wanted to explore it in conjunction with > the compilers course I am taking in my university. To this end, I > downloaded the code for the LLVM suite and the LLVM-gcc front end from > the respective repositories. Then, I built the LLVM suite without any > hitch, but when I tried to build the llvm-gcc frontend (exactly > following the instructions of README.LLVM) , I got compilator errors. > I am using "gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu > 4.1.2-16ubuntu2)" on Ubuntu 7.10, Intel Core Duo. I have attached the > make file output with this mail. (I did not find any mention of this > mailing list's policy on attachments, and if it's against the rules > then I apologise). > I wished to know if the error is a result of some recent changes > taking place in the code and if using the pre-compiled binaries will > help, or is there something wrong at my end? > > Regards > Gautam >Forgot to mention - I am using revision 66876.
Anton Korobeynikov
2009-Mar-13 09:04 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
Hello,> I wished to know if the error is a result of some recent changes > taking place in the code and if using the pre-compiled binaries will > help, or is there something wrong at my end?It seems, that your llvm and llvm-gcc sources are out of sync. PS: gcc 4.1.x is know to be the source of all sorts of miscompilations, I don't know whether it's still true for 4.1.3, but definitely so fo 4.1.2 --- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Duncan Sands
2009-Mar-13 09:08 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
Hi, the versions of llvm-gcc and llvm you are using are not synchronized. Probably one is from subversion while the other is not. Ciao, Duncan.
Duncan Sands
2009-Mar-13 12:58 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
Hi,> Ok, I 'synchronized' both of them, but now I am getting a different > error. On running make, the output ends with the following error:please don't only reply to me, please reply to the list too. That way others can comment, and the discussion is archived.> cc1: /home/gautam/code/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44: > llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost > exceeds InlineCost precision"' failed. > ../../trunk/gcc/libgcov.c:644: internal compiler error: Aborted > Please submit a full bug report,your system compiler is broken, this is a known symptom.> I also tried using the gcc-4.2 compiler (by changing the value of the > environment variables CC and CXX), but got the same error.This should work. Since it didn't, I guess you made a mistake when trying to use gcc-4.2 and g++-4.2 and actually used the 4.1 versions instead. Ciao, Duncan.
Gautam Sewani
2009-Mar-13 13:05 UTC
[LLVMdev] [LLVMDev] trouble building gcc-frontend from source
On Fri, Mar 13, 2009 at 2:38 PM, Duncan Sands <baldrick at free.fr> wrote:> Hi, the versions of llvm-gcc and llvm you are using are > not synchronized. Probably one is from subversion while > the other is not. > > Ciao, > > Duncan. >Ok, I 'synchronized' both of them, but now I am getting a different error. On running make, the output ends with the following error: /home/gautam/code/llvm/llvm-gcc-4.2/obj/./gcc/xgcc -B/home/gautam/code/llvm/llvm-gcc-4.2/obj/./gcc/ -B/home/gautam/code/llvm/llvm-gcc-4.2/obj/../install/i686-pc-linux-gnu/bin/ -B/home/gautam/code/llvm/llvm-gcc-4.2/obj/../install/i686-pc-linux-gnu/lib/ -isystem /home/gautam/code/llvm/llvm-gcc-4.2/obj/../install/i686-pc-linux-gnu/include -isystem /home/gautam/code/llvm/llvm-gcc-4.2/obj/../install/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber -I../libdecnumber -I/home/gautam/code/llvm/llvm_install/include -I/home/gautam/code/llvm/llvm/include -DL_gcov -c ../../trunk/gcc/libgcov.c -o libgcc/./_gcov.o cc1: /home/gautam/code/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44: llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost exceeds InlineCost precision"' failed. ../../trunk/gcc/libgcov.c:644: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. make[4]: *** [libgcc/./_gcov.o] Error 1 make[4]: Leaving directory `/home/gautam/code/llvm/llvm-gcc-4.2/obj/gcc' make[3]: *** [libgcc.a] Error 2 make[3]: Leaving directory `/home/gautam/code/llvm/llvm-gcc-4.2/obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/gautam/code/llvm/llvm-gcc-4.2/obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/gautam/code/llvm/llvm-gcc-4.2/obj' make: *** [all] Error 2 I also tried using the gcc-4.2 compiler (by changing the value of the environment variables CC and CXX), but got the same error. Where am I going wrong? Any help would be greatly appreciated. Regards Gautam
Maybe Matching Threads
- [LLVMdev] [LLVMDev] trouble building gcc-frontend from source
- [LLVMdev] [LLVMDev] trouble building gcc-frontend from source
- [LLVMdev] [LLVMDev] trouble building gcc-frontend from source
- [LLVMdev] [LLVMDev] trouble building gcc-frontend from source
- [LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end