IBM Rational Build Forge build step fails on agent indicating error with truncated path name.
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)
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.
/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
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.