Hi Dong,
This output looks normal and expected. You
do not need –g –O0 on the link command.
Bill Hilliard
Intel Corporation
From:
photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx] On Behalf Of Dong Li
Sent: Friday, February 27, 2009
1:13 AM
To: photran@xxxxxxxxxxx
Subject: [photran] Re: how to
debug
Hi Jeff,
I think I found where the problem is. I checked out the makefile derived by
eclipse, and found that there is no "-g -O0" in the compiler
parameters for the final executable, but from the output of building, there are
"-g -O0"s in all other objects. I have chosen building in debug mode,
so what's wrong with it.
Here is the output:
**** Build of configuration Debug_IA-32 for project project-1 ****
make all
Building file: ../data.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0 -debug-parameters
all -I/opt/netcdf/4.0/no_hdf5/include -c -o "data.o"
"../data.f90"
Finished building: ../data.f90
Building file: ../error_handler.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o
"error_handler.o" "../error_handler.f90"
Finished building: ../error_handler.f90
Building file: ../fvm.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o "fvm.o"
"../fvm.f90"
Finished building: ../fvm.f90
Building file: ../input.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o
"input.o" "../input.f90"
Finished building: ../input.f90
Building file: ../main.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o
"main.o" "../main.f90"
Finished building: ../main.f90
Building file: ../mesh_manager.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o
"mesh_manager.o" "../mesh_manager.f90"
Finished building: ../mesh_manager.f90
Building file: ../output.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0
-debug-parameters all -I/opt/netcdf/4.0/no_hdf5/include -c -o
"output.o" "../output.f90"
Finished building: ../output.f90
Building file: ../time_manager.f90
Invoking: Intel(R) IA-32 Fortran Compiler
ifort -g -O0 -debug-parameters
all -I/opt/netcdf/4.0/no_hdf5/include -c -o "time_manager.o"
"../time_manager.f90"
Finished building: ../time_manager.f90
Building target: project-1
Invoking: Intel(R) Fortran Linker
ifort -L/opt/netcdf/4.0/no_hdf5/lib -o"project-1" ./data.o
./error_handler.o ./fvm.o ./input.o ./main.o ./mesh_manager.o ./output.o
./time_manager.o -lnetcdf
Finished building target: project-1
Thanks again!
DONG Li