User Tools

Site Tools


guide:compiling_gcc

This is an old revision of the document!


Compiling GCC from Source

This guide is written as to try and help CHPC users who are struggling to compile the GCC version required for there codes. For the official guide on compiling GCC please visit the GCC website. This guide documents how gcc-4.6.2 would be built on the Sun Tsessbe Cluster.

Prerequisites

Prerequisite Version Required Version Available

Testing

Trouble Shooting

The compilation process may be unstable, requiring make to be run multiple times. If you experience such errors try

$ make && sleep 10 && make && sleep 10 && make

xgcc: internal compiler error: Killed (program cc1)

This error occurs when the cc1 process is killed/terminated. There could be many reasons for termination, not enough system recourses, another process killed cc1 (try killall cc1 from another shell, while make is running to replicate this error…)

This is a rather annoying error, but just keep running make until all the file are compiled.

gcj: internal compiler error: Killed (program jc1)

Again just as with xgcc error, the gcj program was killed/terminated. run make again

/app/dokuwiki/data/attic/guide/compiling_gcc.1322342830.txt.gz · Last modified: 2021/12/09 16:42 (external edit)