Skip to content

PVS Studio with windows_amd64 #207

Open
@Laxilef

Description

@Laxilef

Hi all,

Related: platformio/platformio-core#5194
Since version 7.18.59866, the package platformio/tool-pvs-studio is not compatible with windows_amd64:

UnknownPackageError: Could not find the package with 'platformio/tool-pvs-studio @ ^7.18.59866' requirements for your system 'windows_amd64'

And version 7.18.59865 does not work with the latest version of pio:

Checking s3_mini > pvs-studio (platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip; board: lolin_s3_mini; framework: arduino)
---------------------------------------------------------------------------------------------------------------
In file included from D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/machine/_default_types.h:8,
                 from D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/stdint.h:12,  
                 from D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/lib/gcc/riscv32-esp-elf/14.2.0/include/stdint.h:9,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:24,
                 from D:\Projects\pvstest\src\main.cpp:4:
D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/sys/features.h:590:9: warning: "_POSIX_READER_WRITER_LOCKS" redefined
  590 | #define _POSIX_READER_WRITER_LOCKS              200112L
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
In file included from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:194:
D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/WCharacter.h:24:9: warning: "isascii" redefined
   24 | #define isascii(__c) ((unsigned)(__c) <= 0177)
      |         ^~~~~~~
In file included from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/WCharacter.h:23:
D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/ctype.h:99:9: note: this is the location of the previous definition
   99 | #define isascii(__c)    ((unsigned)(__c)<=0177)
      |         ^~~~~~~
D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/WCharacter.h:25:9: warning: "toascii" redefined
   25 | #define toascii(__c) ((__c) & 0177)
      |         ^~~~~~~
D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/ctype.h:100:9: note: this is the location of the previous definition
  100 | #define toascii(__c)    ((__c)&0177)
      |         ^~~~~~~
In file included from D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/errno.h:42,   
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/errno.h:10,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/lwip/port/esp32xx/include/arch/cc.h:12,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/lwip/lwip/src/include/lwip/arch.h:48,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/lwip/lwip/src/include/lwip/debug.h:40,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/lwip/lwip/src/include/lwip/opt.h:52,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/lwip/lwip/src/include/lwip/ip_addr.h:40,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/IPAddress.h:25,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:199:
D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/picolibc/include/sys/errno.h:67:9: warning: "_REENT_ERRNO" redefined
   67 | #define _REENT_ERRNO(r) (errno)
      |         ^~~~~~~~~~~~
In file included from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/sys/reent.h:13,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/xtensa/include/xtensa_config.h:140,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/freertos/config/xtensa/include/freertos/FreeRTOSConfig_arch.h:14,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/freertos/config/include/freertos/FreeRTOSConfig.h:62,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32-libs/esp32s3/include/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:63,
                 from D:/Projects/pvstest/.pio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33:
D:/Projects/pvstest/.pio/packages/toolchain-riscv32-esp/riscv32-esp-elf/include/sys/reent.h:818:9: note: this is the location of the previous definition
  818 | #define _REENT_ERRNO(_ptr) (_tls_errno)
      |         ^~~~~~~~~~~~

Error: pvs-studio failed to perform check! Please examine tool output in verbose mode.
========================================= [FAILED] Took 7.71 seconds ========================================= 

Environment    Tool        Status    Duration
-------------  ----------  --------  ------------
s3_mini        pvs-studio  FAILED    00:00:07.705
==================================== 1 failed, 0 succeeded in 00:00:07.705 ====================================

Visual Studio Code: 1.101.2
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
ОС: Windows_NT x64 10.0.22631
PlatformIO Core: 6.1.18
PlatformIO Home: 3.4.4
Arduino Release v3.2.0 based on ESP-IDF v5.4.1

Can this be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions