top | item 3853314

Building gcc-4.7 on Ubuntu 12.04

8 points| RSeldon | 14 years ago |solarianprogrammer.com

11 comments

order
[+] srean|14 years ago|reply
For those who are building gcc-4.7 from scratch, the cilk/ branch sure looks interesting. It has the Cilk runtime and the cilk extensions to the language built in.

http://en.wikipedia.org/wiki/Cilk http://software.intel.com/en-us/articles/intel-cilk-plus/

As far as language extensions go, it may seem that Cilk does not add much, but to me the advantage of not manually assigning tasks to threads and work stealing seems like a big win.

Looking forward to try it out in a week. Stoked.

[+] RSeldon|14 years ago|reply
Well, C++11 has native threads now and OpenMP looks like a good alternative to Cilk.

Any performance reason for which one would prefer Cilk vs OpenMP ?

[+] tresta|14 years ago|reply
> I was surprised to find that the process of building gcc-4.7 from sources on Ubuntu is so complicated, after all, this is a Linux system …

It didn't look all that complicated to me. It seems like it is just the standard steps for installing gcc? Or am I missing something?

[+] RSeldon|14 years ago|reply
If you have installed before gcc from sources on Ubuntu you will notice that this time you need to do some extra steps.

A typical build should be as simple as:

./configure --prefix=where_you_want_this_installed make -j number_of_processors sudo make install

this is not the case if you read the various "bugs" reported on Ubuntu mailing lists.