9 Replies Latest reply: Oct 18, 2014 12:23 AM by www.123bee.com RSS

    Compilation failed while executing : compile-abc

    bill.baldwin Community Member


      This is with the latest AIR 4.0 beta, dated 12/17, with "-useLegacyAOT no" on Mac, OS X 10.9.

       

      0  compile-abc              0x0095d728 PrintStackTrace(void*) + 40

      1  compile-abc              0x0095dba1 SignalHandler(int) + 449

      2  libsystem_platform.dylib 0x9039fdeb _sigtramp + 43

      3  libsystem_platform.dylib 0xffffffff _sigtramp + 1875247679

      4  compile-abc              0x0005846b halfmoon::Cleaner::simplify(halfmoon::BlockEndInstr*) + 667

      5  compile-abc              0x00058fc6 halfmoon::cleanBlocks(halfmoon::Context*, halfmoon::InstrGraph*, halfmoon::Cleaner*) + 166

      6  compile-abc              0x0005ab34 halfmoon::removeDeadCode(halfmoon::Context*, halfmoon::InstrGraph*) + 324

      7  compile-abc              0x0004ee1c halfmoon::AbcBuilder::visitBlocks(nanojit::Seq<halfmoon::AbcBlock*>*) + 316

      8  compile-abc              0x000c0a76 halfmoon::parseAbc(avmplus::MethodInfo*, halfmoon::Lattice*, halfmoon::InfoManager*, nanojit::Allocator&, halfmoon::AbcGraph*, avmplus::Toplevel*, avmplus::AbcEnv*, halfmoon::ProfiledInformation*, halfmoon::Context&) + 182

      9  compile-abc              0x000c1788 halfmoon::JitWriter::writeEpilogue(avmplus::FrameState const*) + 216

      10 compile-abc              0x00129d3b avmplus::NullWriter::writeEpilogue(avmplus::FrameState const*) + 27

      11 compile-abc              0x00183829 avmplus::Verifier::verify(avmplus::CodeWriter*) + 1273

      12 compile-abc              0x000053af compile_abc::CompilerCore::emitPoolToModule(compile_abc::PoolInfo&, compile_abc::LLVMModule*) + 927

      13 compile-abc              0x00004a80 compile_abc::CompilerCore::compile() + 4496

      14 compile-abc              0x0000363f compile_abc::CompilerCore::run(int, char**) + 1471

      15 compile-abc              0x00005f62 main + 66

      16 compile-abc              0x00002235 start + 53

       

      There's also a lengthy list of program arguments, looks like it's working on ABCs from native extensions. Buried in there is this line as well:

       

      41063 Bus error: 10

        • 1. Re: Compilation failed while executing : compile-abc
          sakjain1 Community Member

          Hi,

           

          I have tried to reproduce the issue but unable to reproduce it with HelloWorld project .Could you please provide the reproducible steps and command you are using for packaging the app.

           

          Thanks.

          Sakshi

          Adobe AIR Team

          • 2. Re: Compilation failed while executing : compile-abc
            BMA Community Member

            Hi,

             

            I'm also getting an error when trying to package an iOS app in ad-hoc mode. I'm using the latest Air Version (4.0.0 / Build 1390) on Windows 8.1 (x64)

             

            Stack dump:

            0.          Program arguments: C:\Program Files (x86)\FlashDevelop\Tools\ascsdk\lib\aot/bin/compile-abc/compile-abc.exe -mtriple=armv7-apple-ios -filetype=obj -sdk C:\Program Files (x86)\FlashDevelop\Tools\ascsdk\lib\aot/lib/avmglue.abc -fields C:\Program Files (x86)\FlashDevelop\Tools\ascsdk\lib\aot/lib/air-fields.arm-air.txt -O3

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 000.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 100.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 200.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 300.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 400.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 500.abc

            C:\Projects\bma\dist\AOTBuildOutput8660645785603552808.tmp\ABCFiles\AOTBuildOutput-0000000 600.abc

             

            Compilation failed while executing : compile-abc

             

            This is command I use for packaging:

            adt -package -target ipa-ad-hoc -useLegacyAOT no  -storetype pkcs12 -keystore "cert\bma.p12" -provisioning-profile cert\bma.mobileprovision "dist\bma.ipa" "application.xml" -C bin-ios . -C "icons/ios" .

             

            Thx!

            • 3. Re: Compilation failed while executing : compile-abc
              infeter Community Member

              first of all - this only happens when useLegacyAOT is "no".

              second - this only happens when there are included swfs in a project. i have no issue with projects which don't containt any included swfs. but when i compile projects with included swfs - i receive the same error.

              • 4. Re: Compilation failed while executing : compile-abc
                Jakub Wagner Community Member

                Hey, I have found this:

                 

                Swf compiled with Flash Pro CS6 with AIR 3.9 SDK selected

                No error

                ipa is created a working without any problems.

                 

                Swf compiled with Flash Develop and Flex 4.6 AIR 3.9 SDK

                adt throws this error:

                Compilation failed while executing : compile-abc

                 

                Swf compiled with Flash Develop and Adobe AIR 4.0 SDK

                adt throws this error:

                duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas

                e$ in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-0_3.o

                duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas

                e in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-0_3.o

                duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils$ in

                :

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-1_4.o

                duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils in:

                 

                 

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-1_4.o

                duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt

                ilsLoginEvent$ in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-2_5.o

                duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt

                ilsLoginEvent in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.FacebookUtils-2_5.o

                duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas

                e$ in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.TestFlightSDK-0_0.o

                duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas

                e in:

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.TestFlightSDK-0_0.o

                duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK$ in

                :

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.TestFlightSDK-1_1.o

                duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK in:

                 

                 

                    AOTBuildOutput-0000000000_7.o

                    com.distriqt.TestFlightSDK-1_1.o

                ld: 10 duplicate symbols for architecture armv7

                Compilation failed while executing : ld64

                • 5. Re: Compilation failed while executing : compile-abc
                  amanglic Adobe Employee

                  Hi bill.baldwin,

                   

                  Could you please provide simiar "Sample Code" written in DailySpinDialogViewMediator/onKeyUp() function in the abc that you have provided because we are not able to disassemble the abc file and guess a sample shell test replicating the issue.

                   

                  Thanks,

                  Ankit

                  email id: anmangli@adobe.com

                  • 6. Re: Compilation failed while executing : compile-abc
                    bill.baldwin Community Member

                    I took a look at the function in question, and it turned out there's an empty switch() statement there, because the case statement inside was conditionally compiled out with CONFIG::DEBUG, like this:

                     

                    switch ( event.keyCode ) {

                         CONFIG::DEBUG {

                              case Keyboard.S:

                                   // do stuff.

                         }

                    }

                     

                    I changed it to wrap the entire switch statement inside CONFIG::DEBUG, and now the app packages fine with "-useLegacyAOT no."

                    • 7. Re: Compilation failed while executing : compile-abc
                      BitstripsDerek Community Member

                      Bill,

                       

                      Thanks for posting about this issue and the progress you made on it.

                       

                      We had the same stack trace and removing a similar empty switch statement from our code resolved the issue.

                       

                      Have you registered a bug for this already?

                       

                      Cheers,

                      Derek

                      • 8. Re: Compilation failed while executing : compile-abc
                        www.123bee.com Community Member

                        I am getting this error , i dont know how to solve ,please help me

                         

                        Compilation failed while executing : compile-abc

                        • 9. Re: Compilation failed while executing : compile-abc
                          www.123bee.com Community Member

                          I got the solutions i just update AIR thats it