Monday, July 13, 2009

Going home

I am writing this from inside the great firewall of China. :)

Thursday, July 9, 2009

No chrome for me :(



I knew this was coming, but I didn't it would come so fast and in this way. Latest svn build just hit a SNAFU. Ah, the perils of living on the bleeding edge. Thank God, I still have firefox. And 3.5 is pretty good with it's speed too.


Monday, July 6, 2009

Compiling open64 with gcc4.4

After this, God knows what got into me and I tried to compile open64 with gcc4.4 that comes with fedora 11. There were a few bugs along the way. I included cstring, cstdlib here and there and they were fixed. The last one that I got stuck on was in c-parse.c. Now I am officially giving up on my install-as-many-compilers-as-you-can binge. LLVM should be fine, for now.

EDIT0: Ok, I broke my promise to myself. I installed it using the binary rpm. :)

installing LLVM-GCC in fedora 11, 64 bit

Fedora comes with a prepackaged llvm. To install that, you just need to do yum install llvm. But to compile any thing with llvm, you need to install llvm-gcc. Here's how to do it.

1. install llvm by

$ yum install llvm

2. download llvm-gcc source code from here. I downloaded llvm-gcc4.2-2.5.source.tar.gz. Let's say you downloaded it to /path/to/llvm-gcc

3. now extract the tarball by

$ cd /path/to/llvm-gcc
$ tar -zxvf llvm-gcc-version.tar.gz

4. make temp directories for compilation

$ cd /path/to/llvm-gcc/llvm-gcc4.2-2.5.source
$ mkdir install;mkdir obj

5. now comes the fun part of customizing everything to suit your needs. I did

$ cd obj
$ ../configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=/usr --enable-languages=c,c++,fortran --disable-multilib

The extras here are fortran, disabled multilib for native x86-64 builds and the prefix directory for installation.

6. Now compile and install

$ make -j2

On your machine, it might be a little different depending on how many cpus you can spare for installation.

7. Finally, install it with

$ make install

Now all your stuff will be installed int the $prefix/install/bin directory. Here, $prefix is the path you used to run ./configure, and not some arbitrary environment variable. You may place symlinks at your preferred places.

Visit to Alcatraz

Getting to San Francisco: $3.70

Ferry to Alcatraz, $26.00

Having your camera battery die on you after you get there: Priceless

Saturday, July 4, 2009

No chrome, :(


Have a look at this.

I will have to give up chrome when I return to IITB. I am disappointed, but hopefully, this feature will get implemented soon.

Thursday, July 2, 2009

More updates

After falling to alomst 30, my to-watch list of movies has swelled to 42 again. :) Time to go back to India is approaching too. Mumabi would be as usual swamped with rains, no doubt. :(

Wednesday, July 1, 2009

Chrome on Fedora 11, 64 bit

I just installed google chrome using this. Even though I am running a 64 bit version. Install using yum and it will run perfectly. I am all over this thing. It is awesome, it runs like a rocket, GAAAWWWD. Every one should try this. Thanks for making this repo available. This thing is going to kick ass when done in gentoo. !!! Thank God for the competition.

EDIT0: I wrote this using chrome. The repo maintainer seems to be updating his repo fairly quickly (for now atleast).

EDIT1: As correctly pointed out here, the rpms are not native 64 bit binaries. They are 32 bit ones, which work correctly for 32 bit ones too.