This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: GCC 3.2.3 on Solaris 2.7


> > My bigger question is this:
> > 1. I want a compiler that can build me 32 & 64 bit executables
> > on single box.
> > 2. My base level support is Solaris 2.6
> > Can I even do this?
> 
> I think you need 2 compilers in any cases, unless you want to 
> hack GCC 
> itself.
> 
> > 1. Do I need a version hosted on 2.6 for all 32 bits
> > 2. A version hosted on a 64bit 2.7 (though it is 32 bit)
> > for all 64 bit output?
> >
> > I need to support 32 bits 2.6->2.9, 64 bits 2.7->2.9
> 
> Then build a native 32-bit compiler on the Solaris 2.6 
> machine and a native 
> 32/64-bit compiler on the Solaris 7 machine.  This would 
> greatly simplify 
> everything.
OK. This is what I also concluded. So I kicked of a build (twice)
and it churned for a while. It does not complete well. 

Here are my usual files...
Pls let me know if one needs more data.

thx
balaji

---------config.status------------
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
../configure
--with-gcc-version-trigger=/home/balaji/gcc-3.2.3/gcc/version.c
--host=sparc-sun-solaris2.7 --prefix=/home/balaji/gcc-64
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --disable-libgcj
--disable-nls --enable-languages=c,c++,objc --norecursion 
# using "mh-frag"

---------compile error------------

/home/balaji/gcc-3.2.3/objdir-64/gcc/xgcc
-B/home/balaji/gcc-3.2.3/objdir-64/gcc/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/bin/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/lib/ -isystem
/home/balaji/gcc-64/sparc-sun-solaris2.7/include -c -DHAVE_CONFIG_H -O2
-g -O2 -I. -I../../../libiberty/../include  -W -Wall -Wtraditional
-pedantic ../../../libiberty/sigsetmask.c
if [ x"" != x ]; then \
  /home/balaji/gcc-3.2.3/objdir-64/gcc/xgcc
-B/home/balaji/gcc-3.2.3/objdir-64/gcc/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/bin/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/lib/ -isystem
/home/balaji/gcc-64/sparc-sun-solaris2.7/include -c -DHAVE_CONFIG_H -O2
-g -O2 -I. -I../../../libiberty/../include  -W -Wall -Wtraditional
-pedantic  ../../../libiberty/vasprintf.c -o pic/vasprintf.o; \
else true; fi
/home/balaji/gcc-3.2.3/objdir-64/gcc/xgcc
-B/home/balaji/gcc-3.2.3/objdir-64/gcc/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/bin/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/lib/ -isystem
/home/balaji/gcc-64/sparc-sun-solaris2.7/include -c -DHAVE_CONFIG_H -O2
-g -O2 -I. -I../../../libiberty/../include  -W -Wall -Wtraditional
-pedantic ../../../libiberty/vasprintf.c
rm -f libiberty.a pic/libiberty.a
ar rc libiberty.a \
  regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o
getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o
make-temp-file.o objalloc.o obstack.o partition.o pexecute.o
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o
ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
asprintf.o mkstemps.o setenv.o sigsetmask.o vasprintf.o
true libiberty.a
if [ x"" != x ]; then \
  cd pic; \
  ar rc libiberty.a \
    regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o
choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o
fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o
lbasename.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o
ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
asprintf.o mkstemps.o setenv.o sigsetmask.o vasprintf.o; \
  true libiberty.a; \
  cd ..; \
else true; fi
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf
vfork waitpid bcmp bcopy bzero; do \
  for g in asprintf.o mkstemps.o setenv.o sigsetmask.o vasprintf.o ; do
\
    case "$g" in \
      *$f*) echo $g >> needed-list ;; \
    esac; \
  done; \
done
echo regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o
choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o
fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o
lbasename.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o
ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o >
required-list
gmake[3]: Entering directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/libiberty/testsui
te'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/libiberty/testsui
te'
gmake[3]: Entering directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/libiberty'
if [ -z "sparcv9" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd ../../../libiberty; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/balaji/gcc-3.2.3/objdir-64/gcc/xgcc
-B/home/balaji/gcc-3.2.3/objdir-64/gcc/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/bin/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/lib/ -isystem
/home/balaji/gcc-64/sparc-sun-solaris2.7/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}; gmake "AR=ar" "AR_FLAGS=rc"
"CC=/home/balaji/gcc-3.2.3/objdir-64/gcc/xgcc
-B/home/balaji/gcc-3.2.3/objdir-64/gcc/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/bin/
-B/home/balaji/gcc-64/sparc-sun-solaris2.7/lib/ -isystem
/home/balaji/gcc-64/sparc-sun-solaris2.7/include" "CFLAGS=-O2 -g -O2"
"DESTDIR=" "LIBCFLAGS=-O2 -g -O2" "EXTRA_OFILES=" "HDEFINES="
"INSTALL=/bin/sh /home/balaji/gcc-3.2.3/install-sh -c"
"INSTALL_DATA=/bin/sh /home/balaji/gcc-3.2.3/install-sh -c -m 644"
"INSTALL_PROGRAM=/bin/sh /home/balaji/gcc-3.2.3/install-sh -c "
"LDFLAGS=" "LOADLIBES=" "RANLIB=true" "SHELL=/bin/sh"
"prefix=/home/balaji/gcc-64" "exec_prefix=/home/balaji/gcc-64"
"libdir=/home/balaji/gcc-64/lib"
"libsubdir=/home/balaji/gcc-64/lib/gcc-lib/sparc-sun-solaris2.7/3.2.3"
"tooldir=/home/balaji/gcc-64/sparc-sun-solaris2.7" \
                        CFLAGS="-O2 -g -O2 ${flags}" \
                        prefix="/home/balaji/gcc-64" \
                        exec_prefix="/home/balaji/gcc-64" \
                        GCJFLAGS=" ${flags}" \
                        CXXFLAGS="-g -O2 ${flags}" \
                        LIBCFLAGS="-O2 -g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fno-implicit-templates
${flags}" \
                        LDFLAGS=" ${flags}" \
                        DESTDIR="" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
gmake[4]: Entering directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/sparcv9/libiberty
'
gmake[4]: *** No rule to make target `all'.  Stop.
gmake[4]: Leaving directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/sparcv9/libiberty
'
gmake[3]: *** [multi-do] Error 1
gmake[3]: Leaving directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/libiberty'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/home/balaji/gcc-3.2.3/objdir-64/sparc-sun-solaris2.7/libiberty'
gmake[1]: *** [all-target-libiberty] Error 2
gmake[1]: Leaving directory `/home/balaji/gcc-3.2.3/objdir-64'
gmake: *** [bootstrap] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]