All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Monsees, Steven C (US)" <steven.monsees@baesystems.com>
To: "yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>
Subject: enabling symbols for debug in clinfo
Date: Mon, 9 May 2022 10:54:34 +0000	[thread overview]
Message-ID: <20220509105444.536A6C433F5@smtp.lore.kernel.org> (raw)

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


Hello:

I'd like to build clinfo w/ "-g" option to do some debugging with GDB...

I am looking at: meta-openembedded/meta-oe/recipes-support/opencl/clinfo_2.2.18.04.06.bb

I created a "bbapend" file to modify the build recipes "Makefile.am" file prior to build, to introduce '-g' for CFLAGS & CPPFLAGS, i.e. at top of Makefile.am added:

                AM_CFLAGS - -g
                AM_CPPFLAGS = -g

I checked the build tree and see my modified "Makefile.am" updated as expected, the update occurs at the end of the install process, using do_install_append... so the build should have used my modified file... but I do not have symbols for the clinfo package when I go to use GDB.

Is there a simple way to enable debug symbols for this package ?

Did I modify the wrong configuration file?, Should I be modifying configure ?

I am new to auto-build configurations...
Could someone tell me the easiest way to add "-g" to the clinfo standard build ?

Thanks,
Steve

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

                 reply	other threads:[~2022-05-09 10:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220509105444.536A6C433F5@smtp.lore.kernel.org \
    --to=steven.monsees@baesystems.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.