SUMMARY: Building gcc 4.1.1




Sorry about being late on this summary. I was on vacation
the last 2 weeks sitting in my boat on trinity lake.

I received help from these kind folk, but before trying
their solutions, I removed the alphaev68-dec-osf5.1b/libjava
directory,
../configure --enable-shared --enable-libgcj --enable-threads=posix make bootstrap
make install...

and it works just fine. I tested it by compiling packages that
require gcc such as gnutar 1-13, and a few others.

My original post is below.

Thanks again for your help.

Bugs


------------------------------------
From spd at shiva.cps.unizar


You should force "configure" to use ksh:

- sh:

$ LS=ls
$ FOO=$($LS)
syntax error: `FOO=$' unexpected

- ksh:

~/ LS=ls
~/ FOO=$($LS)
~/ echo $FOO
[...ls output...]


otherwise, edit that shell script and replace $() syntax with ``
syntax.


---------------------------

From tjrc at sanger.ac. uk

Do you actually want the java compiler? I've had trouble with that on Tru64
before. If you don't want the java compiler, just tell the build system not
to build it, and you should be OK. I can't remember exactly which options
you need to make it do this, but the documentation that comes with the
source code in the doc/ subdirectory will tell you.

Tim

---------------------------

From J.Sainsbury at chem.usyd.edu. au

The #error statement seems to indicate a missing type or typedef of
the required size.

eg something like (basic_functions.h around line 150)

# if !defined(HAS_UINT32_T)
# error Need type which holds 32 bits
# endif

My guess is if you backtrack from this and define the missing #define in
config.h and supply the required typedef you may be able to it all
to compile.
But check the latest patches for the package as these things are often
fixed quite quickly.

---------------------------


From: Rainer Orth at TechFak.Uni-Bielefeld. DE

I don't know what you try to achieve here: --disable-libjava doesn't exist,
and would be just the opposite of --enable-libgcj. If you want to disable
building libjava, you should just use --disable-libgcj (which makes sense
since all libjava execution tests time out at the moment).

Besides, --enable-threads=posix is superfluous since it's the default.

..
..
..
../../../../libjava/classpath/configure: syntax error at line 11740: `QT_INCLUDE_DIR=$' unexpected
configure: error: /bin/sh '../../../../libjava/classpath/configure' failed for classpath

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

The actual code that it fails on is:
if test "x$HAVE_QT4" = "xyes"; then
QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"

Again, a non-portable construct has crept into the classpath configure
script. Replacing $(...) by `...` should work. Please file a bug at

http://gcc.gnu.org/bugzilla/

for this issue. As a workaround, you can configure and build with
CONFIG_SHELL set to either /bin/ksh (which might have some problems
nonetheless), or some copy of bash.

---------------------------


Bugs

Operating Systems Analyst for unix systems
Humboldt State Univ. Information Technology Services
Arcata, Calif.

email bb1@xxxxxxxxxxxx


On Fri, 23 Jun 2006, Bugs wrote:


Hello,
I have been trying to install gcc V4.1.1 on a ds25,
Tru64 5.1b PK5.

It builds for about 3-4 hours, then fails with the error
shown below.
If anyone has a successful build, could you send me your
configure and make arguments?

This is what I use:

gtar xvf gcc-4.1.1.tar
chown -R root.system gcc-4.1.1*
cd gcc-4.1.1
mkdir jun02
cd jun02
../configure --enable-shared --enable-libgcj --enable-threads=posix --disable-libjava
make -j 2 bootstrap


After a few hours:
.
.
.
configure: configuring in classpath
configure: running /bin/sh '../../../../libjava/classpath/configure' --prefix=/usr/local '--cache-file=./config.cache' '--build=alphaev68-dec-osf5.1b' '--host=alphaev68-dec-osf5.1b' '--target=alphaev68-dec-osf5.1b' '--enable-multilib' '--enable-shared' '--enable-libgcj' '--enable-threads=posix' '--disable-libjava' '--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' '--with-target-subdir=alphaev68-dec-osf5.1b' '--srcdir=../../../libjava' 'CPPFLAGS=' 'build_alias=alphaev68-dec-osf5.1b' 'host_alias=alphaev68-dec-osf5.1b' 'target_alias=alphaev68-dec-osf5.1b' --disable-load-library --disable-debug --enable-default-toolkit= --with-vm-classes=/local/prg/src/gcc-4.1.1/libjava:/local/prg/src/gcc-4.1.1/jun22/alphaev68-dec-osf5.1b/libjava --disable-core-jni --disable-examples --with-glibj=build --disable-gtk-peer --disable-qt-peer --enable-ltdl-convenience --with-auxdir=/local/prg/src/gcc-4.1.1 --cache-file=.././config.cache --srcdir=../../../../libjava/classpath
../../../../libjava/classpath/configure: syntax error at line 11740: `QT_INCLUDE_DIR=$' unexpected
configure: error: /bin/sh '../../../../libjava/classpath/configure' failed for classpath

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

The actual code that it fails on is:
if test "x$HAVE_QT4" = "xyes"; then
QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
.
.
.

Thanks for you help.


Bugs

Operating Systems Analyst for unix systems
Humboldt State Univ. Information Technology Services
Arcata, Calif.

email bb1@xxxxxxxxxxxx





Relevant Pages

  • SUMMARY: accounting error in 5.1b-3
    ... Over the weekend, I installed PK5 and ever since, I ... have not been able to process my accounting files. ... fails. ... Operating Systems Analyst for unix systems ...
    (Tru64-UNIX-Managers)
  • Building gcc 4.1.1
    ... It builds for about 3-4 hours, then fails with the error ... configure: configuring in classpath ... Operating Systems Analyst for unix systems ...
    (Tru64-UNIX-Managers)
  • accounting error in 5.1b-3
    ... Over the weekend, I installed PK5 and ever since, I ... have not been able to process my accounting files. ... fails. ... Operating Systems Analyst for unix systems ...
    (Tru64-UNIX-Managers)