Arctic Studio Troubleshooting
From Arctic Core - the open source AUTOSAR embedded platform
Contents |
Mercurial
'Process error, return code: -1, message: destination directory: arc-stable' when trying to clone a repository.
- This is probably due to spaces in your installation path. See #Miscellaneous_fixes.
Building
'Cannot run program "make"'
- Check that Build directory under Project Properties --> C/C++ Build is set correctly, and that it contains no spaces.
- If you use the Eclipse workspace_loc macro, the correct format is
-
${workspace_loc:/<source-dir>} - where <source-dir> is the name of the Arctic Core source folder in your workspace.
- Check the PATH variable in Project Properties --> C/C++ Build --> Environment. It should be set to
-
${STUDIO_CYGWIN_PATH}
- Also check that the STUDIO_CYGWIN_PATH variable actually points where it should. From command-line, issue
-
set STUDIO_CYGWIN_PATH
- It should give you the path to the cygwin/bin directory in your Arctic Studio installation directory. If it doesn't, you can edit it like this.
'/boards/board_common.mk: No such file or directory'
- Se the first tip in section 'Cannot run program "make"'.
Another Cygwin installation in PATH
The Arctic Studio toolchain requires specific versions or builds of the build tools. These are included in the bundled Cygwin install. If another installation of Cygwin is in your PATH, problems will probably ensue. To make sure that the right tools are used, go to Project Properties --> C/C++ Build --> Environment and select Replace native environment with specified one.
/bin/sh: gawk: command not found
The make system uses gawk to compile intermediate files and extract RAM and ROM usage from the build. If you get this error, you are not running Arctic Studio, but probably compile from Linux or some other environment. The solution is to install gawk.
Install gawk in Ubuntu
- As a user with sudo permissions (listed in /etc/sudoers):
-
sudo apt-get install gawk
-
- Or, as root:
-
apt-get install gawk
-
Install gawk for another system
See the user manual of your system, or compile gawk yourself. See http://www.gnu.org/software/gawk/
Proxy problems
If you are behind a proxy Mercurial might not work correctly from within Arctic Studio. In this case you can try to follow way to clone the arc repository.
- Install TortoiseHG
- Go to your workspace directory (probably c:\ArcticStudio\Studio\workspace) in windows.
- Right click and select "Clone a repository" from the TortoiseHG context menu.
- Fill in the url of the repository you want to clone, i.e. http://arccore.com/hg/arc-stable. Clone!
- Open Arctic Studio.
- Create a new project. From the create project wizard chose General->Project.
- Name the project with the same name as the cloned Arctic Core folder has (arc-stable).
- Done! The Arctic Core repository should now be visible in your workspace.
Windows XP
Some users of Arctic Studio 1.3 on Windows XP has experiences problem with the bundled Mercurial installation. To get around this problem install TortoiseHG or Mercurial and change the Mercurial executable in "Windows->Preferences->Team->Mercurial". Point to your new Mercurial installation.
Miscellaneous fixes
- Remember that the installation path of Arctic Studio and the paths to the project source folders must not contain whitespaces. This can be the cause of many errors with cryptic error messages.
- Also bear in mind that recent versions of Windows uses aliases for paths for localization purposes. This means that the paths that you see in Explorer windows etc. might not be the actual system path strings. This is the case for c:\Program which points to c:\Program Files\ in the swedish version of Windows. Hence using an install path such as c:\Program Files\ArcticStudio will not work.
The paths in the problems view of Arctic Studio cannot be related to a file
This problem occurs since Eclipse CDT's built in error parser tries to resolve the cygwin paths using a program called cygpath.exe. This program needs to be in your PATH in order to be found. Simply add {ArcticStudioInstallDir}/cygwin/bin to you PATH in Windows environment settings and restart Arctic Studio.
Migrating projects from Arctic Studio version 1.1 to 1.2
The Arctic Core Toolchain available in Arctic Studio has changes somewhat between release 1.1 and 1.2. This has the effect that projects created in version 1.1 of Arctic Studio will not work with version 1.2. The migration process is simple, just create a new project in version 1.2 and copy the files and settings from your old project to the new one. Note that you won't be able to see the build settings of your old project in the new version of Arctic Studio.