public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jonah Graham <jonah@kichwacoders.com>
To: Mahmood Naderan <nt_mahmood@yahoo.com>
Cc: Mahmood Naderan via Gdb <gdb@sourceware.org>,
	Andreas Schwab <schwab@linux-m68k.org>
Subject: Re: Error "No source file named"
Date: Sun, 8 Aug 2021 12:12:02 -0400	[thread overview]
Message-ID: <CAPmGMvg2Y+6746VphgwbtQ57zke5=sd38zj77-E7fKYm2506ig@mail.gmail.com> (raw)
In-Reply-To: <569018761.219127.1628438476158@mail.yahoo.com>

Hi Mahmood,

I hope this is useful and not unrelated....



On Sun, 8 Aug 2021 at 12:02, Mahmood Naderan via Gdb <gdb@sourceware.org>
wrote:

>
> >Most likely it wasn't compiled with debug info.
>
> Andreas, I checked the build command:
>
> g++  -g3 -fPIC -DCUDART_VERSION=11020 -Wall -DDEBUG -DTRACING_ON=1
> -std=c++0x -ggdb -I/usr/local/cuda-11.2/include
> -I/home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/src/gpuwattch/
> -DGPGPUSIM_POWER_MODEL -o
> /home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/build/gcc-9.3.0/cuda-11020/debug/gpgpu-sim/shader.o
> -c shader.cc
>
>
In your build command the .o is output to debug/gpgpu-sim/shader.o



> ...
>
> g++ -std=c++0x -o ./bin/debug/accel-sim.out
> -L/home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/lib/gcc-9.3.0/cuda-11020/debug/
> -lcudart -lm -lz -lGL -pthread ./build/debug/*.o
>
>
But here it is pulling debug/*.o

Could you have two copies of shader.o hanging about?

HTH
Jonah

>
>

  reply	other threads:[~2021-08-08 16:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <767694398.211875.1628429913388.ref@mail.yahoo.com>
2021-08-08 13:38 ` Mahmood Naderan
2021-08-08 14:35   ` Eli Zaretskii
2021-08-08 15:06     ` Mahmood Naderan
2021-08-08 15:31       ` Andreas Schwab
2021-08-08 16:01         ` Mahmood Naderan
2021-08-08 16:12           ` Jonah Graham [this message]
2021-08-08 16:35             ` Mahmood Naderan
2021-08-08 16:45               ` Jeffrey Walton
2021-08-08 17:15                 ` Mahmood Naderan
2021-08-08 22:25                   ` Jeffrey Walton
2021-08-09  8:36                     ` Mahmood Naderan
2021-08-08 20:51   ` Jonah Graham

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='CAPmGMvg2Y+6746VphgwbtQ57zke5=sd38zj77-E7fKYm2506ig@mail.gmail.com' \
    --to=jonah@kichwacoders.com \
    --cc=gdb@sourceware.org \
    --cc=nt_mahmood@yahoo.com \
    --cc=schwab@linux-m68k.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).