Link error with ARM Debug configuration

Home / Forums / Marmalade Archive / Deployment, devices and platforms / Link error with ARM Debug configuration
10 replies [Last post]
by: Billd
Status: Offline
Joined: 2010-03-04
Points: 1920

I have a small app that compiles and links fine with x86 DEBUG. But when switched to ARM DEBUG I get the error:

Error result 1 returned from 'C:\Airplay SDK\4.1\s3e\bin\link.exe'.

I assume it is a configuration error of some sort, but an error code of "1" does not give me much info.

Any advise appreciated.

Bill

by: drupaluser
Status: Offline
Joined: 2011-12-01
Points: 124350
Hi Bill, Do the examples

Hi Bill,

Do the examples work? Is this problem specific to your app?

I think you may have managed to crash the GCC linker, which can (maybe) happen if you have link errors in your app. In which case you might need to remove source files from your app until the problem goes away (and you get normal link errors again), then try and work out what the problematic area is

Dave

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. I have a

Dave,

Tim here. I have a similar problem. I Compile, Link and Run perfectly using x86 (DEBUG and RELEASE). I get the error message below, though, when I try to use either DEBUG or RELEASE of the GCC ARM. I tried your suggestion to "billd" and have, now, commented out every bit of my code (still get the error)???

------ Build started: Project: beer_goggles_vc71, Configuration: GCC ARM Release Win32 ------

C:/Documents and Settings/Administrator/Desktop/Beer_Goggles/beer_goggles.mkb
msg: option 'default-buildenv' overridden by command line
C:\Program Files\Airplay SDK\4.1\s3e\makefile_builder\mkb.py --non-interactive C:/Documents and Settings/Administrator/Desktop/Beer_Goggles/beer_goggles.mkb --default-buildenv=vc71 --msvc-project
Building project: C:/Documents and Settings/Administrator/Desktop/Beer_Goggles/beer_goggles.mkb
done
Compiling...
ARM Compiling(GCC) Documents and Settings\Administrator\Desktop\Beer_Goggles\source\BeerGogglesMain.cpp...
ARM Compiling(GCC) Documents and Settings\Administrator\Desktop\Beer_Goggles\source\BeerGoggles.cpp...
Generating dependencies...
Linking...
c:/program files/airplay sdk/4.1/s3e/gcc/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -liwutil
collect2: ld returned 1 exit status
beer_goggles_vc71 : error PRJ0002 : error result returned from 'link.exe'.

Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\Beer_Goggles\build_beer_goggles_vc71\Release_beer_goggles_vc71_gcc_arm\BuildLog.htm"
beer_goggles_vc71 - 1 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. In order

Dave,

Tim here. In order to learn the AirPlay SDK environment, I had built my app completely from scratch (step by step) following the AirPlay instructions. I don't know yet what made the difference, and I'll do a one for one comparison, but I copied all of the compile/link settings from one of your examples into my app's IDE and it seems to be working. Once I know what the solution actually was I'll post it here. Take care, my friend. Meantime dis-regard, I think I'm back up and running.

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. I'm

Dave,

Tim here. I'm pinning it down. I de-commented my code and have identified the offending functions - not sure why, I copied these out of the AirPlay examples.

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. No luck.

Dave,

Tim here. No luck. As soon as I introduce certain functions I get miles of undefined functions / link errors. What do you need from me to sort this out???

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. NAILED

Dave,

Tim here. NAILED IT:)

When I set up my app (according to the documentation I had the main looking like this -
S3E_MAIN_DECL void IwMain()

I didn't know why - just following the examples and documentation

If I remove the S3E_MAIN_DECL everything works.

Go figure.

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Now it errors on the iPod

Now it errors on the iPod "Error (Airplay v4.1.1 [212443u]) main function in iwcrt should never be called"

This is Unbelievable!

Please help.

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
OKAY! This has grown WAY

OKAY!

This has grown WAY beyond painful.

I abandoned all thoughts of building an app from scratch. I made a copy of the Calculator Example. I compiled/linked/GCC ARM'ed and installed on my iPod - it worked perfectly. I replaced all of the "Calculator" code and ui with my code and ui (out of the app that I have been working on). It compiles/links/runs in both debug and release perfectly. It GCC ARM's in both debug and release perfectly. It installs and syncs on my iPod perfectly. I try to run it from my iPod and...

I get my Splash screen
The Powered by Airplay screen

and the app ends.

This is UNBELIEVABLE!

The SDK shows great promise, but I'm finding it nearly impossible to create and deploy an app (outside of the examples you've provided).

PLEASE PLEASE PLEASE

HELP!!!!

It can't be this difficult.

by: drupaluser
Status: Offline
Joined: 2011-12-01
Points: 124350
Hi Tim, See my post on your

Hi Tim,

See my post on your other thread about testing your deployed build in the emulator (and also about the fact you need to add the right .group.bin files to your deployment)

https://www.airplaysdk.com/node/737

Dave

by: Tim Simonetti
Status: Offline
Joined: 2010-03-28
Points: 5200
Dave, Tim here. Will do.

Dave,

Tim here. Will do. Take care, my friend.

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810