Failure to run executable in $PATH as part of build step

In my Ubuntu Linux TeamCity environment, there is an executable "arm-linuxeabi-gcc" in the relative path "tools/arm-2010q1/bin". The $PATH variable is setup properly. I still get the error "Command not found" for arm-uclinuxeabi-gcc.

Below is a snap shot showing the 3 active steps:
1. (disabled)
2. Echo env. This confirms PATH contains "/root/TeamCity/buildAgent/work/249912fb5c02647e/tools/arm-2010q1/bin"
3. List directory contents of "/root/TeamCity/buildAgent/work/249912fb5c02647e/tools/arm-2010q1/bin" shows "arm-uclinuxeabi-gcc"
4. (disabled)
5. Make fails "arm-uclinuxeabi-gcc: Command not found"

I believe steps 2 and 3 confirm that the directory structure is correct. Why can't TeamCity (user root) call arm-uclinuxeabi-gcc even though it's present in the previous steps?

Output below.

[09:10:26]TeamCity server version is 8.1.2 (build 29993)
[09:10:26]Checking for changes
[09:10:26]Will collect changes in 1 VCS roots
[09:10:26]Waiting for completion of current operations for the VCS roots
[09:10:26]Loading current repository state for VCS root 'https://DELETED FOR PRIVACY/'
[09:10:26]Detecting changes in VCS root 'https://DELETED FOR PRIVACY/' (used in BuildConfig1)
[09:10:26]Agent time zone: America/Denver
[09:10:26]Agent is running under JRE: 1.7.0_55-b14
[09:10:26]Publishing internal artifacts
[09:10:27][Publishing internal artifacts] Sending using WebPublisher
[09:10:27][Publishing internal artifacts] Sending using ArtifactsCachePublisher
[09:10:26]Clearing temporary directory: /root/TeamCity/buildAgent/temp/buildTmp
[09:10:27]Checkout directory: /root/TeamCity/buildAgent/work/249912fb5c02647e
[09:10:27]Updating sources: server side checkout
[09:10:27][Updating sources] Using vcs information from agent file: 249912fb5c02647e.xml
[09:10:27][Updating sources] Building incremental patch for VCS root: https://xetawave.devguard.com/svn/xw/trunk/Ethernet/uCLinux/linux-K70-1.11.0/linux-cortexm-1.11.0/; checkout rules: =>; revision: 3414 --> 3414
[09:10:27][Updating sources] Repository sources transferred
[09:10:27]##teamcity[buildStatisticValue key='buildStageDuration:sourcesUpdate' value='383.0']
[09:10:27]Step 1/5: Activate build environment (Command Line)
[09:10:27][Step 1/5] Disabled build step Activate build environment (Command Line) is skipped
[09:10:27]Step 2/5: Verify build environment (Command Line)
[09:10:27][Step 2/5] ##teamcity[buildStatisticValue key='buildStageDuration:firstStepPreparation' value='57.0']
[09:10:27][Step 2/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='0.0']
[09:10:27][Step 2/5] Starting: env
[09:10:27][Step 2/5] in directory: /root/TeamCity/buildAgent/work/249912fb5c02647e
[09:10:27][Step 2/5] TERM=xterm
[09:10:27][Step 2/5] LESSCLOSE=/usr/bin/lesspipe %s %s
[09:10:27][Step 2/5] SUDO_UID=1000
[09:10:27][Step 2/5] JRE_17=/usr/lib/jvm/default-java
[09:10:27][Step 2/5] MAIL=/var/mail/root
[09:10:27][Step 2/5] XDG_SESSION_COOKIE=8b9019496cf73133560f0132525486e8-1399644669.991593-402798217
[09:10:27][Step 2/5] PWD=/root/TeamCity/buildAgent/bin
[09:10:27][Step 2/5] SUDO_USER=xetawave
[09:10:27][Step 2/5] BUILD_NUMBER=27
[09:10:27][Step 2/5] TEAMCITY_PROCESS_PARENT_FLOW_ID=
[09:10:27][Step 2/5] TMPDIR=/root/TeamCity/buildAgent/temp/buildTmp
[09:10:27][Step 2/5] TMP=/root/TeamCity/buildAgent/temp/buildTmp
[09:10:27][Step 2/5] TEAMCITY_BUILDCONF_NAME=BuildConfig1
[09:10:27][Step 2/5] SUDO_GID=1000
[09:10:27][Step 2/5] PATH=/root/TeamCity/buildAgent/work/249912fb5c02647e/tools/bin:/root/TeamCity/buildAgent/work/249912fb5c02647e/tools/arm-2010q1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[09:10:27][Step 2/5] MCU=K70
[09:10:27][Step 2/5] XAUTHORITY=/home/xetawave/.Xauthority
[09:10:27][Step 2/5] XDG_SEAT=seat0
[09:10:27][Step 2/5] TEAMCITY_VERSION=8.1.2 (build 29993)
[09:10:27][Step 2/5] XDG_SESSION_ID=c2
[09:10:27][Step 2/5] USERNAME=root
[09:10:27][Step 2/5] XDG_VTNR=7
[09:10:27][Step 2/5] SHLVL=1
[09:10:27][Step 2/5] COLORTERM=gnome-terminal
[09:10:27][Step 2/5] BUILD_VCS_NUMBER=3414
[09:10:27][Step 2/5] JRE_17_x64=/usr/lib/jvm/default-java
[09:10:27][Step 2/5] TEMP=/root/TeamCity/buildAgent/temp/buildTmp
[09:10:27][Step 2/5] TOOLCHAIN=arm-2010q1
[09:10:27][Step 2/5] TOOLS_PATH=/root/TeamCity/buildAgent/work/249912fb5c02647e/tools
[09:10:27][Step 2/5] LOGNAME=root
[09:10:27][Step 2/5] CROSS_COMPILE_APPS=arm-uclinuxeabi-
[09:10:27][Step 2/5] TEAMCITY_PROCESS_FLOW_ID=3730413303793
[09:10:27][Step 2/5] _=bin/runAll.sh
[09:10:27][Step 2/5] CROSS_COMPILE=arm-uclinuxeabi-
[09:10:27][Step 2/5] LD_LIBRARY_PATH=:.
[09:10:27][Step 2/5] OLDPWD=/root/TeamCity/buildAgent/bin
[09:10:27][Step 2/5] SHELL=/bin/bash
[09:10:27][Step 2/5] TEAMCITY_CAPTURE_ENV=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -jar /root/TeamCity/buildAgent/plugins/environment-fetcher/bin/env-fetcher.jar
[09:10:27][Step 2/5] LANGUAGE=en_US
[09:10:27][Step 2/5] JRE_HOME=/usr/bin/..
[09:10:27][Step 2/5] DISPLAY=:0
[09:10:27][Step 2/5] USER=root
[09:10:27][Step 2/5] HOME=/root
[09:10:27][Step 2/5] CROSS_PATH=/root/TeamCity/buildAgent/work/249912fb5c02647e/arm-2010q1/bin
[09:10:27][Step 2/5] LESSOPEN=| /usr/bin/lesspipe %s
[09:10:27][Step 2/5] BUILD_VCS_NUMBER_UcLinux_DELETEDFORPRIVACY=3414
[09:10:27][Step 2/5] TEAMCITY_BUILD_PROPERTIES_FILE=/root/TeamCity/buildAgent/temp/buildTmp/teamcity.build7963408343861188751.properties
[09:10:27][Step 2/5] LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
[09:10:27][Step 2/5] SUDO_COMMAND=/bin/su
[09:10:27][Step 2/5] TEAMCITY_PROJECT_NAME=ucLinux
[09:10:27][Step 2/5] LANG=en_US.UTF-8
[09:10:27][Step 2/5] INSTALL_ROOT=/root/TeamCity/buildAgent/work/249912fb5c02647e
[09:10:27][Step 2/5] Process exited with code 0
[09:10:27][Step 2/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='125.0']
[09:10:27]Step 3/5: Print (Command Line)
[09:10:27][Step 3/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_3' value='0.0']
[09:10:27][Step 3/5] Starting: ls
[09:10:27][Step 3/5] in directory: /root/TeamCity/buildAgent/work/249912fb5c02647e/tools/arm-2010q1/bin
[09:10:27][Step 3/5] arm-uclinuxeabi-addr2line
[09:10:27][Step 3/5] arm-uclinuxeabi-ar
[09:10:27][Step 3/5] arm-uclinuxeabi-as
[09:10:27][Step 3/5] arm-uclinuxeabi-c++
[09:10:27][Step 3/5] arm-uclinuxeabi-c++filt
[09:10:27][Step 3/5] arm-uclinuxeabi-cpp
[09:10:27][Step 3/5] arm-uclinuxeabi-elf2flt
[09:10:27][Step 3/5] arm-uclinuxeabi-flthdr
[09:10:27][Step 3/5] arm-uclinuxeabi-g++
[09:10:27][Step 3/5] arm-uclinuxeabi-gcc
[09:10:27][Step 3/5] arm-uclinuxeabi-gcc-4.4.1
[09:10:27][Step 3/5] arm-uclinuxeabi-gcov
[09:10:27][Step 3/5] arm-uclinuxeabi-gdb
[09:10:27][Step 3/5] arm-uclinuxeabi-gdbtui
[09:10:27][Step 3/5] arm-uclinuxeabi-gprof
[09:10:27][Step 3/5] arm-uclinuxeabi-ld
[09:10:27][Step 3/5] arm-uclinuxeabi-ld.real
[09:10:27][Step 3/5] arm-uclinuxeabi-nm
[09:10:27][Step 3/5] arm-uclinuxeabi-objcopy
[09:10:27][Step 3/5] arm-uclinuxeabi-objdump
[09:10:27][Step 3/5] arm-uclinuxeabi-ranlib
[09:10:27][Step 3/5] arm-uclinuxeabi-readelf
[09:10:27][Step 3/5] arm-uclinuxeabi-size
[09:10:27][Step 3/5] arm-uclinuxeabi-sprite
[09:10:27][Step 3/5] arm-uclinuxeabi-strings
[09:10:27][Step 3/5] arm-uclinuxeabi-strip
[09:10:27][Step 3/5] Process exited with code 0
[09:10:27][Step 3/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_3' value='86.0']
[09:10:27]Step 4/5: Activate build environment (1) (Command Line)
[09:10:27][Step 4/5] Disabled build step Activate build environment (1) (Command Line) is skipped
[09:10:27]Step 5/5: Make (Command Line)
[09:10:27][Step 5/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_2' value='0.0']
[09:10:27][Step 5/5] Starting: make
[09:10:27][Step 5/5] in directory: /root/TeamCity/buildAgent/work/249912fb5c02647e/projects/xv-nic
[09:10:27][Step 5/5] cp -f /root/TeamCity/buildAgent/work/249912fb5c02647e/linux/initramfs-list-min.stub \
[09:10:27][Step 5/5] /root/TeamCity/buildAgent/work/249912fb5c02647e/linux/initramfs-list-min
[09:10:27][Step 5/5] rm -f /root/TeamCity/buildAgent/work/249912fb5c02647e/linux/usr/initramfs_data.cpio \
[09:10:27][Step 5/5] /root/TeamCity/buildAgent/work/249912fb5c02647e/linux/usr/initramfs_data.cpio.gz
[09:10:27][Step 5/5] cp -f xv-nic.kernel.K70 /root/TeamCity/buildAgent/work/249912fb5c02647e/linux/.config
[09:10:27][Step 5/5] make -C /root/TeamCity/buildAgent/work/249912fb5c02647e/linux vmlinux
[09:10:27][Step 5/5] make[1]: arm-uclinuxeabi-gcc: Command not found
[09:10:27][Step 5/5] make[1]: Entering directory `/root/TeamCity/buildAgent/work/249912fb5c02647e/linux'
[09:10:28][Step 5/5] scripts/kconfig/conf -s arch/arm/Kconfig
[09:10:28][Step 5/5] make[1]: Leaving directory `/root/TeamCity/buildAgent/work/249912fb5c02647e/linux'
[09:10:28][Step 5/5] make[1]: arm-uclinuxeabi-gcc: Command not found
[09:10:28][Step 5/5] make[1]: Entering directory `/root/TeamCity/buildAgent/work/249912fb5c02647e/linux'
[09:10:28][Step 5/5] CHK include/linux/version.h
[09:10:28][Step 5/5] CHK include/generated/utsrelease.h
[09:10:28][Step 5/5] make[2]: `include/generated/mach-types.h' is up to date.
[09:10:28][Step 5/5] CC kernel/bounds.s
[09:10:28][Step 5/5] /bin/sh: 1: arm-uclinuxeabi-gcc: not found
[09:10:28][Step 5/5] make[1]: Leaving directory `/root/TeamCity/buildAgent/work/249912fb5c02647e/linux'
[09:10:28][Step 5/5] make[2]: *** [kernel/bounds.s] Error 127
[09:10:28][Step 5/5] make[1]: *** [prepare0] Error 2
[09:10:28][Step 5/5] make: *** [_prepare_modules] Error 2
[09:10:28][Step 5/5] Process exited with code 2
[09:10:28][Step 5/5] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_2' value='613.0']
[09:10:28][Step 5/5] Step Make (Command Line) failed
[09:10:28]##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='44.0']
[09:10:28]Publishing internal artifacts
[09:10:28][Publishing internal artifacts] Sending using WebPublisher
[09:10:28][Publishing internal artifacts] Sending using ArtifactsCachePublisher
[09:10:28]##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='348.0']
[09:10:28]Build finished
1 comment
Comment actions Permalink

Does it execute correctly if you go directly to the agend and try to run it?
Does it have correct execution permission set?

0

Please sign in to leave a comment.