Date: Wed, 6 Apr 94 09:22:36 +0200 From: kuku AT acds DOT physik DOT rwth-aachen DOT de (Christoph Kukulies) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: cross environment (again) I have managed to build the binutils gas, xgcc, ld, nm, strip, ar, ranlib, size and friends on my FreeBSD system. I also double checked to be sure I had all configur.bat and makefile.dos relevant patches (as well as the .h and .h patches) applied though this may be still prone to human errors. ld -V gives: ld version 2.2 (with BFD 2.2) Supported emulations: go32 i386coff ld: No input files main.c is a simple hello world program. special>xgcc -v -c main.c Reading specs from /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/specs gcc version 2.5.8 /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=5 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS main.c /var/tmp/cc027175.i GNU CPP version 2.5.8 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/i386-go32-freebsd/include /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/include /usr/include End of search list. /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/cc1 /var/tmp/cc027175.i -fno-builtin -quiet -dumpbase main.c -version -o /var/tmp/cc027175.s GNU C version 2.5.8 (80386, BSD syntax) compiled by GNU C version 2.4.5. /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/as -o main.o /var/tmp/cc027175.s special> /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/as -v GNU assembler version 2.1 (i386-FreeBSD-go32) ^C special> special> make ldtest /usr/local/i386-FreeBSD-go32/bin/ld -v -o main /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/crt0.o -L/usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8 main.o -lgcc -lc -lgcc ld version 2.2 (with BFD 2.2) attempt to open /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/crt0.o succeeded /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/crt0.o attempt to open main.o succeeded main.o attempt to open /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/libgcc.a succeeded attempt to open /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/libc.a succeeded ctordtor.o exit.o flsbuf.o fstat.o infoblk.o isatty.o malloc.o onexit.o printf.o sbrk.o setstack.o turbo.o write.o _exit.o bcopy.o bzero.o close.o doprnt.o dosmem.o errno.o findiop.o getdtabl.o getpages.o memchr.o modf.o strcpy.o strlen.o _setmode.o ctype.o attempt to open /usr/local/lib/gcc-lib/i386-go32-freebsd/2.5.8/libgcc.a succeeded *** Signal 11 Stop. special> I can the heck not get rid of this (null pointer) reference in binutils/bfd/aout32.c. DJ, you said I don't have to configure i386-aout. It isn't configured but the linker still has a.out support (so does the DJGPP linker) since I always have been able to link a.out objects coming from my FreeBSD system. The libraries are all from the DJGPP dirstribution, so is the crt0.o. the main.o is a xgcc/gas-2.2 Has anyone out there successfully built a cross environment for DJGPP 1.11 ? Excuse the lengthy posting. --Chris Christoph P. U. Kukulies kuku AT acds DOT physik DOT rwth-aachen DOT de