Software Archive
Read-only legacy content

Unable to Compile GCC

Rahul_M_
Beginner
558 Views

I was following the instructions from https://www.cilkplus.org/build-gcc-cilkplus, and I consistently got an error saying that "tm.h": no file or directory was found. I'm not sure what tm.h is, or what package it is included with.

I installed the following packages: GNAT (probably doesn't help), GMP, MPFR, MPC, ISL, Flex, Bison.

My configuration options were `./configure --prefix=/usr/lib/gcc/cilkplus --enable-languages="c,c++" --disable-multilib`

On Ubuntu 14.10. 

Can someone help me compile cilkplus for gcc?

0 Kudos
2 Replies
Balaji_I_Intel
Employee
558 Views

Hi Rahul,

    Please checkout GCC again and do the configuration in a build directory instead of the source directory. For example,  instead of doing "./configure.... " create a bulid directory outside the gcc source (say b-gcc) and do the configuration from that directory (../cilkplus-gcc/configure ...)

 

Thanks,


Balaji V. Iyer.

0 Kudos
Rahul_M_
Beginner
558 Views

Hi Balaji,

While I checkout GCC again, a few things to note is that the url provided on the website ("http://gcc.gnu.org/git/gcc.git") fails with "error: Unable to get pack index [something_very_longpack-3d41dc6e064e2a69db1aef619416eb026aab19e4.idx]"). However, it seems that what I used earlier to clone was "git://gcc.gnu.org/git/gcc.git", which runs to completion and successfully downloads the 1876608 (~2GB) objects. 

I did actually miss step 3 (which requests me to make the b-gcc directory), so I'll try it again and post the results after the build completes. 

-Rahul

0 Kudos
Reply