# Developer Studio 5.2 Adding packages broken \[Toolchain\]

**URL:** <https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528>\
**Category:** Legato Application Framework\
**Created:** [July 6, 2017, 7:52am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528 "2017-07-06T07:52:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [July 6, 2017, 7:52am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/1 "2017-07-06T07:52:17Z")

</div>

Seems the tool in devstudio for adding tool chains is broken the work around on linux is as follows

```
cd ~legato/
legato-spm -m ..... -i
```

See  
[https://source.sierrawireless.com/resources/airprime/software/legato\_spm/](https://source.sierrawireless.com/resources/airprime/software/legato_spm/)

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [July 7, 2017, 5:15am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/2 "2017-07-07T05:15:30Z")

</div>

Hi @gregnietsky

Please can you elaborate on what looks to be broken?  
No known issue in 5.2 concerning this so far…

---

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [July 7, 2017, 5:51am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/3 "2017-07-07T05:51:23Z")

</div>

In a new install of DS [from web] going to packages and trying to add the R14 toolchain [i686 or x86\_64] it tries to install but fails.

It is unable to download the toolchain and install it from the package manager in DS i tried it on a clean install and reverted to doing it from the CLI and post here as a FYI … all other packages install fine and even upgrades fine …

It could be my local connection / ISP but does not explain why all other packages work fine …

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [July 7, 2017, 6:28am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/4 "2017-07-07T06:28:18Z")

</div>

Hi @gregnietsky,

is there any URL in the logs?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [July 7, 2017, 6:39am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/5 "2017-07-07T06:39:06Z")

</div>

Yes, please post the logs here  
Workspace logs are stored in **workspace/.metadata/.log**

---

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [July 7, 2017, 9:42am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/6 "2017-07-07T09:42:48Z")

</div>

> [@daav](#):
>
> workspace/.metadata/.log

Thanks ill file that 😃

This looks like what you looking for

```
!ENTRY com.swi.spm.core 4 0 2017-07-05 21:24:51.872
!MESSAGE P2 Install error: An error occurred while collecting items to be installed
!STACK 1
org.eclipse.core.runtime.CoreException: An error occurred while collecting items to be installed
        at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:547)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:325)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installIUInProfile(P2InstallUtil.java:215)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackInTempProfile(P2InstallUtil.java:127)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToTempDir(P2InstallUtil.java:412)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToDir(P2InstallUtil.java:367)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToPlatformPackagesDir(P2InstallUtil.java:384)
        at com.swi.spm.core.pluginmanager.PluginInstaller.installIUs(PluginInstaller.java:292)
        at com.swi.spm.core.delegates.pkg.UpdateSitePathRepositoryImpl2.install(UpdateSitePathRepositoryImpl2.java:110)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.install(InstallFunction.java:72)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.internalRun(InstallFunction.java:37)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at com.swi.commons.core.job.SwiFunction.executeSubtask(SwiFunction.java:99)
        at com.swi.commons.core.job.SwiChainedFunctions.internalRun(SwiChainedFunctions.java:63)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Contains: session context was:(profile=SPMrepo8912094216986233955, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Contains: Unable to write to repository: file:/home/gregory/devstudio/workspace/.metadata/spm.tmp/installedIU/repo8912094216986233955/.
java.io.IOException: Failed to create directory /home/gregory/devstudio/workspace/.metadata/spm.tmp/installedIU/repo8912094216986233955/plugins/com.swi.spm.legato.toolchain.1.7.3.SWI9X15Y_07120900-wp85-wp750x-native-x86_64-201705021320_1.7.3.SWI9X15Y_07120900-wp85-wp750x-native-x86_64-201705021320.
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getOutputStream(SimpleArtifactRepository.java:957)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:279)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:778)
        at org.eclipse.equinox.internal.p2.engine.DownloadManager.fetch(DownloadManager.java:112)
        at org.eclipse.equinox.internal.p2.engine.DownloadManager.start(DownloadManager.java:100)
        at org.eclipse.equinox.internal.p2.engine.phases.Collect.completePhase(Collect.java:104)
        at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:251)
        at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:101)
        at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
        at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:42)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:543)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:325)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installIUInProfile(P2InstallUtil.java:215)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackInTempProfile(P2InstallUtil.java:127)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToTempDir(P2InstallUtil.java:412)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToDir(P2InstallUtil.java:367)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToPlatformPackagesDir(P2InstallUtil.java:384)
        at com.swi.spm.core.pluginmanager.PluginInstaller.installIUs(PluginInstaller.java:292)
        at com.swi.spm.core.delegates.pkg.UpdateSitePathRepositoryImpl2.install(UpdateSitePathRepositoryImpl2.java:110)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.install(InstallFunction.java:72)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.internalRun(InstallFunction.java:37)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at com.swi.commons.core.job.SwiFunction.executeSubtask(SwiFunction.java:99)
        at com.swi.commons.core.job.SwiChainedFunctions.internalRun(SwiChainedFunctions.java:63)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 4 2017-07-05 21:24:51.874
```

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [July 10, 2017, 7:58am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/7 "2017-07-10T07:58:45Z")

</div>

Hi @gregnietsky

Looks similar to [Developer Studio 5.0 - Error installing package - #4 by daav](http://forum.legato.io/t/developer-studio-5-0-error-installing-package/2446/4)  
Are you using an encrypted file system for your home directory?

By the way, using legato-spm is a good workaround since it uses a temporary directory as workspace…

---

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [July 10, 2017, 8:50am UTC](https://forum.legato.io/t/developer-studio-5-2-adding-packages-broken-toolchain/2528/8 "2017-07-10T08:50:20Z")

</div>

Yes i am using and have been using ecrypt to encrypt for a while this popped up only now … i am more a CLI fan but need to make sure it works in the build tool …

Thank you for the feedback.
