Yocto Project Discussions
 help / color / mirror / Atom feed
From: "R Keith Beal" <r@cmss.com>
To: yocto@lists.yoctoproject.org
Subject: Yocto gdb build error on Microblaze platform
Date: Fri, 05 Jun 2020 20:02:43 +0000 (UTC)	[thread overview]
Message-ID: <95d62cb9-5791-970e-4397-488c497afa61@CMSS.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6207 bytes --]

Fellow Developers,


I am attempting to add gdb to a Yocto project based on Yocto 2.3 (Pyro).

The build complains about a missing libreadline.a.


*| make[2]: Leaving directory 
'/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/build-microblazeel-poky-linux/opcodes'*

*| make[2]: Entering directory 
'/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/build-microblazeel-poky-linux/gdb'*

*| make[2]: *** No rule to make target '../readline/libreadline.a', 
needed by 'gdb'.Stop.*

*| make[2]: *** Waiting for unfinished jobs....*

I tried several solutions from related searches.

http://url1567.cmss.com/ls/click?upn=THw5ysdXae-2B-2Btp69CrkSktfnnmsBMoq2fcLowO1MzKn3wcqowiND-2FTX2Ck09GJGF11Hdqxt9-2BJySKGonPkx0-2FsBVZ74oHM4kelhYpa4edNE-3D8p2T_onOgH4hKli5v9BePnk5WifnzSD-2FkMXWD4UBJN0NMhyEtRPVSpGiaaE75TdAV5HSL3C5-2Fi5n-2BDKHGDeEkTPVb-2FcjU3hpChsPjc-2F1yV-2Fy-2FqYqvP0R0ga7sDTpc0xAErHOPta6wxiaAu6AxpdmfODDLShss6kwLSUrYDD-2Blu1f1t6JOIXb54UcLQ1jl-2Bt-2FM1Df2FGOUq2KT8E3r3P-2BJ339dtjkdSSHNILM4ZuiCObkRvoU-3D

http://url1567.cmss.com/ls/click?upn=THw5ysdXae-2B-2Btp69CrkSkhlnHi-2FYRYLnr3RlrnNZXmyK27CyplgiatU0F3nje-2FAXjDAERK7GpIYABqm2VrjanqpD9-2FFXkXtOSF1ZzOXINUA-3DoTvx_onOgH4hKli5v9BePnk5WifnzSD-2FkMXWD4UBJN0NMhyEtRPVSpGiaaE75TdAV5HSL3C5-2Fi5n-2BDKHGDeEkTPVb-2FRTx-2B4fNAXrHZKp3D4Q26gT1QyfMP2VyOgj0cWkVr0aAxCZq5nVYw-2F-2FW7z2B-2B-2BQTAgDm3JxjNhK9NyC2UMI1YkyOzY2m0cYgn4QjDv0YF1CFQtc3YGQpM7IDUxoZc8iNdpJqoB23dymTZ6InMsH9ebA-3D

Tried *PACKAGECONFIG_remove_pn-gdb = "readline"* but it does not help.

Tried adding *EXTRA_OECONF_append = " --without-system-readline"* to the 
image recipe but it doesn’t help.**

From 
/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/gdb-7.7.1/gdb/Makefile.in

*# Where is the READLINE library?Typically in ../readline.*

*READLINE_DIR = ../readline*

*READLINE_SRC = $(srcdir)/$(READLINE_DIR)*

*READLINE = @READLINE@*

*READLINE_DEPS = @READLINE_DEPS@*

*READLINE_CFLAGS = @READLINE_CFLAGS@*

I tried adding *PACKAGECONFIG_remove_pn-gdb = "readline"* to the 
local.conf**


As a test, I manually built gdb’s local copy of readline and I get lots 
of compile errors that look like some sort of version skew with the 
thread library.

*| In file included from ../../gdb-7.7.1/gdb/proc-service.c:28:0:*

*| ../../gdb-7.7.1/gdb/gdb_proc_service.h:162:9: error: unknown type 
name 'gdb_fpregset_t'*

*|typedef gdb_fpregset_t gdb_prfpregset_t;*

*|^~~~~~~~~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:151:1: warning: no previous 
prototype for 'ps_lgetxregsize' [-Wmissing-prototypes]*

*|ps_lgetxregsize (gdb_ps_prochandle_t ph, lwpid_t lwpid, int *xregsize)*

*|^~~~~~~~~~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:161:1: warning: no previous 
prototype for 'ps_lgetxregs' [-Wmissing-prototypes]*

*|ps_lgetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset)*

*|^~~~~~~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:171:1: warning: no previous 
prototype for 'ps_lsetxregs' [-Wmissing-prototypes]*

*|ps_lsetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset)*

*|^~~~~~~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:180:1: warning: no previous 
prototype for 'ps_plog' [-Wmissing-prototypes]*

*|ps_plog (const char *fmt, ...)*

*|^~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:298:1: error: conflicting types 
for 'ps_lgetfpregs'*

*|ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid,*

*|^~~~~~~~~~~~~*

*| In file included from ../../gdb-7.7.1/gdb/gdb_proc_service.h:25:0,*

*|from ../../gdb-7.7.1/gdb/proc-service.c:28:*

*| 
/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/recipe-sysroot/usr/include/proc_service.h:61:17: 
note: previous declaration of 'ps_lgetfpregs' was here*

*|extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,*

*|^~~~~~~~~~~~~*

*| ../../gdb-7.7.1/gdb/proc-service.c:318:1: error: conflicting types 
for 'ps_lsetfpregs'*

*|ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid,*

*|^~~~~~~~~~~~~*

*| In file included from ../../gdb-7.7.1/gdb/gdb_proc_service.h:25:0,*

*|from ../../gdb-7.7.1/gdb/proc-service.c:28:*

*| 
/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/recipe-sysroot/usr/include/proc_service.h:63:17: 
note: previous declaration of 'ps_lsetfpregs' was here*

*|extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,*

*|^~~~~~~~~~~~~*

*| ERROR: oe_runmake failed*

*| Makefile:1011: recipe for target 'proc-service.o' failed*

*| make[2]: *** [proc-service.o] Error 1*

*| make[2]: *** Waiting for unfinished jobs....*

*| In file included from ../../gdb-7.7.1/gdb/linux-thread-db.c:24:0:*

*| ../../gdb-7.7.1/gdb/gdb_proc_service.h:162:9: error: unknown type 
name 'gdb_fpregset_t'*

*|typedef gdb_fpregset_t gdb_prfpregset_t;*

*|^~~~~~~~~~~~~~*

*| Makefile:1011: recipe for target 'linux-thread-db.o' failed*

*| make[2]: *** [linux-thread-db.o] Error 1*

*| make[2]: Leaving directory 
'/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/build-microblazeel-poky-linux/gdb'*

*| Makefile:8278: recipe for target 'all-gdb' failed*

*| make[1]: *** [all-gdb] Error 2*

*| make[1]: Leaving directory 
'/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/build-microblazeel-poky-linux'*

*| Makefile:832: recipe for target 'all' failed*

*| make: *** [all] Error 2*

*| WARNING: 
/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/temp/run.do_compile.18533:1exit 
1 from 'exit 1'*

*| ERROR: Function failed: do_compile (log file is located at 
/opt/yocto/yocto-bwc/builds/microblazeel/tmp/work/microblazeel-v9.6-bs-cmp-mh-poky-linux/gdb/7.7.1-r0/temp/log.do_compile.18533)*

*ERROR**: Task 
(/opt/yocto/poky/meta-xilinx/recipes-microblaze/gdb/gdb_7.7.1.bb:do_compile) 
failed with exit code '1'*


[-- Attachment #2: Type: text/html, Size: 100071 bytes --]

             reply	other threads:[~2020-06-05 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 20:02 R Keith Beal [this message]
2020-06-05 20:23 ` [yocto] Yocto gdb build error on Microblaze platform Mark Hatle
2020-06-06  1:28   ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95d62cb9-5791-970e-4397-488c497afa61@CMSS.com \
    --to=r@cmss.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox