Troubleshooting
Problem
IBM Rational Build Forge build step fails on agent indicating error with truncated path name.
Symptom
Path name for agent working directory is truncated.
For example, the following "Hello World" build running build with tag BUILD_1 appears as follows:
Unable to set working directory to '/build/Hello_World/BUILD_' (2). (12)
Cause
The agent was built under a 64-bit system (x86-64) as a 64-bit binary.
Diagnosing The Problem
Use the Linux file command to verify the bfagent binary.
For example:
file /usr/local/bin/bfagent
/usr/local/bin/bfagent: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
Resolving The Problem
Install the appropriate 32-bit libraries and the 32-bit gcc libraries (libgcc) to rebuild the agent with the gcc environment variable CFLAGS=-m32.
- Find the appropriate 32-bit libraries
Use the Linux ldd command on the bfagent binary to list the associated library files
- Use the system package manager system to verify the package containing the associated library files.
Under Red Hat Enterprise Linux (RHEL), use the rpm command.
For example: rpm -qf /path/to/libfile
- Install the appropriate 32-bit libraries as needed
- Set the gcc CFLAGS=-m32 environment variable flag
- Rebuild the Build Forge agent
For example:
cd /path/to/bfagent_source
export CFLAGS=-m32
./configure
./make
Was this topic helpful?
Document Information
Modified date:
20 April 2020
UID
swg21509103