Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jan 2017 09:12:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [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 *'
Message-ID:  <bug-215868-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215868

            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@FreeBSD.org
          Reporter: markmi@dsl-only.net
                CC: luca.pizzamiglio@gmail.com
                CC: luca.pizzamiglio@gmail.com
             Flags: maintainer-feedback?(luca.pizzamiglio@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=3D"\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../opcodes/..  -I./../zlib -I../bfd -I./../bfd
-I./../include -I../libdecnumber -I./../libdecnumber=20=20
-I./gnulib/import -Ibuild-gnulib/import   -DTUI=3D1  -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)) !=3D 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'

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215868-13>