Error: E2288 File name too long

1.5k views Asked by At

I am attempting to compile a Delphi project in TeamCity (http://www.jetbrains.com/teamcity/) using a command line runner. For each project, I get a "File name too long" error. The project(s) compile successfully in the Delphi IDE. I've even tried building the project from the buildagent directory (in this case: C:\TeamCity\buildAgent\work\cbe5a74bfd8678cb\iqwin_2013\Iqworkflow), and it compiles there as well. This particular command line build has also worked in the past on a different environment.

Error:

[15:18:45]Step 2/50: iqworkflow (Command Line)
[15:18:45][Step 2/50] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script5211313096540988416.cmd
[15:18:45][Step 2/50] in directory: C:\TeamCity\buildAgent\work\cbe5a74bfd8678cb\iqwin_2013\Iqworkflow
[15:18:45][Step 2/50] Embarcadero Delphi for Win32 compiler version 22.0
[15:18:45][Step 2/50] Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] IQWorkflow.dpr(1) Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)
[15:18:45][Step 2/50] Process exited with code 1
[15:18:45][Step 2/50] Step iqworkflow (Command Line) failed
  • System.pas can be found in C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\source\rtl\sys
1

There are 1 answers

0
invertigo On BEST ANSWER

The problem ended up being a particular path (out of about 50, so it wasn't immediately evident) in my library path arguments that had a space in it, but was not in double-quotes.

Broken: C:\test folder\lib

Fixed: "C:\test folder\lib"