Skip to content

Installation of chipKIT:pic32 platform fails: "no unique root dir in archive" #2131

Not planned
@hemachayart

Description

@hemachayart

Describe the problem

Can't install chipkit url https://github.com/chipKIT32/chipKIT-core/raw/master/package_chipkit_index.json
Got error 13
Failed to install platform: chipKIT:pic32.
Error: 13 INTERNAL: Cannot install tool chipKIT:pic32-tools@1.43-pic32gcc: searching package root dir: no unique root dir in archive, found 'C:\Users........................

To reproduce

Downloading packages
chipKIT:pic32-tools@1.43-pic32gcc
chipKIT:pic32prog@v2.1.46
chipKIT:drivers-windows@v2
chipKIT:pic32@2.1.0
Installing chipKIT:pic32-tools@1.43-pic32gcc

Expected behavior

success

Arduino IDE version

2.0.4

Operating system

Windows

Operating system version

win 11

Additional context

No response

Issue checklist

  • I searched for previous reports in
    I verified the problem still occurs when using the latest
    My report contains all necessary details

Activity

self-assigned this
on Mar 29, 2023
per1234

per1234 commented on Mar 29, 2023

@per1234
Contributor

The problem is the platform's chipKIT:pic32-tools@1.43-pic32gcc tool dependency archive does not have a root folder:

pic32-tools-143-3-win32-image.tar.gz
├── .DS_Store
├── bin/
│   ├── .DS_Store
│   ├── bin/
│   ├── deviceSupport.xml
│   ├── device_files/
│   ├── pic32-addr2line.exe*
│   ├── pic32-ar.exe*
│   ├── pic32-as.exe*
│   ├── pic32-bin2hex.exe*
│   ├── pic32-c++.exe*
│   ├── pic32-c++filt.exe*
│   ├── pic32-cc1.exe*
│   ├── pic32-cc1plus.exe*
│   ├── pic32-collect2.exe*
│   ├── pic32-conv.exe*
│   ├── pic32-cpp.exe*
│   ├── pic32-elfedit.exe*
│   ├── pic32-g++.exe*
│   ├── pic32-gcc.exe*
│   ├── pic32-ld.exe*
│   ├── pic32-nm.exe*
│   ├── pic32-objcopy.exe*
│   ├── pic32-objdump.exe*
│   ├── pic32-ranlib.exe*
│   ├── pic32-readelf.exe*
│   ├── pic32-size.exe*
│   ├── pic32-strings.exe*
│   ├── pic32-strip.exe*
│   └── xc32_device.info
├── lib/
│   ├── gcc/
│   └── libiberty.a
└── pic32mx/
    ├── .DS_Store
    ├── bin/
    ├── device_files/
    ├── include/
    ├── lib/
    └── xc32_device.info

Compare that to the structure of the arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7 archive:

avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32.zip
└── avr/
    ├── avr/
    ├── bin/
    ├── i686-w64-mingw32/
    ├── include/
    ├── lib/
    └── libexec/

This less permissive behavior of Arduino CLI (and thus Arduino IDE 2.x) compared to Arduino IDE 1.x was previously reported at #325. The developers decided that Arduino CLI's current strict enforcement of the correct archive structure will not be relaxed.

So this is a bug in the "chipKIT" boards platform. You should report it to the maintainers of the platform:

https://github.com/chipKIT32/chipKIT-core/issues

Workaround

As a workaround, you can use Arduino IDE 1.x to install the platform. After that, Arduino IDE 2.x will recognize the existing installation just fine so you don't need to continue to use Arduino IDE 1.x if you don't like.

The download links for Arduino IDE 1.x are listed here:

https://www.arduino.cc/en/software#legacy-ide-18x

Instructions for using the Arduino IDE 1.x Boards Manager are here:

https://docs.arduino.cc/learn/starting-guide/cores#how-to-install-a-third-party-core

If you have any questions, feel free to post on Arduino Forum:

https://forum.arduino.cc/

changed the title [-]chipkit url[/-] [+]Installation of `chipKIT:pic32` platform fails: "`no unique root dir in archive`"[/+] on Mar 29, 2023
hemachayart

hemachayart commented on Mar 29, 2023

@hemachayart
Author

thanks will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @per1234@hemachayart

      Issue actions

        Installation of `chipKIT:pic32` platform fails: "`no unique root dir in archive`" · Issue #2131 · arduino/arduino-cli