* gdb6.1: Problem in building for mips16
@ 2004-06-21 10:05 Monika Chaddha
[not found] ` <mailpost.1087812393.13172@news-sj1-1>
0 siblings, 1 reply; 2+ messages in thread
From: Monika Chaddha @ 2004-06-21 10:05 UTC (permalink / raw)
To: gdb
Hi all
I am trying to build gdb6.1 for mips16 target.
I am giving configure command as follows in the build directory.
[monika@gnuserver build]$ ../src/configure --target=mips16-elf
--prefix=/home/monika/gdb6.1/install/
After that I am running 'make all' but not able to build for mips16
I am getting following types of errors.
../../../src/sim/mips/mips.igen:3039: undefined reference to
`not_word_value'
libsim.a(m16_semantics.o)(.text+0x13aaf):../../../src/sim/mips/mips.igen
:3040:
ndefined reference to `unpredictable'
libsim.a(m16_semantics.o)(.text+0x13c88): In function
`m16_semantic_LDSP_RI64':
../../../src/sim/mips/mips.igen:1806: undefined reference to
`loadstore_ea'
libsim.a(m16_semantics.o)(.text+0x13eee): In function
`m16_semantic_SDSP_RI64':
../../../src/sim/mips/mips.igen:2621: undefined reference to
`loadstore_ea'
libsim.a(m16_semantics.o)(.text+0x140b7): In function
`m16_semantic_SDRASP_I64'
../../../src/sim/mips/mips.igen:2621: undefined reference to
`loadstore_ea'
libsim.a(m16_semantics.o)(.text+0x1447e): In function
`m16_semantic_LDPC_RI64':
../../../src/sim/mips/mips.igen:1806: undefined reference to
`loadstore_ea'
libsim.a(m16_semantics.o)(.text+0x1651b): In function `m16_do_ddiv':
../../../src/sim/mips/mips.igen:1216: undefined reference to
`check_div_hilo'
libsim.a(m16_semantics.o)(.text+0x1663f): In function `m16_do_ddivu':
../../../src/sim/mips/mips.igen:1261: undefined reference to
`check_div_hilo'
libsim.a(m16_semantics.o)(.text+0x1674f): In function `m16_do_div':
../../../src/sim/mips/mips.igen:1301: undefined reference to
`check_div_hilo'
libsim.a(m16_semantics.o)(.text+0x16863): In function `m16_do_divu':
../../../src/sim/mips/mips.igen:1345: undefined reference to
`check_div_hilo'
libsim.a(m16_semantics.o)(.text+0x1699a): In function `m16_do_dmultx':
../../../src/sim/mips/mips.igen:1394: undefined reference to
`check_mult_hilo'
collect2: ld returned 1 exit status
make[2]: *** [run] Error 1
make[2]: Leaving directory `/home/monika/gdb6.1/build/sim/mips'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/monika/gdb6.1/build/sim'
make: *** [all-sim] Error 2
Am I wrong anywhere? Can anyone help me in this regard?
Regards
Monika
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Re: gdb6.1: Problem in building for mips16
[not found] ` <mailpost.1087812393.13172@news-sj1-1>
@ 2004-06-25 18:38 ` cgd
0 siblings, 0 replies; 2+ messages in thread
From: cgd @ 2004-06-25 18:38 UTC (permalink / raw)
To: monika; +Cc: gdb
At Mon, 21 Jun 2004 10:06:34 +0000 (UTC), "Monika Chaddha" wrote:
> [monika@gnuserver build]$ ../src/configure --target=mips16-elf
> --prefix=/home/monika/gdb6.1/install/
>
> After that I am running 'make all' but not able to build for mips16
There is an error in the GDB 6.1 MIPS simulator configuration scripts
for the mips16-elf target.
I've just verified that the patch below allows the current head of the
6.1 branch configures/builds for mips16-elf with this patch applied.
The patch should apply cleanly to 6.1 as well.
You'll need to apply this patch, in the sim/mips directory.
Note that in this patch, i've included a patch to both configure.in
and configure. (Normally, we'd only send the former to the list, then
run autoconf to regenerate the latter. I've included the patch to
both so that you don't need to run autoconf yourself.)
I've applied this to the 6.1.x branch (so it will appear in future
6.1.x releases) and to the trunk.
Sorry for the inconvenience.
cgd
--
2004-06-25 Chris Demetriou <cgd@broadcom.com>
* configure.in (sim_m16_machine): Include mipsIII.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/sim/mips/configure.in,v
retrieving revision 1.6
diff -u -p -r1.6 configure.in
--- configure.in 5 Jan 2003 07:56:59 -0000 1.6
+++ configure.in 25 Jun 2004 18:31:57 -0000
@@ -99,7 +99,7 @@ SIM_AC_OPTION_SMP($mips_smp)
#
sim_gen=IGEN
sim_igen_machine="-M mipsIV"
-sim_m16_machine="-M mips16"
+sim_m16_machine="-M mips16,mipsIII"
sim_igen_filter="32,64,f"
sim_m16_filter="16"
sim_mach_default="mips8000"
Index: configure
===================================================================
RCS file: /cvs/src/src/sim/mips/configure,v
retrieving revision 1.9
diff -u -p -r1.9 configure
--- configure 5 Jan 2003 07:56:59 -0000 1.9
+++ configure 25 Jun 2004 18:31:57 -0000
@@ -4061,7 +4061,7 @@ fi
#
sim_gen=IGEN
sim_igen_machine="-M mipsIV"
-sim_m16_machine="-M mips16"
+sim_m16_machine="-M mips16,mipsIII"
sim_igen_filter="32,64,f"
sim_m16_filter="16"
sim_mach_default="mips8000"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-25 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-21 10:05 gdb6.1: Problem in building for mips16 Monika Chaddha
[not found] ` <mailpost.1087812393.13172@news-sj1-1>
2004-06-25 18:38 ` [PATCH] " cgd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox