This is the mail archive of the gcc-help@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]

-m64 executable states "Killed" with 20000904 on Solaris 2.7


Hi Folks,

despite boostrap and install errors I got gcc working for 32 bit,
but the -m64 executable returns a "Killed" message to me.

Any hints ?

Thanks

Stefan


Reading specs from
/tools/sandbox/gnu_sun/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
GNU assembler version 2.9.1 (sparc-sun-solaris2.5.1), using BFD version
2.9.1
GNU ld version 2.9.1 (with BFD 2.9.1)

../binutils-2.10/configure --prefix=/tools/sandbox/gnu/egcs-20000904-sun

../egcs-20000904/configure --prefix=/tools/sandbox/gnu/egcs-20000904-sun
--with-gnu-as --with-gnu-ld
--with-as=/tools/sandbox/gnu/egcs-20000904-sun/bin/as
--with-ld=/tools/sandbox/gnu/egcs-20000904-sun/bin/ld
--enable-languages=c++

( "just" using --prefix and --with-gnu-as and --with-gnu-ld will NOT
pick up as and ld
  from the --prefix location and thus will result in my previous problem
that gcc will
  pass the wrong architecture to as, USE --with-as, --with-ld, this is
NOT mentioned
  in the FAQ )

make bootstrap

gmake[4]: Entering directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/sparcv9/libiberty'
gmake[4]: *** No rule to make target `all'.  Stop.
gmake[4]: Leaving directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/sparcv9/libiberty'
gmake[3]: *** [multi-do] Error 1
gmake[3]: Leaving directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/libiberty'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/libiberty'
gmake[1]: *** [all-target-libiberty] Error 2
gmake[1]: Leaving directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile'
gmake: *** [bootstrap] Error 2


make install  (ignoring the errors during make bootstrap)

gmake[1]: Entering directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/libio'
rootme=`pwd`/ ; export rootme ; \
if [ -z "" ]; then \
  if [ "_G_config.h" != "" ]; then \
    if [ xno = xyes ]; then \
      rm -f
/tools/sandbox/gnu/egcs-20000904-sun/include/g++-3/_G_config.h ; \
      /bin/sh /tools/sandbox/gnu/egcs-20000904/install-sh -c -m 644
_G_config.h
/tools/sandbox/gnu/egcs-20000904-sun/include/g++-3/_G_config.h || exit
1; \
    else \
      rm -f
/tools/sandbox/gnu/egcs-20000904-sun/sparc-sun-solaris2.7/include/_G_config.h
; \
      /bin/sh /tools/sandbox/gnu/egcs-20000904/install-sh -c -m 644
_G_config.h
/tools/sandbox/gnu/egcs-20000904-sun/sparc-sun-solaris2.7/include/_G_config.h
|| exit 1; \
    fi; \
  else true; \
  fi ; \
  cd ../../../egcs-20000904/libio; \
  for FILE in *.h; do if [ $FILE != _G_config.h ]; then \
    rm -f /tools/sandbox/gnu/egcs-20000904-sun/include/g++-3/$FILE ; \
    /bin/sh /tools/sandbox/gnu/egcs-20000904/install-sh -c -m 644 $FILE
/tools/sandbox/gnu/egcs-20000904-sun/include/g++-3/$FILE ; \
    chmod a-x /tools/sandbox/gnu/egcs-20000904-sun/include/g++-3/$FILE ;
\
  else true; fi; done ; \
else true; \
fi
install:  _G_config.h does not exist
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory
`/tools/sandbox/gnu/egcs-20000904-sun-compile/sparc-sun-solaris2.7/libio'
gmake: *** [install-target-libio] Error 2


Since the compiler got installed, I gave it a try with the following
testprogram.

#include <stdio.h>
#include <stdlib.h>

int main( int argc, char **argv )
{
  int *pint;

  printf("%d\n", sizeof(pint));
}

warthog:gnu> gcc test.c
warthog:gnu> ./a.out
4
warthog:gnu> gcc -m64 test.c
/tools/sandbox/gnu/egcs-20000904-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/sparcv9/libgcc.a:
could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
warthog:gnu> ranlib
/tools/sandbox/gnu/egcs-20000904-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/sparcv9/libgcc.a
warthog:gnu> !gcc
gcc -m64 test.c
warthog:gnu> ./a.out
Killed
-- 
-------------------------------------------------------------------
Stefan Thiede              Tel:   +1 (408) 991-5619
Philips Semiconductors     Fax:   +1 (408) 991-5589
811 E. Arques Avenue
M/S 42, P.O. Box 3409     mailto: Stefan.Thiede@sv.sc.philips.com
Sunnyvale, CA 94048-3409  seri  :        thiede@usmtvsc1

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