SapphireSteel Forum
Welcome, Guest. Please login or register.
September 02, 2014, 03:13:08 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Sapphire and Amethyst IDEs
4064 Posts in 844 Topics by 703 Members
Latest Member: chris
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Amethyst
| | |-+  Build Error
« previous next »
Pages: [1] Print
Author Topic: Build Error  (Read 2707 times)
rkosko
Jr. Member
**
Posts: 65


« on: April 17, 2012, 02:37:35 PM »

Hi all,

I am building a simple mxml project and I am using 1.5.0.1184

This is the detailed output that fails. There is no mention of what is cauing the failure.

Can you help?

Thank you

Bob

------ Rebuild All started: Project: selene_gateway, Configuration: Release AnyCPU ------
Build started.

Build started.

Build started.
Project "selene_gateway.amproj" (ReBuild target(s)):

Project "selene_gateway.amproj" (ReBuild target(s)):

Project "selene_gateway.amproj" (ReBuild target(s)):
Building with tools version "3.5".

Building with tools version "3.5".
Target "Clean" in project "selene_gateway.amproj"

   Target "Clean" in project "selene_gateway.amproj"

   Target "Clean" in project "selene_gateway.amproj"
   Using "CleanTask" task from assembly "C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\AmethystBuild.dll".

   Using "CleanTask" task from assembly "C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\AmethystBuild.dll".
   Task "CleanTask"

      Task "CleanTask"

      Task "CleanTask"
      Deleting file 'C:\Users\rkosko\seleneGateway_3_4\live\framework_3.5.0.12683.swz':

      Deleting file 'C:\Users\rkosko\seleneGateway_3_4\live\framework_3.5.0.12683.swz':
      Deleting file 'C:\Users\rkosko\seleneGateway_3_4\live\rpc_3.5.0.12683.swz':

      Deleting file 'C:\Users\rkosko\seleneGateway_3_4\live\rpc_3.5.0.12683.swz':
      Deleting file 'C:\Users\rkosko\AppData\Local\Temp\main.xml':

      Deleting file 'C:\Users\rkosko\AppData\Local\Temp\main.xml':

   Done executing task "CleanTask".

   Done executing task "CleanTask".

Done building target "Clean" in project "selene_gateway.amproj".

Done building target "Clean" in project "selene_gateway.amproj".
Target "Initialize" in project "selene_gateway.amproj"

   Target "Initialize" in project "selene_gateway.amproj"

   Target "Initialize" in project "selene_gateway.amproj"
   Task "Message"

      Task "Message"

      Task "Message"
      Output path is "C:\Users\rkosko\seleneGateway_3_4\live\"

      Output path is "C:\Users\rkosko\seleneGateway_3_4\live\"

   Done executing task "Message".

   Done executing task "Message".
   Task "MakeDir"

      Task "MakeDir"

      Task "MakeDir"

   Done executing task "MakeDir".

   Done executing task "MakeDir".

Done building target "Initialize" in project "selene_gateway.amproj".

Done building target "Initialize" in project "selene_gateway.amproj".
Target "ProcessReferences" in project "selene_gateway.amproj"

   Target "ProcessReferences" in project "selene_gateway.amproj"

   Target "ProcessReferences" in project "selene_gateway.amproj"

Done building target "ProcessReferences" in project "selene_gateway.amproj".

Done building target "ProcessReferences" in project "selene_gateway.amproj".
Target "BeforeBuild" skipped, due to false condition; ('$(PreBuildEvent)'!='' ) was evaluated as (''!='' ).

Target "BeforeBuild" skipped, due to false condition; ('$(PreBuildEvent)'!='' ) was evaluated as (''!='' ).
Target "BuildFlash" skipped, due to false condition; ('$(AmethystProjectType)'=='Flash' Or '$(AmethystProjectType)'=='FlashAIR') was evaluated as ('Flex'=='Flash' Or 'Flex'=='FlashAIR').

Target "BuildFlash" skipped, due to false condition; ('$(AmethystProjectType)'=='Flash' Or '$(AmethystProjectType)'=='FlashAIR') was evaluated as ('Flex'=='Flash' Or 'Flex'=='FlashAIR').
Target "BuildSWF" in project "selene_gateway.amproj"

   Target "BuildSWF" in project "selene_gateway.amproj"

   Target "BuildSWF" in project "selene_gateway.amproj"
   Building target "BuildSWF" completely.

   Building target "BuildSWF" completely.
   Output file "C:\Users\rkosko\seleneGateway_3_4\live\main.swf" does not exist.

   Output file "C:\Users\rkosko\seleneGateway_3_4\live\main.swf" does not exist.
   Task "Message"

      Task "Message"

      Task "Message"
      Building SWF for src\main.mxml

      Building SWF for src\main.mxml

   Done executing task "Message".

   Done executing task "Message".
   Using "MXMLCompilerTask" task from assembly "C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\AmethystBuild.dll".

   Using "MXMLCompilerTask" task from assembly "C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\AmethystBuild.dll".
   Task "MXMLCompilerTask"

      Task "MXMLCompilerTask"

      Task "MXMLCompilerTask"
      Compiler timeout set to 120 seconds

      Compiler timeout set to 120 seconds


   Done executing task "MXMLCompilerTask" -- FAILED.

   Done executing task "MXMLCompilerTask" -- FAILED.

Done building target "BuildSWF" in project "selene_gateway.amproj" -- FAILED.

Done building target "BuildSWF" in project "selene_gateway.amproj" -- FAILED.
Done building project "selene_gateway.amproj" -- FAILED.

Done building project "selene_gateway.amproj" -- FAILED.

Done building project "selene_gateway.amproj" -- FAILED.

Build FAILED.

Build FAILED.

Build FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1064


« Reply #1 on: April 17, 2012, 04:25:28 PM »

From the output, it looks like you have managed to run the build at least once since it's deleting the temporary config file from the previous run. Looks like something has gone awol


A couple of suggestions  ...

1) are you using the Compiler Service? Look in Tools | Options | Projects | Amethyst | Compiler Service and try the command line compiler or the service - it might get a bit further.

2) download 1.5.2 ...  there have been several bugs fixed and from what I can see you should be getting more output, specifically the command line that the compiler will run. I can't see that in the output you've got, (I think it was put in for a later build).

3) Obvious things like restart VS and reboot. Also try to build a new 'hello world' sort of project to make sure there's nothing screwy about the project file.

Dermot

Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #2 on: April 18, 2012, 06:15:49 AM »

Hi Dermot

Complier Service is set to True

I will try to download the latest version.

These messages are from a new project where I took the exisiting Flex Project and created a new Amethyst project.

And all these problems happened after a reboot on Monday, last week I was working on this project and had no problems.

Thank you

Bob
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 947



« Reply #3 on: April 18, 2012, 06:25:10 AM »

Curious. I had a compilation problem last week too. It turned out that I'd lost my Java configuration and path. I just downloaded the latest Java and then all was well. I wonder if there might have been some auto-update that changed the Java settings for both of us? Can you go to the command prompt and enter: java to see what you get?
Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #4 on: April 18, 2012, 06:35:43 AM »

Hi Hi

I have not update my Java settings for quite some time. But you could be right about some auto-update.

But I did download the latest Amethysts build and it solved the problem.

Thank you very much

Bob
Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #5 on: April 18, 2012, 06:59:23 AM »

I built the first project with no problem, and now when I am trying to build a second project, I have problems with the compiler service.

Error   1   Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|cannot connect to Compiler Service ... retrying   C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets   225   4   selene_recruiter


I have reboot and restarted the compiler service.

Bob
Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #6 on: April 18, 2012, 07:14:35 AM »

Hu

Here is my java prompt

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\rkosko>java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
    -hotspot      is a synonym for the "server" VM  [deprecated]
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://java.sun.com/javase/reference for more details.
Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #7 on: April 18, 2012, 07:20:50 AM »

my latest news.

I created a new Importer project with the old flex files and still receive the compiler error.

Should I un-install the compiler service prior to the software update?

Bob


here is the outout

Using Compiler Service Amethyst2010CompilerService on port 14410 ... connected.
------ Rebuild All started: Project: selene_gateway, Configuration: Debug AnyCPU ------
Target "Clean" in project "selene_gateway.amproj"
   Task "CleanTask"
Target "Initialize" in project "selene_gateway.amproj"
   Task "Message"
      Output path is "C:\Users\rkosko\seleneGateway_3_4 - Copy\bin-debug\"
   Task "MakeDir"
      Creating directory "C:\Users\rkosko\seleneGateway_3_4 - Copy\bin-debug\".
Target "ProcessReferences" in project "selene_gateway.amproj"
Target "BuildSWF" in project "selene_gateway.amproj"
   Task "Message"
      Building SWF for src\main.mxml
   Task "MXMLCompilerTask"
C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets(228,3): error : Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|cannot connect to Compiler Service ... retrying
C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets(228,3): error : Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|cannot connect to Compiler Service ... retrying
C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets(228,3): error : Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|cannot connect to Compiler Service ... retrying
C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets(228,3): error : Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|failed to connect to Compiler Service
C:\Program Files (x86)\MSBuild\SapphireSteel Software\Amethyst 2010\Amethyst.targets(228,3): error : Unexpected compiler error (length < 6) 'fatal|0|0|0|c:/null|failed to connect to Compiler Service
Done building project "selene_gateway.amproj" -- FAILED.

Build FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


and here is the Amethysy.targets file, offending passage

<MXMLCompilerTask
         Accessible="$(Accessible)"
         AdditionalCompilerArguments="$(AdditionalCompilerArguments)"
         AmethystReference="@(AmethystReference)"
         Compile="@(Compile)"
         CompileCSS="@(CompileCSS)"
         Compiler="$(MXMLCompiler)"
         CompilerPort="$(CompilerPort)"
         CompilerTimeout="$(CompilerTimeout)"
         Content="@(Content)"
         CopyContent="$(CopyContent)"
         CopyHTMLFiles="$(CopyHTMLFiles)"
         Debug="$(Debug)"
         Define="$(Define)"
         ExternalLibraryPath="$(ExternalLibraryPath)"
         Flex3Compatibility="$(Flex3Compatibility)"
         GenerateLinkReport="$(GenerateLinkReport)"
         GlobalConfigurationFile="$(GlobalConfigurationFile)"
         IncludeLibraries="$(IncludeLibraries)"
         IncludeResourceBundles="$(IncludeResourceBundles)"
         Incremental="$(Incremental)"
         KeepAS3Metadata="$(KeepAS3Metadata)"
         KeepGeneratedActionScript="$(KeepGeneratedActionScript)"
         LibraryPath="$(LibraryPath)"
         LocalConfigurationFile="$(LocalConfigurationFile)"
         Locale="$(Locale)"
         MainFile="$(MainFile)"
         MainSourceFolder="$(MainSourceFolder)"
         MergeLibraryPath="$(MergeLibraryPath)"
         Module="@(Module)"
         Optimize="$(Optimize)"
         ProjectDirectory="$(MSBuildProjectDirectory)"
         ProjectName="$(ProjectName)"
         ProjectReferences="$(ProjectReferences)"
         Resource="@(Resource)"
         RuntimeSharedLibraryPath="$(RuntimeSharedLibraryPath)"
         SDKDirectory="$(SDKDirectory)"
         Services="$(Services)"
         ShowActionScriptWarnings="$(ShowActionScriptWarnings)"
         SourcePath="$(SourcePath)"
         StaticLinkRuntimeSharedLibraries="$(StaticLinkRuntimeSharedLibraries)"
         Strict="$(Strict)"
         TargetDir="$(TargetDir)"
         TargetPath="$(TargetPath)"
         TargetPlayerVersion="$(TargetPlayerVersion)"
         Template="$(Template)"
         TemplateMacros="$(TemplateMacros)"
         Trust="$(Trust)"
         UseCompilerService="$(UseCompilerService)"
         UseNetwork="$(UseNetwork)"
         VerboseStacktraces="$(VerboseStacktraces)"
         VerifyDigests="$(VerifyDigests)"
         Version="$(Version)"
         Warnings="$(Warnings)"
     />
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1064


« Reply #8 on: April 18, 2012, 07:35:51 AM »

Hi,

I think the build task may not be able to find the SDK. This is what I get when I try to build a simple project ...
Code:
Target "BuildSWF" in project "FlexApplication3.amproj"

Target "BuildSWF" in project "FlexApplication3.amproj"
Building target "BuildSWF" completely.
Output file "C:\Users\dermot\documents\visual studio 2010\Projects\FlexApplication3\FlexApplication3\bin\Debug\FlexApplication3.swf" does not exist.
Task "Message"

Task "Message"
Building SWF for src\FlexApplication3.mxml

Done executing task "Message".
Task "MXMLCompilerTask"

Task "MXMLCompilerTask"
Working directory is 'C:\Users\dermot\documents\visual studio 2010\Projects\FlexApplication3\FlexApplication3\bin\Debug\'


