Error: 'tperce' at (1) is not a member of the 'timer_status_t' structure
Open
Nobody has claimed this yet.
- Dominant language
- Fortran
- Stars
- 28
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
I currently try to build a conda package using gfortran, but I get the following error message:
https://github.com/conda-forge/staged-recipes/pull/10428
[ 45%] Building Fortran object src/CMakeFiles/progress.dir/prg_timer_mod.F90.o
/home/conda/staged-recipes/build_artifacts/qmd-progress_1576208097550/work/src/prg_timer_mod.F90:336:132:
write(*,10) ptimer(i)%tname, ptimer(i)%tcount, ptimer(i)%tsum/float(ptimer(i)%tcount), ptimer(i)%tsum, ptimer(i)%tpercent
1
Error: Line truncated at (1) [-Werror=line-truncation]
/home/conda/staged-recipes/build_artifacts/qmd-progress_1576208097550/work/src/prg_timer_mod.F90:336:132:
write(*,10) ptimer(i)%tname, ptimer(i)%tcount, ptimer(i)%tsum/float(ptimer(i)%tcount), ptimer(i)%tsum, ptimer(i)%tpercent
1
Error: 'tperce' at (1) is not a member of the 'timer_status_t' structure
f951: some warnings being treated as errors
make[2]: *** [src/CMakeFiles/progress.dir/build.make:609: src/CMakeFiles/progress.dir/prg_timer_mod.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:94: src/CMakeFiles/progress.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure is reported in src/prg_timer_mod.F90 at line 336 during the CMake build of the conda package with gfortran. Reproduce the build and inspect the reported line together with the timer_status_t definition. Done means this source compiles without the line-truncation and tpercent member errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, fortran
- Domain
- build-system, hpc
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100