Again, i didn't really test my patches.
However, i fetched your patches and failed to cross-link with VSTa 1.3.2
native crt0.o.
I'm cross-compiling with gcc2.6.1 (on host SunOS5.3, with native
gcc2.6.1) First, all of libobjc fails, because of repeated size_t
conflicts
# GCC was configured as follows:
../gcc-2.6.1/configure --verbose --host=sparc-solaris2 --target=i386-vsta --with-gcc --prefix=/netdisk/rigel.2/basile/xvsta --program-prefix=vsta_
echo host=sparc-unknown-solaris2 target=i386-unknown-vsta build=sparc-unknown-solaris2
# i copied include directories (and lib also) of vsta.tz appropriately
# example of size_t error
/netdisk/mimas.2/basile.tmp/Xvsta-Gcc/xgcc -B/netdisk/mimas.2/basile.tmp/Xvsta-Gcc/ -O -fgnu-runtime \
-c -DCROSS_COMPILE -DIN_GCC -DSVR4 -O2 -I./include -I. -I.. -I/netdisk/mimas.2/basile.tmp/gcc-2.6.1 -I/netdisk/mimas.2/basile.tmp/gcc-2.6.1/config /netdisk/mimas.2/basile.tmp/gcc-2.6.1/objc/Object.m
In file included from /netdisk/rigel.2/basile/xvsta/i386-vsta/include/stdio.h:7,
from /netdisk/mimas.2/basile.tmp/gcc-2.6.1/objc/typedstream.h:31,
from /netdisk/mimas.2/basile.tmp/gcc-2.6.1/objc/Object.h:30,
from /netdisk/mimas.2/basile.tmp/gcc-2.6.1/objc/Object.m:27:
/netdisk/rigel.2/basile/xvsta/i386-vsta/include/sys/types.h:20: redefinition of `size_t'
/netdisk/mimas.2/basile.tmp/Xvsta-Gcc/include/stddef.h:136: `size_t' previously declared here
# failure of crt0.o from VSTa
rosser ~/mimas.tmp/Xvsta-Gcc !46 20:08 % make -k cross-test LANGUAGES=c #
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -DSVR4 -O2 -I./include -c ../gcc-2.6.1/cross-test.c
## to make things clearer i've make -k cross-test LANGUAGES=c 'GCC_FOR_TARGET = ./xgcc -B./ -v'
## to just add the -v flag
./xgcc -B./ -v -DCROSS_COMPILE -DIN_GCC -DSVR4 -O2 -I./include -c ../gcc-2.6.1/cross-test.c
Reading specs from ./specs
gcc version 2.6.1
./cpp -lang-c -v -I./include -isystem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=6 -Dunix -Di386 -DVSTA -D__unix__ -D__i386__ -D__VSTA__ -D__unix -D__i386 -D__VSTA -Asystem(unix) -Asystem(vsta) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -DCROSS_COMPILE -DIN_GCC -DSVR4 ../gcc-2.6.1/cross-test.c /tmp/cca002KK.i
GNU CPP version 2.6.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
./include
./include
/netdisk/rigel.2/basile/xvsta/lib/gcc-lib/i386-vsta/2.6.1/include
/netdisk/rigel.2/basile/xvsta/lib/gcc-lib/i386-vsta/2.6.1/sys-include
/netdisk/rigel.2/basile/xvsta/i386-vsta/include
End of search list.
./cc1 /tmp/cca002KK.i -quiet -dumpbase cross-test.c -O2 -version -o /tmp/cca002KK.s
GNU C version 2.6.1 (80386, BSD syntax) compiled by GNU C version 2.6.1.
/netdisk/rigel.2/basile/xvsta/i386-vsta/bin/as -o cross-test.o /tmp/cca002KK.s
./xgcc -B./ -v -DCROSS_COMPILE -DIN_GCC -DSVR4 -O2 -I./include cross-test.o -o cross-test
Reading specs from ./specs
gcc version 2.6.1
/netdisk/rigel.2/basile/xvsta/i386-vsta/bin/ld -o cross-test /netdisk/rigel.2/basile/xvsta/i386-vsta/lib/crt0.o -L. -L/netdisk/rigel.2/basile/xvsta/i386-vsta/lib cross-test.o -lgcc -lc -lgcc
__main.o(.text+0x74): multiple definition of `__main'
/netdisk/rigel.2/basile/xvsta/i386-vsta/lib/crt0.o(.text+0x49): first defined here
_exit.o(.text+0xd): undefined reference to `_cleanup'
make: *** [cross-test] Error 1
The /netdisk/rigel.2/basile/xvsta/i386-vsta/lib/crt0.o is a copy of vsta-1.3.2's file.
I suppose i have to patch VSTa crt0.s & crt0srv.s for GCC 2 (actually
for g++ support of destructors and constructors).
-- Basile STARYNKEVITCH ---- Commissariat a l Energie Atomique DRN/DMT/SERMA * C.E. Saclay bat.470 * 91191 GIF/YVETTE CEDEX * France fax: (33) 1- 69.08.23.81; phone: (33) 1- 69.08.40.66 email: basile@soleil.serma.cea.fr; homephone: (33) 1- 46.65.45.53 N.B. Any opinions expressed here are solely mine, and not of my organization. N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA. Please cite a small part of my mail in all answers Veuillez citer une petite partie de mon courrier dans vos reponsesReceived on Thu Nov 10 10:52:11 1994
This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:10 PDT