Re: Error "No source file named"

Jonah Graham <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAPmGMvg2Y+6746VphgwbtQ57zke5=sd38zj77-E7fKYm2506ig@mail.gmail.com>
Hi Mahmood,

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



On Sun, 8 Aug 2021 at 12:02, Mahmood Naderan via Gdb <[email protected]>
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

>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.