Gdb configuration and compilation

Joel Sherrill joel.sherrill at oarcorp.com
Wed Sep 5 18:30:01 UTC 2007


Robert S. Grimes wrote:
> Till Straumann wrote:
>   
>>  
>>     
>>> You can find it here:
>>>       
>>> http://www.slac.stanford.edu/~strauman/rtems/gdb/
>>>       
>>> this thread just inspired me to cut a new (1.4) release
>>> in order to get a few bugfixes out.
>>>       
>>     
> Hi Till
> I just tried building 1.4, and I can't get it to work.  Here is what
> I've done, followed by the errors I'm getting:
>
> $ tar xjf ../archive/gdb-6.6.tar.bz2
> $ cd gdb-6.6
> $ cat ../../archive/gdb-6.6-rtems4.8-20070306.diff | patch -p1
> $ cat ../RTEMS_gdb_stub_1.4/gdb-6.6-ssrl-20070131.diff | patch -p1
> $ mkdir build        # Arbitrary build directory
> $ cd build
> $ ../configure --target=powerpc-rtems
> $ make
>
> gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS    
> -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5              -DH
> AVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO     -I.
> -I../../../sim/ppc -I../../../sim/ppc/../../include -I
> ../../bfd -I../../../sim/ppc/../../bfd -I../../gdb
> -I../../../sim/ppc/../../gdb  -I../../../sim/ppc/../../gdb/config  -D
> HAVE_COMMON_FPU -I../common -I../../../sim/ppc/../common
> ../../../sim/ppc/main.c
> gcc -g -O2   -o psim.exe main.o libsim.a ../../bfd/libbfd.a 
> ../../libiberty/libiberty.a
> ../../bfd/libbfd.a(bfd.o): In function `bfd_errmsg':
> /cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:397:
> undefined reference to `_li
> bintl_dgettext'
>   
You are on cygwin... add --disable-sim (or whatever it is) to the 
configure line.
Even if you wanted it, it wouldn't build correctly or work.

You are probably just missing the libintl development package.
> /cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:383:
> undefined reference to `_li
> bintl_dgettext'
> ../../bfd/libbfd.a(bfd.o): In function `_bfd_abort':
> /cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:839:
> undefined reference to `_li
> bintl_dgettext'
> /cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:846:
> undefined reference to `_li
> bintl_dgettext'
> /cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:843:
> undefined reference to `_li
> bintl_dgettext'
> ../../bfd/libbfd.a(bfd.o):/cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/bfd/../../bfd/bfd.c:828:
> m
> ore undefined references to `_libintl_dgettext' follow
> collect2: ld returned 1 exit status
> make[3]: *** [psim] Error 1
> make[3]: Leaving directory
> `/cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/sim/ppc'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory
> `/cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build/sim'
> make[1]: *** [all-sim] Error 2
> make[1]: Leaving directory
> `/cygdrive/c/Home/ll/etill/development/new-rtems/tools/gdb-6.6/build'
> make: *** [all] Error 2
>
>
> BTW - I also got the same errors when I tried ../configure
> --target=powerpc-ssrl-rtems
>
> Anyway, it seems to building psim, which I don't care about - I am
> working with the new virtex BSP, from 4.7.99.2, in case that helps.
>
> Any ideas?
>
> Thanks!
> -Bob
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list