https://bugs.kde.org/show_bug.cgi?id=441065

            Bug ID: 441065
           Summary: The 1.2.0 version of heaptrack failed to compile and
                    the test case could not be executed
           Product: Heaptrack
           Version: 1.2.0
          Platform: RedHat RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: m...@milianw.de
          Reporter: lideh...@huawei.com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to