octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55464] [MXE Octave] PVS static code analysis


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55464] [MXE Octave] PVS static code analysis for Windows cross-compiled code
Date: Mon, 14 Jan 2019 15:27:12 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Follow-up Comment #2, bug #55464 (project octave):

For future reference, here the steps I took to create the reports:

- Install PVS Studio following the instructions on [1].

- Apply the attached patch on MXE Octave.

- Run a "regular" cross-build for default Octave:

./configure --enable-devel-tools --enable-windows-64 --enable-octave=default
--enable-binary-packages --with-pkg-dir=../mxe-octave-pkg --with-ccache
--disable-system-opengl --enable-qt5
touch src/default-octave.mk
make all 7z-dist JOBS=3


- Re-configure without ccache (don't know if this is necessary) and build the
pvs target:

./configure --enable-devel-tools --enable-windows-64 --enable-octave=default
--enable-binary-packages --with-pkg-dir=../mxe-octave-pkg
--disable-system-opengl --enable-qt5
KEEP_BUILD=1 make build-only-pvs-default-octave > pvs_build.log


- Run the analysis and create the reports:

pvs-studio-analyzer analyze --compiler x86_64-w64-mingw32-gcc --compiler
x86_64-w64-mingw32-g++ --compiler x86_64-w64-mingw32-gfortran
plog-converter -a GA:1 -t html -o pvs1.html ./PVS-Studio.log
plog-converter -a GA:1,2 -t html -o pvs12.html ./PVS-Studio.log
plog-converter -a GA:1,2,3 -t html -o pvs123.html ./PVS-Studio.log


[1]: https://www.viva64.com/en/m/0039/

(file #45976)
    _______________________________________________________

Additional Item Attachment:

File name: bug55464_pvs_static_code_analysis.patch Size:8 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55464>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]