niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Tru64 » Tru64 managers mail-list
Building gcc 4.1.1
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Bugs
*nix forums beginner


Joined: 02 May 2002
Posts: 42

PostPosted: Mon Jul 10, 2006 8:23 pm    Post subject: SUMMARY: Building gcc 4.1.1 Reply with quote

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.

..
..
..
Quote:
../../../../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@humboldt.edu


On Fri, 23 Jun 2006, Bugs wrote:

Quote:

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@humboldt.edu

Back to top
Bugs
*nix forums beginner


Joined: 02 May 2002
Posts: 42

PostPosted: Fri Jun 23, 2006 2:13 pm    Post subject: Building gcc 4.1.1 Reply with quote

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@humboldt.edu
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 6:50 am | All times are GMT
navigation Forum index » *nix » Tru64 » Tru64 managers mail-list
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Minor Annoyance Building mod_jk on Mac OS X Immanuel Tranz-Mischen Apache 1 Mon Aug 13, 2007 2:21 pm
No new posts Trouble building bison++/flex++ in Linux John S apps 0 Sun Jul 16, 2006 5:04 am
No new posts Building package from port, building package repository dutch disCo FreeBSD 2 Sat Jul 15, 2006 1:59 pm
No new posts Help needed on building read-only FreeBSD boot system Keve Nagy FreeBSD 0 Tue Jul 04, 2006 1:57 pm
No new posts building toolchain i386 - ld can't find crti.o Luki embedded 0 Mon Jul 03, 2006 9:00 am

Free Credit Score | Loans | Loans | Loans | Free Credit Report
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2300s ][ Queries: 20 (0.1199s) ][ GZIP on - Debug on ]