This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
i386 tools build on CygWin
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] i386 tools build on CygWin
- From: Marini Paolo <Paolo dot Marini at icn dot siemens dot it>
- Date: Fri, 28 Jul 2000 12:24:30 +0200
- Reply-to: paolom at prisma-eng dot it
Hello,
I finally compiled the gcc-2.95.2 on an NT4 box, following the
instructions. It did not compile on a WIN2K box, indeed.
Concerning the GDB (with Insight), the make.out says (when linking
GDB.EXE):
gcc -g -O2 -Wl,--subsystem,console -o gdb.exe main.o libgdb.a
../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a
./../intl/libintl.a ../libiberty/libiberty.a `if test -r
../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else
echo -ltermcap; fi` ../libgui/src/libgui.a
-L/tmp/build/gdb/itcl/itcl/win -litcl30 -L/tmp/build/gdb/itcl/itk/win
-litk30 -L/tmp/build/gdb/tix/win/tcl8.0 -ltix4180
-L/tmp/build/gdb/tk/win -ltk80 -L/tmp/build/gdb/tcl/win -ltcl80 -lm
-lm ../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32
-ladvapi32
libgdb.a(gdbtk.o): In function `gdbtk_init':
/src/gdb/insight-5.0/gdb/gdbtk/generic/gdbtk.c:433: undefined reference
to `Tix_Init'
/src/gdb/insight-5.0/gdb/gdbtk/generic/gdbtk.c:435: undefined reference
to `Tix_Init'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory `/tmp/build/gdb/gdb'
make: *** [all-gdb] Error 2
make: Leaving directory `/tmp/build/gdb'
I linked it with the following script:
gcc -v -O2 -g -Wl,--subsystem,console -o gdb.exe main.o \
-L/tmp/build/gdb/itcl/itcl/win \
-L/tmp/build/gdb/itcl/itk/win \
-L/tmp/build/gdb/tix/win/tcl8.0 \
-L/tmp/build/gdb/tk/win \
-L/tmp/build/gdb/tcl/win \
libgdb.a ../bfd/libbfd.a ../readline/libreadline.a \
../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty.a \
../tix/win/tcl8.0/libtix4180.a \
-ltermcap \
../libgui/src/libgui.a \
-litcl30 -litk30 -ltk80 -ltcl80 -ltix4180 \
-lm ../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32
-ladvapi32
forcing the libtix4180.a to be linked not as a library, and the GDB.EXE
went out. Continuing compilation with the make all install worked fine.
Paolo Marini