Forum Discussion
Hi,
Thanks a lot for your reply!
Yes, I created an account (named svc_teamcity) and granted it admin features.
With this account I successfully installed both SoC EDS (Intel SoC FPGA Embedded Development Suite, 18.1 Standard) and NIOS II EDS (Quartus Prime Lite Edition, 18.1).
The problem described in my previous message is NOT about NIOS II EDS but about SoC EDS. The targeted Altera chip is Cyclone V (part number 5CSEBA4U23C8N, with Dual ARM).
We use Eclipse to develop the software for Cyclone V (I think this is the default development environment provided by Intel Altera).
On the virtual machine, where I installed SoC EDS + NIOS II EDS + TeamCity agent service, we use the command-line version of Eclipse (eclipsec) to compile the software.
When I run eclipsec with TeamCity I get this error (see title of the thread):
Toolchain required to build project is not registered: Altera Baremetal GCC
The strange thing is that the build successfully runs when I login with "svc_teamcity" and run the same command-line directly e.g.:
C:\Windows\system32\cmd.exe /k "C:\altera\18.1\embedded\Embedded_Command_Shell.bat" D:/BuildAgentData1/work/d908518b686f8579/build/dbm2_boot_build.shSo, I expect that some setting is needed to fix the problem. I could not figure out which setting this is. That's the reason I request for help.
The build-script works with Altera 15.1, although I had to fix a problem with the SYSTEM account: "Failed to query My Documents directory". I fixed this problem (with Altera 15.1) by adding a registry key for the SYSTEM account (S-1-5-18):
REG ADD "HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" /t REG_SZ /d "C:\ProgramData" /fTo understand the context of the problem it may be helpful to show the complete content of the build script that is used to compile the software with eclipsec.
The command-line that is used to start the build-script is e.g.:
C:\Windows\system32\cmd.exe /c "C:\altera\18.1\embedded\Embedded_Command_Shell.bat" D:/BuildAgentData1/work/d908518b686f8579/build/dbm2_boot_build.shAn example of a build-script that we use (this works with Altera SoC EDS 15.1 but not with 18.1) is:
#!/bin/bash
# Builds the ECSW projects with the command-line version of eclipse: eclipsec
# See documentation: http://infocenter.arm.com/help/topic/com.arm.doc.dui0478u/ris1421682431227.html
export SCRIPT_DIR_CYGWIN=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export SCRIPT_DIR=$(cygpath -m -a ${SCRIPT_DIR_CYGWIN})
export CONFIGURATION_DIR_CYGWIN=$(cd ${SCRIPT_DIR}/.. && pwd)
export CONFIGURATION_DIR=$(cygpath -m -a ${CONFIGURATION_DIR_CYGWIN})
# Add root directories of projects to build to the next line
PROJECTS_TO_BUILD="test_baremetal Cyclone_V_ucos_port Cyclone_V_infra dbm2_infra dbm2_preloader dbm2_recovery"
retval=0
FAILED_PROJECTS=
TEMP_WORKSPACE_DIR=${CONFIGURATION_DIR}/workspace/headless_$$
pushd ${CONFIGURATION_DIR} > /dev/null
rm -fRv ${TEMP_WORKSPACE_DIR}
mkdir -p -v ${TEMP_WORKSPACE_DIR}
ECHO $(date) Script directory: ${SCRIPT_DIR}, Configuration directory: ${CONFIGURATION_DIR} ...
which eclipsec
ECHO Dump the environment with env
env
# Import and clean the projects
for project in ${PROJECTS_TO_BUILD}
do
ECHO "##teamcity[blockOpened name='importing ${project}']"
COMMAND_TO_RUN="eclipsec --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ${TEMP_WORKSPACE_DIR} -import /${CONFIGURATION_DIR}/${project}"
ECHO Excecuting: ${COMMAND_TO_RUN}
${COMMAND_TO_RUN}
lastRetval=$?
if [ $retval -eq 0 ]; then
retval=$lastRetval
fi
if [ $lastRetval -ne 0 ]; then
FAILED_PROJECTS="${FAILED_PROJECTS} ${project}:failed to import"
fi
ECHO "##teamcity[blockClosed name='importing ${project}']"
done
# Now build the projects
for project in ${PROJECTS_TO_BUILD}
do
ECHO "##teamcity[blockOpened name='building ${project}']"
COMMAND_TO_RUN="eclipsec --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ${TEMP_WORKSPACE_DIR} -build ${project}"
ECHO Excecuting: ${COMMAND_TO_RUN}
${COMMAND_TO_RUN}
lastRetval=$?
if [ $retval -eq 0 ]; then
retval=$lastRetval
fi
if [ $lastRetval -ne 0 ]; then
FAILED_PROJECTS="${FAILED_PROJECTS} ${project}:failed to build"
fi
ECHO "##teamcity[blockClosed name='building ${project}']"
done
rm -fRv ${TEMP_WORKSPACE_DIR}
ECHO ===================================
ECHO Return value: $retval
if [ "${FAILED_PROJECTS}" != "" ]; then
ECHO Failed projects: ${FAILED_PROJECTS}
fi
ECHO ===================================
popd > /dev/null
exit $retvalUntil now we did not yet try version 18.1 of NIOS II EDS on the virtual machine with TeamCity. Some software engineers are still busy to prepare this. They try to upgrade from older Altera versions to the latest version.
The targeted Altera chip for NIOS II EDS is e.g. Cyclone IV (part number EP4CE30F23C7N) and Cyclone V (5CGXFC5C7F23C8N).
In any case, I appreciate your answers and help. Thanks!
I expect that it has something to do with the integration between Altera tooling and DS5. Therefore I will investigate the settings on these pages:
* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0529m/pge1399635613963.html