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]

[Bug sim/20863] New: gdb-7.12 powerpc-rtems4.12-gdb does not build on FreeBSD.


https://sourceware.org/bugzilla/show_bug.cgi?id=20863

            Bug ID: 20863
           Summary: gdb-7.12 powerpc-rtems4.12-gdb does not build on
                    FreeBSD.
           Product: gdb
           Version: 7.12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: unassigned at sourceware dot org
          Reporter: chrisj at rtems dot org
                CC: vapier at gentoo dot org
  Target Milestone: ---

Building RTEMS's PowerPC (--target=powerpc-rtems4.12) GDB 7.12 fails with the
following errors:

../sim/ppc/libsim.a(sim_calls.o): In function `sim_io_printf_filtered':
../../../gdb-7.12/sim/ppc/sim_calls.c:(.text+0x17c): undefined reference to
`error'
../sim/ppc/libsim.a(sim_calls.o): In function `sim_load':
../../../gdb-7.12/sim/ppc/sim_calls.c:(.text+0x291): undefined reference to
`error'
../../../gdb-7.12/sim/ppc/sim_calls.c:(.text+0x31d): undefined reference to
`error'
../../../gdb-7.12/sim/ppc/sim_calls.c:(.text+0x357): undefined reference to
`error'
../sim/ppc/libsim.a(sim_calls.o): In function `sim_create_inferior':
../../../gdb-7.12/sim/ppc/sim_calls.c:(.text+0x53e): undefined reference to
`error'

The errors.o object file has a C++ mangled `error` symbol while the sim code is
looking for a C linkage symbol:

 nm build/powerpc-rtems4.12-gdb-7.12-x86_64-freebsd10.3-1/build/gdb/errors.o
0000000000000120 T _Z14internal_errorPKciS0_z
                 U _Z15internal_verrorPKciS0_P13__va_list_tag
00000000000001a0 T _Z16internal_warningPKciS0_z
                 U _Z17internal_vwarningPKciS0_P13__va_list_tag
0000000000000090 T _Z5errorPKcz
                 U _Z6verrorPKcP13__va_list_tag
0000000000000000 T _Z7warningPKcz
                 U _Z8vwarningPKcP13__va_list_tag

The GDB target builds on Linux and does not build on FreeBSD.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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