public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 3.4.6 build failure Solaris 5.8
@ 2009-07-28 17:21 Shaun Deacon
  2009-07-30  8:29 ` Andrew Haley
  0 siblings, 1 reply; 3+ messages in thread
From: Shaun Deacon @ 2009-07-28 17:21 UTC (permalink / raw)
  To: gcc-help


Hi,

I posted this on gcc-java but didn't receive any replies. Sorry for
cross-posting, but perhaps this is the more appropriate list...

I'm currently trying to build gcc 3.4.6 on a Solaris 5.8 box for a colleague
who requires this version and gcj (our default gcc is built for c, c++, and
fortran). However, I'm getting the following error and haven't found any
clues in any forums :

<snip>

/home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc
-B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include -m64 -DHAVE_CONFIG_H -I.
-I../../../../gcc-3.4.6/libjava -I./include -I./gcj
-I../../../../gcc-3.4.6/libjava -Iinclude
-I../../../../gcc-3.4.6/libjava/include
-I/home/sdeacon/tools/gcc/gcc-3.4.6/boehm-gc/include -DGC_SOLARIS_THREADS=1
-DGC_SOLARIS_PTHREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1
-DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1
-I../../../../gcc-3.4.6/libjava/libltdl
-I../../../../gcc-3.4.6/libjava/libltdl
-I../../../../gcc-3.4.6/libjava/.././libjava/../gcc
-I../../../../gcc-3.4.6/libjava/../zlib
-I../../../../gcc-3.4.6/libjava/../libffi/include -I../libffi/include -O2 -O
-I/usr/local/include -fno-rtti -fnon-call-exceptions
-fdollars-in-identifiers -Wswitch-enum -W -Wall -D_GNU_SOURCE
-DPREFIX=\"/home/sdeacon/gcc\" -DLIBDIR=\"/home/sdeacon/gcc/lib\"
-DBOOT_CLASS_PATH=\"/home/sdeacon/gcc/share/java/libgcj-3.4.6.jar\" -g -O2
-m64 -Wp,-MD,.deps/posix.pp -c ../../../../gcc-3.4.6/libjava/posix.cc -o
posix.o >/dev/null 2>&1
Creating list of files to link...
/bin/sh ./libtool --tag=CXX --mode=link
/home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc
-B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include  -m64
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava -g -O2 
-m64 -m64 -o libgcj.la -objectlist libgcj.objectlist \
../boehm-gc/libgcjgc_convenience.la ../libffi/libffi_convenience.la
../zlib/libzgcj_convenience.la \
-rpath /home/sdeacon/gcc/lib/sparcv9 -rpath /home/sdeacon/gcc/lib/sparcv9 
-lpthread -lrt ./libltdl/libltdlc.la  -version-info `grep -v '^#'
../../../../gcc-3.4.6/libjava/libtool-version`
libtool: link: link input file `' does not exist
gmake[5]: *** [libgcj.la] Error 1
gmake[5]: Leaving directory
`/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava'
gmake[3]: *** [multi-do] Error 1
gmake[3]: Leaving directory
`/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava'
gmake[2]: *** [all-multi] Error 2
gmake[2]: Leaving directory
`/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/home/sdeacon/tools/gcc/build'
gmake: *** [bootstrap-lean] Error 2

My build configuration was as follows :

./configure --prefix=/home/sdeacon/gcc --enable-shared
--enable-languages=c,c++,java --with-libiconv-prefix=/usr/local

The error occurs with both 'make bootstrap' and 'make bootstrap-lean'

The version of gcc used for the build is 3.4.6 with the following config :

Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix

Any suggestions would be most appreciated.

Thanks,
Shaun

-- 
View this message in context: http://www.nabble.com/gcc-3.4.6-build-failure-Solaris-5.8-tp24704058p24704058.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc 3.4.6 build failure Solaris 5.8
  2009-07-28 17:21 gcc 3.4.6 build failure Solaris 5.8 Shaun Deacon
@ 2009-07-30  8:29 ` Andrew Haley
  2009-08-04 21:37   ` Shaun Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Haley @ 2009-07-30  8:29 UTC (permalink / raw)
  To: Shaun Deacon; +Cc: gcc-help

Shaun Deacon wrote:
> Hi,
> 
> I posted this on gcc-java but didn't receive any replies. Sorry for
> cross-posting, but perhaps this is the more appropriate list...
> 
> I'm currently trying to build gcc 3.4.6 on a Solaris 5.8 box for a colleague
> who requires this version and gcj (our default gcc is built for c, c++, and
> fortran). However, I'm getting the following error and haven't found any
> clues in any forums :
> 
> <snip>
> 
> /home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc
> -B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++
> -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
> -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
> -B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/
> -B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem
> /home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem
> /home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include -m64 -DHAVE_CONFIG_H -I.
> -I../../../../gcc-3.4.6/libjava -I./include -I./gcj
> -I../../../../gcc-3.4.6/libjava -Iinclude
> -I../../../../gcc-3.4.6/libjava/include
> -I/home/sdeacon/tools/gcc/gcc-3.4.6/boehm-gc/include -DGC_SOLARIS_THREADS=1
> -DGC_SOLARIS_PTHREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1
> -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1
> -I../../../../gcc-3.4.6/libjava/libltdl
> -I../../../../gcc-3.4.6/libjava/libltdl
> -I../../../../gcc-3.4.6/libjava/.././libjava/../gcc
> -I../../../../gcc-3.4.6/libjava/../zlib
> -I../../../../gcc-3.4.6/libjava/../libffi/include -I../libffi/include -O2 -O
> -I/usr/local/include -fno-rtti -fnon-call-exceptions
> -fdollars-in-identifiers -Wswitch-enum -W -Wall -D_GNU_SOURCE
> -DPREFIX=\"/home/sdeacon/gcc\" -DLIBDIR=\"/home/sdeacon/gcc/lib\"
> -DBOOT_CLASS_PATH=\"/home/sdeacon/gcc/share/java/libgcj-3.4.6.jar\" -g -O2
> -m64 -Wp,-MD,.deps/posix.pp -c ../../../../gcc-3.4.6/libjava/posix.cc -o
> posix.o >/dev/null 2>&1
> Creating list of files to link...
> /bin/sh ./libtool --tag=CXX --mode=link
> /home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc
> -B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++
> -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
> -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
> -B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/
> -B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem
> /home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem
> /home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include  -m64
> -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava -g -O2 
> -m64 -m64 -o libgcj.la -objectlist libgcj.objectlist \
> ../boehm-gc/libgcjgc_convenience.la ../libffi/libffi_convenience.la
> ../zlib/libzgcj_convenience.la \
> -rpath /home/sdeacon/gcc/lib/sparcv9 -rpath /home/sdeacon/gcc/lib/sparcv9 
> -lpthread -lrt ./libltdl/libltdlc.la  -version-info `grep -v '^#'
> ../../../../gcc-3.4.6/libjava/libtool-version`
> libtool: link: link input file `' does not exist
> gmake[5]: *** [libgcj.la] Error 1
> gmake[5]: Leaving directory
> `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory
> `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava'
> gmake[3]: *** [multi-do] Error 1
> gmake[3]: Leaving directory
> `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava'
> gmake[2]: *** [all-multi] Error 2
> gmake[2]: Leaving directory
> `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava'
> gmake[1]: *** [all-target-libjava] Error 2
> gmake[1]: Leaving directory `/home/sdeacon/tools/gcc/build'
> gmake: *** [bootstrap-lean] Error 2
> 
> My build configuration was as follows :
> 
> ./configure --prefix=/home/sdeacon/gcc --enable-shared
> --enable-languages=c,c++,java --with-libiconv-prefix=/usr/local
> 
> The error occurs with both 'make bootstrap' and 'make bootstrap-lean'
> 
> The version of gcc used for the build is 3.4.6 with the following config :
> 
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
> Thread model: posix
> 
> Any suggestions would be most appreciated.

Well, it's a libtool bug in a very old version of gcc.

To start with, try running the command that starts with "bin/sh ./libtool " on
its own, and we can try to figure out what's going wrong.

This may be hard to fix, and nobody will be very enthusiastic about exhuming the
corpse of gcc 3.4.6.

Andrew.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc 3.4.6 build failure Solaris 5.8
  2009-07-30  8:29 ` Andrew Haley
@ 2009-08-04 21:37   ` Shaun Deacon
  0 siblings, 0 replies; 3+ messages in thread
From: Shaun Deacon @ 2009-08-04 21:37 UTC (permalink / raw)
  To: gcc-help


Hi Andrew,


Andrew Haley wrote:
> 
> Well, it's a libtool bug in a very old version of gcc.
> To start with, try running the command that starts with "bin/sh ./libtool
> " on
> its own, and we can try to figure out what's going wrong.
> 

When I run the '/bin/sh ./libtool ...' command standalone in the same
directory, the same error occurs :

  libtool: link: link input file `' does not exist

I did notice 'libgcj.objectlist' doesn't exist, is this the input file that
is being referred to ?

Thanks for your help,
Shaun

For reference I ran the following :

%> cd /home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava
%> /bin/sh ./libtool --tag=CXX --mode=link
/home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc
-B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/
-B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem
/home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include  -m64
-L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava -g -O2 
-m64 -m64 -o libgcj.la -objectlist libgcj.objectlist \
../boehm-gc/libgcjgc_convenience.la ../libffi/libffi_convenience.la
../zlib/libzgcj_convenience.la \
-rpath /home/sdeacon/gcc/lib/sparcv9 -rpath /home/sdeacon/gcc/lib/sparcv9 
-lpthread -lrt ./libltdl/libltdlc.la  -version-info `grep -v '^#'
../../../../gcc-3.4.6/libjava/libtool-version`

-- 
View this message in context: http://www.nabble.com/gcc-3.4.6-build-failure-Solaris-5.8-tp24704058p24816767.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-04 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-28 17:21 gcc 3.4.6 build failure Solaris 5.8 Shaun Deacon
2009-07-30  8:29 ` Andrew Haley
2009-08-04 21:37   ` Shaun Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).