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

Re: GDB-insight build errors


Hi,

Thank you,Maciej,for your reply.

Maciej wrote,
Install ncurses to resolve this dependency -- GDB should use their native
interface; they provide a termcap compatibility layer as well.

I installed ncurses like next.
$ tar zxvf ncurses-5.6.tar.gz
$ cd ncurses-5.6
$ ./configure --with-shared --without-ada
$ make
$ make install
The reason of "--without-ada" is that there happened Ada sample compile error.


After that I tried first job,that is install insight6.6.
I usesd the same-first-time commands.
$ cd build-insight
$ /home/username/insight-6.6/configure --target=sh-elf
$ make all install 2>&1 | tee insight-make.log

Wow,there passed first errors !
And I hopefully watched long time,then at last part(I hope),appared
different errors.
Looks no relation to first error,so I suppose there's another cause.

I extract last part of insight-make.log.
-------
gcc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/home/username/insight-6.6/sim/sh -I../common -I/home/username/insight-6.6/sim/sh/../common -I../../include -I/home/username/insight-6.6/sim/sh/../../include -I../../bfd -I/home/username/insight-6.6/sim/sh/../../bfd -I../../opcodes -I/home/username/insight-6.6/sim/sh/../../opcodes -g -O2 /home/username/insight-6.6/sim/sh/interp.c
gcc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/home/username/insight-6.6/sim/sh -I../common -I/home/username/insight-6.6/sim/sh/../common -I../../include -I/home/username/insight-6.6/sim/sh/../../include -I../../bfd -I/home/username/insight-6.6/sim/sh/../../bfd -I../../opcodes -I/home/username/insight-6.6/sim/sh/../../opcodes -g -O2 table.c
gcc -c /home/username/insight-6.6/sim/sh/../common/sim-load.c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/home/username/insight-6.6/sim/sh -I../common -I/home/username/insight-6.6/sim/sh/../common -I../../include -I/home/username/insight-6.6/sim/sh/../../include -I../../bfd -I/home/username/insight-6.6/sim/sh/../../bfd -I../../opcodes -I/home/username/insight-6.6/sim/sh/../../opcodes -g -O2
rm -f libsim.a
ar rc libsim.a callback.o syscall.o targ-map.o interp.o table.o sim-load.o
ranlib libsim.a
gcc -c e/username/insight-6.6/sim/sh/../common/run.c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/home/username/insight-6.6/sim/sh -I../common -I/home/username/insight-6.6/sim/sh/../common -I../../include -I/home/username/insight-6.6/sim/sh/../../include -I../../bfd -I/home/username/insight-6.6/sim/sh/../../bfd -I../../opcodes -I/home/username/insight-6.6/sim/sh/../../opcodes -g -O2
gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/home/username/insight-6.6/sim/sh -I../common -I/home/username/insight-6.6/sim/sh/../common -I../../include -I/home/username/insight-6.6/sim/sh/../../include -I../../bfd -I/home/username/insight-6.6/sim/sh/../../bfd -I../../opcodes -I/home/username/insight-6.6/sim/sh/../../opcodes -g -O2 -o run.exe \
run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a -lintl ../../libiberty/libiberty.a -lm
../../bfd/libbfd.a(archures.o): In function `bfd_scan_arch':
/home/username/insight-6.6/bfd/archures.c:603: undefined reference to `_bfd_sh_arch'
../../bfd/libbfd.a(elf32-sh.o): In function `sh_find_elf_flags':
/home/username/insight-6.6/bfd/elf32-sh.c:5363: undefined reference to `_sh_get_bfd_mach_from_arch_set'
../../bfd/libbfd.a(elf32-sh.o): In function `sh_elf_merge_private_data':
/home/username/insight-6.6/bfd/elf32-sh.c:5388: undefined reference to `_sh_merge_bfd_arch'
collect2: ld returned 1 exit status
make[3]: *** [run.exe] Error 1
make[3]: Leaving directory `/home/username/build-insight/sim/sh'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/username/build-insight/sim'
make[1]: *** [all-sim] Error 2
make[1]: Leaving directory `/home/username/build-insight'
make: *** [all] Error 2
---------


I tried the commands Keith taught me.
$ /home/username/insight-6.6/configure --target=sh-elf --prefix=$HOME/local 2>&1|tee make.out
$ make all-gdb 2>&1|tee -a make.out


I post make.out.

Would you be kind enough to resolve this error?
I suppose this is last (hopefully).

Masahiro Ariga

Attachment: make.out
Description: Binary data


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