[Bug 215868] devel/gdb: as of -r429946 targeting powerpc64: ppcfbsd-kern.c:61:6: error: no matching function 'target_read_memory': no conversion from 'struct pcb *' to 'gdb_byte *'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 8 09:12:53 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215868

            Bug ID: 215868
           Summary: devel/gdb: as of -r429946 targeting powerpc64:
                    ppcfbsd-kern.c:61:6: error: no matching function
                    'target_read_memory': no conversion from 'struct pcb
                    *' to 'gdb_byte *'
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: markmi at dsl-only.net
                CC: luca.pizzamiglio at gmail.com
                CC: luca.pizzamiglio at gmail.com
             Flags: maintainer-feedback?(luca.pizzamiglio at gmail.com)

[I experiment with buildworld builkernel based on clang for powerpc64,
currently clang/clang++ 3.9.1. So this is a "system clang" context
despite the powerpc64 context.]

The build log details are:

. . .
c++ -pipe -B/usr/local/bin/ -DRL_NO_COMPAT -Wno-unused-function
-Wno-unused-variable -Wno-extended-offsetof -DLIBICONV_PLUG -g
-fno-strict-aliasing -B/usr/local/bin/  -DLIBICONV_PLUG   -I. -I. -I./com
mon -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../opcodes/..  -I./../zlib -I../bfd -I./../bfd
-I./../include -I../libdecnumber -I./../libdecnumber  
-I./gnulib/import -Ibuild-gnulib/import   -DTUI=1  -B/usr/local/bin/
-DLIBICONV_PLUG -I/usr/local/include  -I/usr/local/include/python2.7
-I/usr/local/include/python2.7 -Wall -Wpointer-arith -Wno-unus
ed -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare
-Wno-write-strings -Wno-narrowing -Wformat-nonliteral  -c -o ppcfbsd-kern.o -MT
ppcfbsd-kern.o -MMD -MP -MF .deps/ppcfbsd-kern.Tpo ppcfbsd-kern.c
. . .
ppcfbsd-kern.c:61:6: error: no matching function for call to
'target_read_memory'
        if (target_read_memory(pcb_addr, &pcb, sizeof(pcb)) != 0)
            ^~~~~~~~~~~~~~~~~~
./target/target.h:35:12: note: candidate function not viable: no known
conversion from 'struct pcb *' to 'gdb_byte *' (aka 'unsigned char *') for 2nd
argument
extern int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr,
           ^
1 error generated.
gmake[4]: *** [Makefile:1158: ppcfbsd-kern.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
'/usr/obj/portswork/usr/ports/devel/gdb/work/gdb-7.12/gdb'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list