This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Troubles building cris target
- From: Jim Blandy <jimb at redhat dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: cgen at sourceware dot org, orjan dot friberg at axis dot com, gdb at sources dot redhat dot com
- Date: 16 Mar 2005 12:53:10 -0500
- Subject: Re: Troubles building cris target
- References: <200503152309.j2FN9Ut1032072@ignucius.se.axis.com>
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> JFTR, I built sim successfully on i686-pc-linux-gnu (FC2) with
> CVS as of "Tue Mar 15 15:09:24 UTC 2005".
Hm. Our systems look identical except for the processor. Do you know
why it builds for you, but not for me?
> Can you please test this patch?
>
> 2005-03-16 Hans-Peter Nilsson <hp@axis.com>
>
> * cris/sim-main.h: Don't include cgen-ops.h. Define ANDIF specifically.
It dies differently now:
gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL='"crisv32"' -DPROFILE=1 -DWITH_PROFILE=-1 -DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT -DWITH_ENVIRONMENT=ALL_ENVIRONMENT -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SCACHE=16384 -I. -I/home/jimb/gdb/src/sim/cris -I../common -I/home/jimb/gdb/src/sim/cris/../common -I../../include -I/home/jimb/gdb/src/sim/cris/../../include -I../../bfd -I/home/jimb/gdb/src/sim/cris/../../bfd -I../../opcodes -I/home/jimb/gdb/src/sim/cris/../../opcodes -I../../intl -I/home/jimb/gdb/src/sim/cris/../../intl -g3 -o run \
nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lnsl
libsim.a(decodev10.o)(.text+0x771a): In function `crisv10f_decode':
/home/jimb/gdb/src/sim/cris/decodev10.c:5059: undefined reference to `EXTHISI'
libsim.a(decodev10.o)(.text+0x77fb):/home/jimb/gdb/src/sim/cris/decodev10.c:5087: undefined reference to `EXTHISI'
libsim.a(decodev32.o)(.text+0x7219): In function `crisv32f_decode':
/home/jimb/gdb/src/sim/cris/decodev32.c:4587: undefined reference to `EXTHISI'
libsim.a(decodev32.o)(.text+0x72f7):/home/jimb/gdb/src/sim/cris/decodev32.c:4615: undefined reference to `EXTHISI'
collect2: ld returned 1 exit status
make[2]: *** [run] Error 1
make[2]: Leaving directory `/home/jimb/gdb/mbuild/cris-elf/sim/cris'
make[1]: *** [all] Error 1