This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Successful build of gcc-3.0.4 on hppa2.0-hp-hpux10.20 and

Compile gcc-3.0.4 on hp-ux 10.20 and hp-ux 11.00 with gcc-3.0.1

download gcc-core and gcc-g++ from the gcc site

be sure that the following GNU programs will be used:

# which as sed ld
/opt/binutils/bin/as        # GNU as Version 2.11.2
/opt/sed/bin/sed            # GNU Stream Editor Version 3.02
/usr/bin/ld                 # HP Link Loader

Environmental variable changes prior to building gcc:

Put binutils binary directory at the front of your PATH:
export PATH=/opt/binutils/bin:$PATH

If you're using GNU sed, put the sed binary dir in the front of your PATH:
export PATH=/opt/sed/bin:$PATH

If you're using gmake (recommended - optional with this release, will be
mandatory with future releases), then put the gmake binary in the front of

your PATH:
export PATH=/opt/make/bin:$PATH

Changes made to configure files:

* configure:
- remove all -g in CFLAGS=${CFLAGS-"-O2"}

* gcc/
- Remove all references to -g and -g1 - we don't need debugging flags.

** Remove the -g. Size should decrease.
-g is "add debug symbols". Remove that and the binary will significantly
reduce in size. Anyway the "strip" command will also do that AFTER build.
But I suggest just removing the -g if not in debug mode.

Build binary:

this settings belongs to a c3600 machine pa2.0 Risc


gmake distclean
./configure --prefix=/opt/gcc --disable-threads --enable-shared \
--with-gnu-as --with-as=/opt/binutils/bin/as
gmake CFLAGS='-O2 -fomit-frame-pointer -march=2.0 -mschedule=8000 \
-mgas -s -pipe' \
LIBCFLAGS='-g -O2 -fomit-frame-pointer -march=2.0 -mschedule=8000 -mgas' \
LIBCXXFLAGS='-g -O2 -fomit-frame-pointer -fno-implicit-templates -march=2.0
-mschedule=8000 -mgas' bootstrap
gmake install

output of the spec file on hp-ux 10.20:

# /opt/gcc/bin/gcc -v
Reading specs from gcc/bin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.4/specs
with:./configure --prefix=/opt/gcc --disable-threads --enable-shared --with-
gnu-as --with-as=/opt/binutils/bin/as
Thread model: single
gcc version 3.0.4

output of the spec file on hp-ux 11.00:

# /opt/gcc/bin/gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.4/specs
Configured with:
./configure --prefix=/opt/gcc --disable-threads--enable-shared --with-gnu-as
Thread model: single
gcc version 3.0.4

Martin Gansser

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]