Bug 441065 - The 1.2.0 version of heaptrack failed to compile and the test case could not be executed
Summary: The 1.2.0 version of heaptrack failed to compile and the test case could not ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (show other bugs)
Version: 1.2.0
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 02:55 UTC by simon28li
Modified: 2021-12-18 12:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simon28li 2021-08-17 02:55:25 UTC
SUMMARY
I tried to perform a self-test of the program, but the compilation failed

STEPS TO REPRODUCE
1. cmake .. -DHEAPTRACK_BUILD_TRACK=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release 
2. make -j16
3.The error message is as follows:
   3 errors found in build log:
     491    make[2]: Entering directory '/home/spack-stage/root/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-build-lkhpux3'
     492    [ 54%] Building CXX object tests/manual/CMakeFiles/test_lib.dir/test_lib.cpp.o
     493    cd /home/spack-stage/root/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-build-lkhpux3/tests/manual && /home/spack/lib/spack/env/gcc/g++  -I/home/spack-stage/root/s
            pack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-src/tests -std=c++11 -Wall -Wpedantic -O2 -g -DNDEBUG -o CMakeFiles/test_lib.dir/test_lib.cpp.o -c /home/spack-stage/r
            oot/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-src/tests/manual/test_lib.cpp
     494    [ 55%] Linking CXX executable test_lib
     495    cd /home/spack-stage/root/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-build-lkhpux3/tests/manual && /home/spack/opt/spack/linux-centos8-aarch64/gcc-8.4.1/cmake-3
            .19.5-zowbfbzsx7j7d7rpra7lthq5x3glkbvt/bin/cmake -E cmake_link_script CMakeFiles/test_lib.dir/link.txt --verbose=1
     496    /home/spack/lib/spack/env/gcc/g++  -std=c++11 -Wall -Wpedantic -O2 -g -DNDEBUG -rdynamic CMakeFiles/test_lib.dir/test_lib.cpp.o -o test_lib  -Wl,-rpath,/home/spack-stage/root/spack-sta
            ge-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-build-lkhpux3/tests/manual libtestlib.so
  >> 497    /home/spack-stage/root/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-src/tests/auto/tst_parser.cpp:22:10: fatal error: locationdata.h: No such file or directory
     498     #include "locationdata.h"
     499              ^~~~~~~~~~~~~~~~
     500    compilation terminated.
  >> 501    make[2]: *** [tests/auto/CMakeFiles/tst_parser.dir/build.make:85: tests/auto/CMakeFiles/tst_parser.dir/tst_parser.cpp.o] Error 1
     502    make[2]: Leaving directory '/home/spack-stage/root/spack-stage-heaptrack-1.2.0-lkhpux3bwonfu35nwceltsc2rzhwe6rf/spack-build-lkhpux3'
  >> 503    make[1]: *** [CMakeFiles/Makefile2:964: tests/auto/CMakeFiles/tst_parser.dir/all] Error 2
     504    make[1]: *** Waiting for unfinished jobs....

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: CentOS 8
(available in About System)
KDE Plasma Version: none
KDE Frameworks Version: none
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Using the same procedure, I tested ok in version 1.1.0
Comment 1 Milian Wolff 2021-08-17 07:44:05 UTC
1.2 is quite old, can you try 1.3? Or better yet current master, as I intend to release 1.4 in the next few days.

Cheers