-incremental=true -load-config+="C:\Users\dermot\AppData\Local\Temp\FlexApplication3.xml" -output "C:\Users\dermot\documents\visual studio 2010\Projects\FlexApplication3\FlexApplication3\bin\Debug\FlexApplication3.swf" -- "C:\Users\dermot\documents\visual studio 2010\Projects\FlexApplication3\FlexApplication3\src\FlexApplication3.mxml"
Compiler timeout set to 120 seconds
Loading configuration file C:\Flex SDKs\flex_sdk_4.5.1.21328\frameworks\flex-config.xml
Loading configuration file C:\Users\dermot\AppData\Local\Temp\FlexApplication3.xml
C:\Users\dermot\Documents\Visual Studio 2010\Projects\FlexApplication3\FlexApplication3\bin\Debug\FlexApplication3.swf (808511 bytes)

'C:\Users\dermot\documents\visual studio 2010\Projects\FlexApplication3\FlexApplication3\bin\Debug\FlexApplication3.swf' exists in trust file
Compile succeeded

Done executing task "MXMLCompilerTask".

Done building target "BuildSWF" in project "FlexApplication3.amproj".

Notice that after the 'Compiler timout' message I get

Code:
Loading configuration file C:\Flex SDKs\flex_sdk_4.5.1.21328\frameworks\flex-config.xml

and you don't get that. So, can you check the SDK location in the Project properties and also try from a command prompt:

Code:
"C:\Flex SDKs\flex_sdk_4.5.1.21328\bin\mxmlc.exe"

where the SDK path is the one you use. I'm prettys ure we put some extra diagnostics in 1.5.2 to check for things like the SDK missing, which is why (I think) there's some more info before the 'Compiler timout' line.

Dermot

Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #9 on: April 18, 2012, 07:56:28 AM »

Ok First of all,

I am check the update version which says it is

 Amethyst 1.5.2 For Visual Studio 2010 (Build: 1.5.2.1253)

and the link is http://www.sapphiresteel.com/downloads/amethyst_VS2010_1_5_2_1253.zip

but after installation I check the about box and the verison is 1.5.1.1253

Is there an mis-print here?

Second,

I was able to build my first app, the Gateway. Both the original project and the new imported project.

But my second project , the Recruiter, fails to build with the same compiler error.  And I even created a new importer project with the oriiginal code.

I have checked my SDK location and the mxmlc.exe file is there.

Any ideas?

Bob
Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #10 on: April 18, 2012, 08:24:49 AM »

This is where i am at right now.

I have successfully built the two flex projects with the new Importer. I had to restart the Compilier Service and it seems to running.

One of the older Importer projects does not build , but another older importer project does build.

I am perplexed in how I solved this issue and cant really say that it is resolved. I am just happy to get a clean build.

But can you answer me on my previous post about the version mis-match. I am concerned that I am not installing the latest version for some reason.

Thank you

Bob
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1064


« Reply #11 on: April 18, 2012, 08:47:12 AM »

Yes, there's a minor typo in the build number in that zip,  it should read 1.5.2.1253. This has been fixed in 1.5.3. You do have the correct latest build.

The last 4 digits are the important bit - it's our build number from the source control system.

I've just checked the MSBuild (1.5.0 and 1.5.2) task and if it fails, it should produce an error message (it's in a try-catch clause) saying why it did so. In your original output, I cant see such a message - which is very strange. The only thing I can think of is that the Build task ran out of memory or something like that..

So, you still have a problem with one project? What is the trouble there?

Dermot

Logged
rkosko
Jr. Member
**
Posts: 65


« Reply #12 on: April 18, 2012, 09:07:21 AM »

The only problem I have Dermot, is the old Importer Project that still failes to build. I created a newer project with the lastest Amethyst importer and it is working.


As far as I am conserned, as is well.

Of course, until the next problem arrives. Smiley

Thank you for all your help.

Bob
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1064


« Reply #13 on: April 19, 2012, 03:32:59 AM »

I just (accidentally) found out why there is no information produced after the 'Compiler timeout' message ...

it's because the compiler timed out!

It shouldn't timeout, so there's clearly something wrong there, but we will put a better error message into 1.5.3 to deal with this condition. Basically, when the timeout occurs, the build task cleans up and doesn't try to output any data it received.

What I did to resolve this was:

1) Set Use Compiler Service to false
2) Rebuild all (it worked)
3) Set Use Compiler Service back to true and Rebuild All (it now worked fine)

Sometimes the compiler service doesn't 'fire', so I think there's a glitch in there as well.

Dermot
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!