This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

gdb/1993: gdbserver not building with cross-compiler


>Number:         1993
>Category:       gdb
>Synopsis:       gdbserver not building with cross-compiler
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 20 00:28:00 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     johoffry@yahoo.com
>Release:        gdb-6.3
>Organization:
>Environment:
uname -a
SunOS fwsbld03 5.8 Generic_117350-02 sun4u sparc SUNW,Sun-Fire-V240 Solaris

make --version
GNU Make 3.80

$CC --version
mips-linux-gcc (GCC) 3.2.3 with SiByte modifications
>Description:
setenv CC=/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc   (cross-compiler for mips-hardhat-linux)

untar/gzip into ~/gdb6.3

mkdir ~/buildserver

../gdb6.3/gdb/gdbserver/configure mips-hardhat-linux (here's the output:)

creating cache ./config.cache
checking for gcc... /usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc
checking whether the C compiler (/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc  ) works... yes
checking whether the C compiler (/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc  ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether /usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc accepts -g... yes
checking host system type... mips-hardhat-linux-gnu
checking target system type... mips-hardhat-linux-gnu
checking build system type... mips-hardhat-linux-gnu
checking for a BSD compatible install... /apps/public/bin/ginstall -c
checking how to run the C preprocessor... /usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -E
checking for ANSI C header files... yes
checking for sgtty.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for sys/reg.h... no
checking for string.h... yes
checking for proc_service.h... no
checking for sys/procfs.h... yes
checking for thread_db.h... yes
checking for linux/elf.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking whether strerror must be declared... no
checking for lwpid_t in sys/procfs.h... yes
checking for psaddr_t in sys/procfs.h... yes
checking for prgregset_t in sys/procfs.h... yes
checking for prfpregset_t in sys/procfs.h... yes
checking whether prfpregset_t type is broken... yes
checking for elf_fpregset_t in sys/procfs.h... yes
checking for libthread_db... -lthread_db
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h


make
(here's the output:)

/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/inferiors.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/regcache.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/remote-utils.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/server.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c  -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/../signals/signals.c -DGDBSERVER
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/target.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/utils.c
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd ../gdb-6.3/gdb/gdbserver/mem-break.c
sh ../gdb-6.3/gdb/gdbserver/../regformats/regdat.sh ../gdb-6.3/gdb/gdbserver/../regformats/reg-mips.dat reg-mips.c
sed: -e expression #1, char 6: Unterminated `s' command
../gdb-6.3/gdb/gdbserver/../regformats/regdat.sh: , 0 };: not found
reg-mips.c updated.
/usr/local/sbtools/sparc-solaris-5.6/mips-linux-2.7.12/bin/mips-linux-gcc -c -Wall -g -O2    -I. -I../gdb-6.3/gdb/gdbserver -I../gdb-6.3/gdb/gdbserver/../regformats -I../gdb-6.3/gdb/gdbserver/../../include -I../../bfd -I../gdb-6.3/gdb/gdbserver/../../bfd reg-mips.c
reg-mips.c:121:38: warning: multi-line string literals are deprecated
reg-mips.c:121:38: missing terminating " character
reg-mips.c:121:38: possible start of unterminated string literal
reg-mips.c:121: parse error at end of input
reg-mips.c:121: warning: array `expedite_regs_mips' assumed to have one element
make: *** [reg-mips.o] Error 1


Apparently, there is an issue with the regdat.sh script.
>How-To-Repeat:
clean install and build only gdbserver using environment described above
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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