Error "No source file named"
Jonah Graham
jonah@kichwacoders.com
Sun Aug 8 16:12:02 GMT 2021
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
>
>
More information about the Gdb
mailing list