I felt the need to write this little blog as I encountered few errors/troubles while installing GCCUPC and did not find concrete help on internet. Hope it might help people who would like to install GNU version of UPC compiler in future.
For GCCUPC to be installed successfully, one needs following libraries and tools:
Libraries: libmpfr-dev, libmpc-dev, libgmp3-dev, libnuma-dev, libc6-dev-i386
Tools: Flex, Bison
For installation on 64 bit Ubuntu, you might encounter the following error:
/usr/bin/ld: cannot find crti.o: No such file or directory
It's because the required library has been moved away from the standard place in 64 Bit Ubuntu release.
Creating soft link to this library can solve this problem:
cd /usr/lib
ln -s x86_64-linux-gnu/crt*.o .
Now after successfully installing all above mentioned libraries and tools, proceed with following commands:
- :$
/upc-4.7.0.2/configure --prefix=INSTALLATION_DIR --enable-languages=upc --disable-multilib - make -j4
- make install
P.S. make sure to load the /bin directory in PATH variable (export PATH= /bin :$PATH) and then run 'which gupc' to verify if GCCUPC compiler can be located.