01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CH03.fm Page 51 Monday, October 7, 2002 8:33 PM<br />

Installing GNU Compiler 51<br />

If you want to enable threads on <strong>Linux</strong> systems, you can use --enablethreads=posix<br />

as a comm<strong>and</strong> line option.<br />

3.2.2.3 Building GCC<br />

It is recommended that you use GNU make for building purpose. Running the make<br />

bootstrap comm<strong>and</strong> will build the compiler, libraries <strong>and</strong> related utilities. Following is part<br />

of the output when you start the building process.<br />

[root@laptop objdir]# make bootstrap<br />

make[1]: Entering directory `/gcc3/objdir/libiberty'<br />

if [ x"" != x ] && [ ! -d pic ]; then \<br />

mkdir pic; \<br />

else true; fi<br />

touch stamp-picdir<br />

if [ x"" != x ]; then \<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/<br />

libiberty/../include -W -Wall -Wtraditional -pedantic ../../<br />

gcc-3.0.4/libiberty/argv.c -o pic/argv.o; \<br />

else true; fi<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/<br />

../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/<br />

libiberty/argv.c<br />

if [ x"" != x ]; then \<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/<br />

libiberty/../include -W -Wall -Wtraditional -pedantic ../../<br />

gcc-3.0.4/libiberty/choose-temp.c -o pic/choose-temp.o; \<br />

else true; fi<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/<br />

../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/<br />

libiberty/choose-temp.c<br />

if [ x"" != x ]; then \<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/<br />

libiberty/../include -W -Wall -Wtraditional -pedantic ../../<br />

gcc-3.0.4/libiberty/concat.c -o pic/concat.o; \<br />

else true; fi<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/<br />

../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/<br />

libiberty/concat.c<br />

if [ x"" != x ]; then \<br />

gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/<br />

libiberty/../include -W -Wall -Wtraditional -pedantic ../../<br />

gcc-3.0.4/libiberty/cplus-dem.c -o pic/cplus-dem.o; \<br />

else true; fi<br />

Again most of the output is truncated. <strong>The</strong> building process may take a long time depending<br />

upon how powerful a computer you are using for building GCC. <strong>The</strong> process is completed in

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!