Opened 3 years ago

Last modified 3 years ago

#63047 closed defect

clang-12: scan-view does not work — at Version 1

Reported by: szhorvat (Szabolcs Horvát) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kencu (Ken), jeremyhu (Jeremy Huddleston Sequoia)
Port: clang-12

Description (last modified by szhorvat (Szabolcs Horvát))

Following the recent fix of issue #63026, I built clang-12 with the +analyzer variant and checked whether it works, roughly along the lines I wrote up in this wiki: https://github.com/igraph/igraph/wiki/Running-linters-and-analysers

The analyzer itself, and the scan-build script appear to work fine.

The scan-view script (called scan-view-mp-12) does not work. The output is this:

Traceback (most recent call last):
  File "/opt/local/libexec/llvm-12/bin/scan-view", line 150, in <module>
    main()
  File "/opt/local/libexec/llvm-12/bin/scan-view", line 147, in main
    run(port, args, args.root)
  File "/opt/local/libexec/llvm-12/bin/scan-view", line 74, in run
    import ScanView
  File "/opt/local/libexec/llvm-12/bin/../share/scan-view/ScanView.py", line 29, in <module>
    import Reporter
ImportError: No module named Reporter

scan-view is used to view the analysis reports in a browser. One might use scan-view-mp-11 to view the results of an analysis from clang-12, so it's not a huge deal. But scan-view-mp-12 should work as well.

I have not yet had the time to figure out why exactly this is broken and how to fix it, but here's the bug report in advance. I'll let you know if I figure out a fix.

Related:

Change History (1)

comment:1 Changed 3 years ago by szhorvat (Szabolcs Horvát)

Description: modified (diff)
Note: See TracTickets for help on using tickets.