Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Build Tools    [ Add a report in this area ]  
Report #:  73466   Status: Reported
Not able to build Delphi 2009 projects with msbuild
Project:  Delphi Build #:  16989
Version:    12.0 Submitted By:   Ann-Louise Olausson
Report Type:  Crash / Data loss / Total failure Date Reported:  4/29/2009 1:16:15 AM
Severity:    Serious / Highly visible problem Last Updated: 10/21/2009 5:54:39 PM
Platform:    All versions Internal Tracking #:  
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Building my project in IDE works ok but when I build it with msbuild in command prompt I get this error:

C:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets(130,3): error : MyProject.dpr(186) Fatal: F1026 File not found: 'UGenericAdvTools.dcu'

Why do I get this error with msbuild and not in IDE? How do I fix it?

Regards

Ann-Louise
Steps to Reproduce:
1. build the project with msbuild

msbuild F:\build\Src\Project\MyProject.groupproj /t:Build /p:Config=Release /v:m  /property:Platform=AnyCPU

2.  C:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets(130,3): error : MyProject.dpr(186) Fatal: F1026 File not found: 'UGenericAdvTools.dcu' is thrown.
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 4/29/2009 5:46:03 AM -
Your Build No seems to be old.
Have you already applied Update1,Update2?
After applying Update2, 'Build No' becomes 12.0.3210.17555.

Ann-Louise Olausson at 4/29/2009 6:49:40 AM -
I have now added the update 1 and 2. It still doesn´t work. Now the build number is 17555.

Tomohiro Takahashi at 4/29/2009 11:46:51 PM -
Do you get more helpful information using '/v:diag' command line option?

Ann-Louise Olausson at 4/30/2009 12:41:42 AM -
No I did not. This is the information I got from msbuild:

C:\Program Files\CodeGear\RAD Studio\6.0\bin\dcc32.exe -$O- -$J+ -$Y
- --no-config -M -Q -DJVS32CLIENT;RELEASE -EK:\New\Project\Jvs32\Jvs32Client -I.
.\..\..\comp\GENDELPHICOMP\Eurekalog\6.0.17\Delphi12;..\..\..\comp\DELPHI\systoo
ls2;..\..\..\comp\DELPHI\topgrid201_d5;..\..\..\comp\DELPHI;..\..\..\comp\GENDEL
PHICOMP\RichTextEditor\11.03;..\..\..\comp\DELPHI\_Delphi12\rtl\win;..\..\..\com
p\DELPHI\_Delphi12\vcl;"..\..\..\comp\GENDELPHICOMP\TMS Component Pack Pro\5.0";
"..\..\..\comp\GENDELPHICOMP\ICS fpiette\6.18";..\..\..\comp\DELPHI\_Delphi12\vc
l\Imaging\JPGImage;..\..\..\comp\DELPHI\_Delphi12\vcl\Imaging\PNGImage;..\..\..\
comp\GENDELPHICOMP;..\..\..\comp\GENDELPHICOMP\TeeChart\8.04;"C:\Program Files\C
odeGear\RAD Studio\6.0\lib";" \Imports";" C:\Program Files\CodeGear\RAD Studio\6
.0\Imports";"C:\Program Files\CodeGear\RAD Studio\6.0\Lib\Indy10";" C:\Documents
and Settings\All Users\Documents\RAD Studio\6.0\Dcp";" C:\Program Files\CodeGea
r\RAD Studio\6.0\include";" C:\Program Files\CodeGear\RAD Studio\6.0\RaveReports
\Lib" -LE"C:\Documents and Settings\All Users\Documents\RAD Studio\6.0\Bpl" -LN"
C:\Documents and Settings\All Users\Documents\RAD Studio\6.0\Dcp" -N0..\..\..\..
\Tmp -NH..\..\..\..\Tmp -NO..\..\..\..\Tmp -O..\..\..\Comp\Delphi\Systools2;..\.
.\..\Comp\Delphi\topgrid201_d5;..\..\..\Comp\Delphi\_Delphi11\vcl;..\..\..\Comp\
Delphi\_Delphi11\toolsapi;..\..\..\Comp\Delphi\_Delphi11\rtl\win;..\..\..\Comp\D
elphi\SyntaxMemo\Delphi6;..\..\..\Comp\GenDelphiComp\TPngImage\1.564;..\..\..\co
mp\GenDelphiComp\TeeChart\7.11\Sources;..\..\..\comp\GenDelphiComp;"..\..\..\com
p\GenDelphiComp\TMS Component Pack Pro\4.3";..\..\..\Comp\Delphi;..\..\..\Comp\G
enDelphiComp\RichTextEditor\1.9.24;..\..\..\comp\GenDelphiComp\Eurekalog\6.0.13\
Delphi11;"C:\Program Files\CodeGear\RAD Studio\6.0\lib";" \Imports";" C:\Program
Files\CodeGear\RAD Studio\6.0\Imports";"C:\Program Files\CodeGear\RAD Studio\6.
0\Lib\Indy10";" C:\Documents and Settings\All Users\Documents\RAD Studio\6.0\Dcp
";" C:\Program Files\CodeGear\RAD Studio\6.0\include";" C:\Program Files\CodeGea
r\RAD Studio\6.0\RaveReports\Lib" -R..\..\..\Comp\Delphi\Systools2;..\..\..\Comp
\Delphi\topgrid201_d5;..\..\..\Comp\Delphi\_Delphi11\vcl;..\..\..\Comp\Delphi\_D
elphi11\toolsapi;..\..\..\Comp\Delphi\_Delphi11\rtl\win;..\..\..\Comp\Delphi\Syn
taxMemo\Delphi6;..\..\..\Comp\GenDelphiComp\TPngImage\1.564;..\..\..\comp\GenDel
phiComp\TeeChart\7.11\Sources;..\..\..\comp\GenDelphiComp;"..\..\..\comp\GenDelp
hiComp\TMS Component Pack Pro\4.3";..\..\..\Comp\Delphi;..\..\..\Comp\GenDelphiC
omp\RichTextEditor\1.9.24;..\..\..\comp\GenDelphiComp\Eurekalog\6.0.13\Delphi11;
"C:\Program Files\CodeGear\RAD Studio\6.0\lib";" \Imports";" C:\Program Files\Co
deGear\RAD Studio\6.0\Imports";"C:\Program Files\CodeGear\RAD Studio\6.0\Lib\Ind
y10";" C:\Documents and Settings\All Users\Documents\RAD Studio\6.0\Dcp";" C:\Pr
ogram Files\CodeGear\RAD Studio\6.0\include";" C:\Program Files\CodeGear\RAD Stu
dio\6.0\RaveReports\Lib" -U..\..\..\comp\GENDELPHICOMP\Eurekalog\6.0.17\Delphi12
;..\..\..\comp\DELPHI\systools2;..\..\..\comp\DELPHI\topgrid201_d5;..\..\..\comp
\DELPHI;..\..\..\comp\GENDELPHICOMP\RichTextEditor\11.03;..\..\..\comp\DELPHI\_D
elphi12\rtl\win;..\..\..\comp\DELPHI\_Delphi12\vcl;"..\..\..\comp\GENDELPHICOMP\
TMS Component Pack Pro\5.0";"..\..\..\comp\GENDELPHICOMP\ICS fpiette\6.18";..\..
\..\comp\DELPHI\_Delphi12\vcl\Imaging\JPGImage;..\..\..\comp\DELPHI\_Delphi12\vc
l\Imaging\PNGImage;..\..\..\comp\GENDELPHICOMP;..\..\..\comp\GENDELPHICOMP\TeeCh
art\8.04;"C:\Program Files\CodeGear\RAD Studio\6.0\lib";" \Imports";" C:\Program
Files\CodeGear\RAD Studio\6.0\Imports";"C:\Program Files\CodeGear\RAD Studio\6.
0\Lib\Indy10";" C:\Documents and Settings\All Users\Documents\RAD Studio\6.0\Dcp
";" C:\Program Files\CodeGear\RAD Studio\6.0\include";" C:\Program Files\CodeGea
r\RAD Studio\6.0\RaveReports\Lib" -GD -W-UNSUPPORTED_CONSTRUCT   Jvs32Client.dpr

            The "DCC" task is using "dcc" from "C:\Program Files\CodeGear\RAD St
