gcc(version 3.0.3) compilation on tru64 V5.1a

From: Padiyath Kumar <Kumar.Padiyath_at_psi.ch>
Date: Wed, 06 Feb 2002 12:37:04 +0100

  Hi,
  The following people answered my question. Many thanks. I have started the
installation with
  compaq cc compiler (latest version) and make commnad from compaq CD came
with Tru64 V5.1.
  I got error messahe during the make execution procedure.

  Command I used:
  =============

  env CC=cc ../gcc-3.0.3/configure ----enable-languages=c,c++,f77,objc
--enable-shared
  make bootstrap-lean
  
 Got the following messages and crashed: (What can be wrong?)
 ==============================

ln: ./cstddef and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cstddef are identical.
ln: ./cstdio and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cstdio are identical.
ln: ./cstdlib and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cstdlib are identical.
ln: ./cstring and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cstring are identical.
ln: ./ctime and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/ctime are identical.
ln: ./cwchar and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cwchar are identical.
ln: ./cwctype and
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstdc+
+-v3/include/std/cwctype are identical.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
============================================================================
=====
  When I executed the command 'make -dn' to find out the the last command
executed before the error occured
  I got the following info:

     output from make -dn command:
    ========================



/bin/sh ../libtool --tag CXX --mode=compile
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/gcc/g++ -B/var/cluster/
members/member0/tmp/GCC/gcc-3.0.3/gcc/ -nostdinc++
-L/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec
-osf5.1/libstdc++-v3/src
-L/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstd
c++-v3/src/.l
ibs -B/usr/local/alphaev56-dec-osf5.1/bin/
-B/usr/local/alphaev56-dec-osf5.1/lib/ -isystem /usr/local/alphaev56-de
c-osf5.1/include -nostdinc++
-I/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstd
c++-v3
/include/alphaev56-dec-osf5.1
-I/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1/libstd
c++-v3/i
nclude -I../libsupc++ -I../libmath -O2
-fno-implicit-templates -Wall -Wno-format
-W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g
-c wstring-inst.cc
TIME1(wstring-inst.lo)=Feb 6 12:31:14 2002
TIME1(wstring-inst.lo)=Wed Feb 6 12:31:14 2002
doname(../libmath/libmath.la, 4)
Looking for Single suffix rule.
Current working directory on exit from make is
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-dec-osf5.1
/libstdc++-v3/src
MAKE EXIT (1) at Wed Feb 6 12:31:14 2002
*** Exit 1Current working directory on exit from make is
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-
dec-osf5.1/libstdc++-v3
MAKE EXIT (1) at Wed Feb 6 12:31:14 2002
*** Exit 1Current working directory on exit from make is
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3/alphaev56-
dec-osf5.1/libstdc++-v3
MAKE EXIT (1) at Wed Feb 6 12:31:14 2002
*** Exit 1Current working directory on exit from make is
/var/cluster/members/member0/tmp/GCC/gcc-3.0.3
MAKE EXIT (1) at Wed Feb 6 12:31:14 2002

============================================================================
===============
      




Paul A Sand wrote:
==============

've done this. I didn't notice any problems. I used the
Compaq cc compiler. I also used GNU make, although I don't
recall if this was necessary. Steps were:

    gunzip < gcc-3.0.3.tar.gz | tar xf -
    mkdir obj
    cd obj
    env CC=cc ../gcc-3.0.3/configure
    gmake bootstrap-lean
    gmake install

... I had to fix some ownerships/protections in
/usr/local/lib/gcc-lib/alphaev56-dec-osf5.1/3.0.3/include
afterward, so you might want to check that.

If you have a lot of disk space you may able to use the
"bootstrap" target instead of "bootstrap-lean". Good luck,
hope this helps.


Chris Adams wrote:
=============

I had no trouble building gcc-3.0.3 on 5.1A. You need to use the Compaq
compiler (if you have a previous version of gcc it will screw up). I
built with:

gzip -dc gcc-3.0.3.tar.gz | tar -xf -
mkdir gcc-3.0.3-obj
cd gcc-3.0.3-obj
CC=cc ../gcc-3.0.3/configure --prefix=/usr/local
--enable-languages=c,c++,f77,objc --enable-shared
make bootstrap-lean
make install
mv /usr/local/lib/gcc-lib/*/*/lib*.so* /usr/local/lib

That should be all that is needed (you can tweak which languages you
want built on the configure line). I had to do the last line to get the
shared libraries in the correct place where the dynamic linker would
find them (or you can change configure to --disable-shared to avoid that
problem).


Richard Fairfield wrote:
================

Today I installed gcc 3.0.3 under Tru64 V5.1a. The installation
seemed to go well. As a test, I compiled a couple of test programs
using this new gcc installation. The programs seemed to compile
and run correctly.

Yes, you can use the Compac C compile to build gcc. In fact, I
think you have to do that. I remove any existing gcc installation
before building the new version of gcc, to make sure that the
old gcc version is not interfering with the new installation.

Rost, Werner [Werner.Rost_at_zfboge.com]

 am trying to compile gcc too - and I observe problems.

1. make of TU leads to error "line too long"
   Solution: Install GNU-make

cd /usr/local
gunzip make-3.79.1.tar.gz
tar -xvf make-3.79.1.tar
cd make-3.79.1
./configure
make
./make check
make install
make clean

result: /usr/local/bin/make


2. Install gcc

cd /usr/local

tar -xvf gcc-2.95.2.tar

# Konfigurieren
mkdir /usr/local/gcc
cd /usr/local/gcc
/usr/local/gcc-2.95.2/configure

# Build
/usr/local/make bootstrap

leads to error messages:

/usr/local/gcc/gcc/xgcc -B/usr/local/gcc/gcc/
-B/usr/local/alphaev56-dec-osf5.1/
bin/ -B/usr/local/alphaev56-dec-osf5.1/lib/ -isystem
/usr/local/alphaev56-dec-os
f5.1/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I.
-I../../../../gcc-3.0/libf2
c/libI77 -I.. -I../../../../gcc-3.0/libf2c/libI77/.. -DHAVE_CONFIG_H -g
-mieee
../../../../gcc-3.0/libf2c/libI77/backspace.c
In file included from ../../../../gcc-3.0/libf2c/libI77/fio.h:1,
                 from ../../../../gcc-3.0/libf2c/libI77/backspace.c:4:
/usr/local/gcc/gcc/include/stdio.h:241: parse error before "__va_list"
/usr/local/gcc/gcc/include/stdio.h:242: parse error before "__va_list"
/usr/local/gcc/gcc/include/stdio.h:243: parse error before "__va_list"
make[3]: *** [backspace.o] Error 1
make[3]: Leaving directory
`/usr/local/gcc/alphaev56-dec-osf5.1/libf2c/libI77'
make[2]: *** [i77] Error 2
make[2]: Leaving directory `/usr/local/gcc/alphaev56-dec-osf5.1/libf2c'
make[1]: *** [all-target-libf2c] Error 2
make[1]: Leaving directory `/usr/local/gcc'
make: *** [bootstrap] Error 2

 

I did not invetigate any time solving this problem, but I would be happy
about hints.
 
Xavier Mertens send the following link:
======================================

Please have a look at the following URL:
http://www.tru64unix.compaq.com/affinity/portability.html


Rost, Werner gave the following answer:
======================================

 
 http://sources.redhat.com/ml/bug-gnu-utils/2001-11/msg00394.html



 My question was:
=================

  Has any one compiled GCC V3.0.3 on Tru64 V5.1a?
  Is there any problems in Compiling? Can I use Compaq CC compiler?
  Please mention the necessary steps required.
 
   Thanks in advance,
     Kumar
Received on Wed Feb 06 2002 - 11:37:46 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT