error compiling gcc 3.1.0 on Solaris 2.8
Ziying Sherwin
sherwin@nlm.nih.gov
Tue Jun 4 13:58:00 GMT 2002
Thanks for the help. The directory /tmp is a tmpfs file-system. But even
after we built gcc on other directory, it still failed at the same
place. How did you get it built on Solaris? Thanks.
On Mon, 3 Jun 2002, Poul Petersen wrote:
>
> Is /tmp a tmpfs file-system? It's easy to check:
>
> bash-2.03# mount | grep ^/tmp
> /tmp on swap read/write/setuid/size=1000m/dev=2 on Sun Mar 17 21:05:03 2002
> ^^^^
>
> We had some really strange problems building gcc 3.1 on a solaris
> 2.8 machine in /tmp when tmp was swap. The build would fail with errors
> similar to yours, although most of the time it would fail with various "file
> not found" errors. When I would check, the files would indeed not be there,
> even though they *were* there when I unpacked the source. A good example is
> the autoconf binaries which would always disappear from the source
> directory. Incidentaly, are you using a separate directory for the source
> and object files? We also had a problem with "make install" and trying to
> use a relative path to configure. That is, with the structure:
>
> /tmp/gcc/gcc-3.1 source
> /tmp/gcc/obj object directory
>
> If from /tmp/gcc/obj I issued "../gcc-3.1/configure" then "make
> install" would fail with an error that it could not find "install-sh". Using
> the fully qualified path "/tmp/gcc/gcc-3.1/configure" worked fine though.
>
> Hope this helps,
>
> -poul
>
> > -----Original Message-----
> > From: Ziying Sherwin [mailto:sherwin@nlm.nih.gov]
> > Sent: Monday, June 03, 2002 2:03 PM
> > To: gcc-help@gcc.gnu.org
> > Subject: error compiling gcc 3.1.0 on Solaris 2.8
> >
> >
> >
> > We tried to build gcc 3.1.0 on our Solaris 2.8 machine. When
> > we were buiding
> > 32 bits compiler, we got the following error message:
> >
> > /tmp/gccbuild_32bit/gcc/xgcc -shared-libgcc
> > -B/tmp/gccbuild_32bit/gcc/ -nostdinc++
> > -L/tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v
> > 3/src
> > -L/tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v
> > 3/src/.libs
> > -B/depot/package/gcc_3.1.0_32bit/sparc-sun-solaris2.8/bin/
> > -B/depot/package/gcc_3.1.0_32bit/sparc-sun-solaris2.8/lib/
> > -isystem
> > /depot/package/gcc_3.1.0_32bit/sparc-sun-solaris2.8/include
> > -m64 -shared -nostdlib /tmp/gccbuild_32bit/gcc/sparcv9/crti.o
> > /usr/lib/sparcv9/values-Xa.o
> > /tmp/gccbuild_32bit/gcc/sparcv9/crtbegin.o .libs/globals.o
> > .libs/limits.o .libs/basic_file.o .libs/complex_io.o
> > .libs/ios.o .libs/strstream.o .libs/cmath.o .libs/bitset.o
> > .libs/functexcept.o .libs/stdexcept.o .libs/vterminate.o
> > .libs/c++locale.o .libs/locale.o .libs/localename.o
> > .libs/codecvt.o .libs/collate.o .libs/ctype.o
> > .libs/messages.o .libs/monetary.o .libs/numeric.o
> > .libs/time.o .libs/concept-inst.o .libs/locale-inst.o
> > .libs/misc-inst.o .libs/stl-inst.o .libs/string-inst.o
> > .libs/wstring-inst.o .libs/valarray-inst.o .libs/ext-inst.o
> > -Wl,--whole-archive ../libmath/.libs/libmath.a
> > ../libsupc++/.libs/libsupc++convenience.a
> > -Wl,--no-whole-archive
> > -L/tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v
> > 3/src
> > -L/tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v
> > 3/src/.libs -lm ../libmath/.libs/libmath.a -lm
> > ../libsupc++/.libs/libsupc++convenience.a -lm
> > -L/tmp/gccbuild_32bit/gcc/sparcv9 -L/tmp/gccbuild_32bit/gcc
> > -L/usr/ccs/bin/sparcv9 -L/usr/ccs/bin -L/usr/ccs/lib/sparcv9
> > -L/usr/ccs/lib -L/lib/sparcv9 -L/usr/lib/sparcv9
> > -lgcc_s_sparcv9 -lgcc_s_sparcv9 -lm -lgcc_s_sparcv9
> > -lgcc_s_sparcv9 -lc
> > /tmp/gccbuild_32bit/gcc/sparcv9/crtend.o
> > /tmp/gccbuild_32bit/gcc/sparcv9/crtn.o -Wl,-O1 -Wl,-soname
> > -Wl,libstdc++.so.4 -o .libs/libstdc++.so.4.0.0
> > .libs/globals.o: could not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > *** Error code 1
> > make: Fatal error: Command failed for target `libstdc++.la'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/sparcv9/libstdc++-v3
> > *** Error code 1
> > make: Fatal error: Command failed for target `multi-do'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/libstdc++-v3
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-multi'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/libstdc++-v3
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/libstdc++-v3
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive-am'
> > Current working directory
> > /tmp/gccbuild_32bit/sparc-sun-solaris2.8/libstdc++-v3
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-target-libstdc++-v3'
> >
> > Any ideas about what might go wrong? Thanks,
> >
> > I am not on the mailing list, please reply to sherwin@nlm.nih.gov.
> >
> > Ziying Sherwin
> >
>
More information about the Gcc-help
mailing list