udio\6.0\bin\dcc32.exe".
            CodeGear Delphi for Win32 compiler version 20.0
            Copyright (c) 1983,2008 CodeGear

            C:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets
(130,3): error : Myproject.dpr(186) Fatal: F1026 File not found: 'UGenericAdvT
ools.dcu'
            The command exited with code 1.
          Done executing task "DCC" -- FAILED.
        Done building target "CoreCompile" in project "Myproject.dproj" -- FAI
LED.

        Done building project "Myproject.dproj" -- FAILED.
      Done executing task "MSBuild" -- FAILED.
    Done building target "Myproject" in project "Myproj.groupproj" -- FAILED.
  Done executing task "CallTarget" -- FAILED.
Done building target "Build" in project "Myproj.groupproj" -- FAILED.

Done building project "Myproj.groupproj" -- FAILED.

Tomohiro Takahashi at 5/1/2009 12:01:21 AM -
You are using EurekaLog 6.0.17?
If so, please try to update EurekaLog. The latest version 6.0.20.

Ann-Louise Olausson at 5/4/2009 12:20:39 AM -
Have updated to 6.0.20. Still same problem...

Ann-Louise Olausson at 6/1/2009 1:55:27 AM -
When I used bds.exe from the command line to build it all worked ok. But when I use msbuild dcc32  it is throwing the error message File Not found.

Tomohiro Takahashi at 6/1/2009 5:03:38 AM -
Could you please attach sample project(s) to reproduce your issue?

Ann-Louise Olausson at 10/20/2009 4:56:58 AM -
Hi again!

I have some more information about the problem. It seems as if there are some problem with msbuild and compiler directives.

We have compiler directives set for the use of different units in the uses clause.  First we build a project that refers to some units and dcu:s are created. When the next project that refers to the same unit are built the dcu are not recreated and refers to "wrong" dcu with other compiler directives. I can reproduce this by using compile all in Delphi 2009. But when I choose build all, the problem does not occur.

We have temporary solved our problem with msbuild by deleting all .dcu:s created in output folder before building next project.

In Delphi 2007 we do not get this problem  when we use compiler directives as described above.

Have you changed the way msbuild works between Delphi 2007 and Delphi 2009?

Regards
Ann-Louise Olausson

Server Response from: ETNACODE01