It's all about the answers!

Ask a question

Build (definition) fails when keeping workspace between builds which contains symlinks

Christian Schwarzgruber (111) | asked Nov 29 '17, 4:30 a.m.


We have a component in RTC which contains several symlinks, some of which are at will broken. Checking the component out works. However, we have decided to create a build definition for the component to build packages. I created a build definition where I specified the workspace to use, containing the buildroot component. I unchecked "Delete directory before loading" to keep the workspace. Otherwise it would take every time we request a build 3 hours just to build one package.

The first build request worked, but at the second time it seems it tries to load the workspace again, and fails than with the following error.

Fetching files to fetch destination "/home/data2/prj_sw/workspaces/jazzdevel/buildroot_build.nobackup" Unable to create symbolic link /buildroot/system/skeleton/etc/mtab to target ../proc/self/mounts : /home/data2/prj_sw/workspaces/jazzdevel/buildroot_build.nobackup/buildroot/system/skeleton/etc/mtab    at    at$    at    at    at    at    at    at    at$    at$    at    at    at    at    at    at    at    at    at    at$    at by: org.eclipse.core.runtime.CoreException: /home/data2/prj_sw/workspaces/jazzdevel/buildroot_build.nobackup/buildroot/system/skeleton/etc/mtab    at    at    at    at    at    ... 20 moreCaused by: java.nio.file.FileAlreadyExistsException: /home/data2/prj_sw/workspaces/jazzdevel/buildroot_build.nobackup/buildroot/system/skeleton/etc/mtab    at sun.nio.fs.UnixException.translateToIOException(    at sun.nio.fs.UnixException.rethrowAsIOException(    at sun.nio.fs.UnixException.rethrowAsIOException(    at sun.nio.fs.UnixFileSystemProvider.createSymbolicLink(    at java.nio.file.Files.createSymbolicLink(    at    ... 24 more

Product and OS version: RTC 6.0.3, Debian 9

Thank you for your help!

Be the first one to answer this question!

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.