Compiling GCC 4.3.2 on Solaris 8 Sparc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Attempting to compile GCC 4.3.2 (GCC 3.4.6 is currently installed).  GMP
4.2.1 and MPFR 2.3.2 were installed with no real issues.  Configure and
make details follow:

Searching archives and Google for the errors I am seeing has not turned
up anything useful.

Thanks,

Configured with:
../gcc-4.3.2/configure 
--prefix=/usr/local/gcc-4.3.2 
--disable-shared 
--enable-threads=posix 
--enable-__cxa_atexit 
--enable-languages=c,c++,java

Make output (from nth run of make):

[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[2]: Entering directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[3]: Entering directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
rm -f stage_current
make[3]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[2]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[2]: Entering directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libiberty'
make[4]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libiberty/testsuite'
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libiberty'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/intl'
rm -f stamp-h1
/bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/intl'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/libi
berty'
make[4]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/libi
berty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/libi
berty/testsuite'
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/libi
berty'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/fixi
ncludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/build-sparc-sun-solaris2.8/fixi
ncludes'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g
-fkeep-inline-functions" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2"
"CFLAGS_FOR_TARGET=-O2 -g -g -O2  " "INSTALL=/usr/local/bin/install -c"
"INSTALL_DATA=/usr/local/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/local/bin/install -c"
"INSTALL_SCRIPT=/usr/local/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g
-fkeep-inline-functions" "LIBCFLAGS_FOR_TARGET=-O2 -g -g -O2  "
"MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET="
"SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS="
"exec_prefix=/usr/local/gcc-4.3.2" "infodir=/usr/local/gcc-4.3.2/info"
"libdir=/usr/local/gcc-4.3.2/lib" "prefix=/usr/local/gcc-4.3.2"
"tooldir=/usr/local/gcc-4.3.2/sparc-sun-solaris2.8" "AR=ar" "AS=as"
"CC=gcc" "CXX=g++" "LD=/usr/ccs/bin/ld" "LIBCFLAGS=-g
-fkeep-inline-functions" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR="
DO=all multi-do # make
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/zlib'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libcpp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libcpp'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libdecnumber'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/libdecnumber'
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
make[3]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
Checking multilib configuration for libgcc...
make[3]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
make[4]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
if [ -z "sparcv9" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../gcc-4.3.2/libgcc; ${PWDCMD-pwd}`/; export
srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/xgcc
-B/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/bin/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/lib/ -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/include -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/sys-include"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make "AR=ar" "AR_FLAGS=rc"
"CC=/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/xgcc
-B/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/bin/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/lib/ -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/include -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/sys-include" "CFLAGS=-g
-fkeep-inline-functions" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES="
"INSTALL=/usr/local/bin/install -c" "INSTALL_DATA=/usr/local/bin/install
-c -m 644" "INSTALL_PROGRAM=/usr/local/bin/install -c" "LDFLAGS="
"LOADLIBES=" "RANLIB=ranlib" "SHELL=/bin/bash"
"prefix=/usr/local/gcc-4.3.2" "exec_prefix=/usr/local/gcc-4.3.2"
"libdir=/usr/local/gcc-4.3.2/lib"
"libsubdir=/usr/local/gcc-4.3.2/lib/gcc/sparc-sun-solaris2.8/4.3.2"
"tooldir=/usr/local/gcc-4.3.2/sparc-sun-solaris2.8" \
                        CFLAGS="-g -fkeep-inline-functions ${flags}" \
                        CCASFLAGS=" ${flags}" \
                        FCFLAGS=" ${flags}" \
                        FFLAGS=" ${flags}" \
                        ADAFLAGS=" ${flags}" \
                        prefix="/usr/local/gcc-4.3.2" \
                        exec_prefix="/usr/local/gcc-4.3.2" \
                        GCJFLAGS=" ${flags}" \
                        CXXFLAGS="(CXXFLAGS_FOR_TARGET) ${flags}" \
                        LIBCFLAGS="-g -fkeep-inline-functions ${flags}"
\
                        LIBCXXFLAGS="(LIBCXXFLAGS_FOR_TARGET) ${flags}"
\
                        LDFLAGS=" ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/local/bin/install -c" \
                        INSTALL_DATA="/usr/local/bin/install -c -m 644"
\
                        INSTALL_PROGRAM="/usr/local/bin/install -c" \
                        INSTALL_SCRIPT="/usr/local/bin/install -c" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[5]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/sparcv9/li
bgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Recursively invoke make in the GCC directory to build any
# startfiles (for now).  We must do this just once, passing
# it all the GCC_EXTRA_PARTS as simultaneous goal targets,
# so that rules which cannot execute simultaneously are properly
# serialized.  We indirect through T_TARGET in case any multilib
# directories contain an equals sign, to prevent make from
# interpreting any of the goals as variable assignments.
# We must use cd && make rather than make -C, or else the stage
# number will be embedded in debug information.
T=`${PWDCMD-pwd}`/ \
&& cd ../../.././gcc \
&& make
GCC_FOR_TARGET="/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/xgcc
-B/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/bin/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/lib/ -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/include -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/sys-include" \
  MULTILIB_CFLAGS="-g -fkeep-inline-functions -m64" \
  T=$T \
  T_TARGET="${T}crt1.o ${T}crtbegin.o ${T}crtend.o ${T}crtfastmath.o
${T}crti.o ${T}crtn.o ${T}gcrt1.o ${T}gmon.o" \
  T_TARGET
make[6]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
make[6]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash ../../../../gcc-4.3.2/libgcc/../mkinstalldirs
../../.././gcc/sparcv9
parts="crt1.o crtbegin.o crtend.o crtfastmath.o crti.o crtn.o gcrt1.o
gmon.o";                          \
for file in $parts; do                                  \
  rm -f ../../.././gcc/sparcv9/$file;           \
  /usr/local/bin/install -c -m 644 $file ../../.././gcc/sparcv9/;
\
done
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
make install-leaf DESTDIR=../../.././gcc \
  slibdir= libsubdir= MULTIOSDIR=sparcv9
make[6]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/sparcv9/li
bgcc'
/bin/bash ../../../../gcc-4.3.2/libgcc/../mkinstalldirs
../../.././gcc/sparcv9
/usr/local/bin/install -c -m 644 libgcc.a ../../.././gcc/sparcv9/
chmod 644 ../../.././gcc/sparcv9/libgcc.a
ranlib ../../.././gcc/sparcv9/libgcc.a
/usr/local/bin/install -c -m 644 libgcov.a ../../.././gcc/sparcv9/
chmod 644 ../../.././gcc/sparcv9/libgcov.a
ranlib ../../.././gcc/sparcv9/libgcov.a
parts="crt1.o crtbegin.o crtend.o crtfastmath.o crti.o crtn.o gcrt1.o
gmon.o";                          \
for file in $parts; do                                  \
  rm -f ../../.././gcc/sparcv9/$file;           \
  /usr/local/bin/install -c -m 644 $file ../../.././gcc/sparcv9/;
\
done
make[6]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/sparcv9/li
bgcc'
make[5]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/sparcv9/li
bgcc'
make[4]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
# Recursively invoke make in the GCC directory to build any
# startfiles (for now).  We must do this just once, passing
# it all the GCC_EXTRA_PARTS as simultaneous goal targets,
# so that rules which cannot execute simultaneously are properly
# serialized.  We indirect through T_TARGET in case any multilib
# directories contain an equals sign, to prevent make from
# interpreting any of the goals as variable assignments.
# We must use cd && make rather than make -C, or else the stage
# number will be embedded in debug information.
T=`${PWDCMD-pwd}`/ \
&& cd ../.././gcc \
&& make
GCC_FOR_TARGET="/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/xgcc
-B/tmp/mjhuber/work/objdir-SunOS5.8-sparc/./gcc/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/bin/
-B/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/lib/ -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/include -isystem
/usr/local/gcc-4.3.2/sparc-sun-solaris2.8/sys-include" \
  MULTILIB_CFLAGS="-g -fkeep-inline-functions" \
  T=$T \
  T_TARGET="${T}crt1.o ${T}crtbegin.o ${T}crtend.o ${T}crtfastmath.o
${T}crti.o ${T}crtn.o ${T}gcrt1.o ${T}gmon.o" \
  T_TARGET
/bin/bash: -c: line 0: syntax error near unexpected token
`AR_FOR_TARGET'
/bin/bash: -c: line 0: `if [ -f
/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc/../binutils/ar ] ; then echo
/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc/../binutils/ar ; else if [
"sparc-sun-solaris2.8" = "sparc-sun-solaris2.8" ] ; then echo
(AR_FOR_TARGET); else t='s,y,y,'; echo ar | sed -e $t ; fi; fi'
/bin/bash: -c: line 0: syntax error near unexpected token
`RANLIB_FOR_TARGET'
/bin/bash: -c: line 0: `if [ -f
/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc/../binutils/ranlib ] ; then
echo /tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc/../binutils/ranlib ;
else if [ "sparc-sun-solaris2.8" = "sparc-sun-solaris2.8" ] ; then echo
(RANLIB_FOR_TARGET); else t='s,y,y,'; echo ranlib | sed -e $t ; fi; fi'
make[4]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
make[4]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc/gcc'
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash ../../../gcc-4.3.2/libgcc/../mkinstalldirs ../.././gcc
parts="crt1.o crtbegin.o crtend.o crtfastmath.o crti.o crtn.o gcrt1.o
gmon.o";                          \
for file in $parts; do                                  \
  rm -f ../.././gcc/$file;              \
  /usr/local/bin/install -c -m 644 $file ../.././gcc/;  \
done
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
make install-leaf DESTDIR=../.././gcc \
  slibdir= libsubdir= MULTIOSDIR=.
/bin/bash: -c: line 0: syntax error near unexpected token `-dumpversion'
/bin/bash: -c: line 0: `(CC_FOR_TARGET) -dumpversion'
/bin/bash: -c: line 0: syntax error near unexpected token `-g'
/bin/bash: -c: line 0: `(CC_FOR_TARGET) -g -fkeep-inline-functions
-print-multi-directory'
/bin/bash: -c: line 0: syntax error near unexpected token `-g'
/bin/bash: -c: line 0: `(CC_FOR_TARGET) -g -fkeep-inline-functions
-print-multi-os-directory'
make[4]: Entering directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
/bin/bash ../../../gcc-4.3.2/libgcc/../mkinstalldirs ../.././gcc
/usr/local/bin/install -c -m 644 libgcc.a ../.././gcc/
chmod 644 ../.././gcc/libgcc.a
(RANLIB_FOR_TARGET) ../.././gcc/libgcc.a
/bin/bash: -c: line 0: syntax error near unexpected token
`../.././gcc/libgcc.a'
/bin/bash: -c: line 0: `(RANLIB_FOR_TARGET) ../.././gcc/libgcc.a'
make[4]: *** [install-leaf] Error 2
make[4]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/tmp/mjhuber/work/objdir-SunOS5.8-sparc/sparc-sun-solaris2.8/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/mjhuber/work/objdir-SunOS5.8-sparc'
make: *** [all] Error 2

--
End of line


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux