Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
hemachayart opened this issue Mar 29, 2023 · 2 comments
Closed
3 tasks done
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@hemachayart
Copy link

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:[email protected]: searching package root dir: no unique root dir in archive, found 'C:\Users........................

To reproduce

Downloading packages
chipKIT:[email protected]
chipKIT:[email protected]
chipKIT:drivers-windows@v2
chipKIT:[email protected]
Installing chipKIT:[email protected]

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 the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@hemachayart hemachayart added the type: imperfection Perceived defect in any part of project label Mar 29, 2023
@per1234 per1234 transferred this issue from arduino/arduino-ide Mar 29, 2023
@per1234 per1234 self-assigned this Mar 29, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Mar 29, 2023
@per1234
Copy link
Contributor

per1234 commented Mar 29, 2023

The problem is the platform's chipKIT:[email protected] 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:[email protected] 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/

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2023
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Mar 29, 2023
@per1234 per1234 changed the title chipkit url Installation of chipKIT:pic32 platform fails: "no unique root dir in archive" Mar 29, 2023
@hemachayart
Copy link
Author

thanks will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants