<div dir="ltr"><div style>The gas linked below from the mansr github fork did not resolve this error that occurs throughout the build process for ffmpeg for iOS:</div><div style><br></div><div style><div>Unable to identify target architecture at /usr/bin/<a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a> line 82.</div>
<div>AS<span class="" style="white-space:pre">  </span>libavcodec/arm/dsputil_arm.o</div><div style>[and hundreds more like that afterwards...]</div><div><br></div></div><div style>Yet, it sounds like Lars has gotten past that error somehow. I put the mansr version of gas into both /usr/bin and /usr/local/bin just to be safe, but no luck. I am sure that is the gas being used because if I introduce intentional bugs in that script everything fails immediately. It sure feels like a remaining bug in the gas script itself, but perhaps I'm missing something?</div>
<div style><br></div><div style>The build completes even with those errors. The errors occur when building armv7 and armv7s architectures, but not i386. It feels like this gas may not understand armv7 vs armv7s?</div><div style>
<br></div><div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2013/4/5 Alexey Belkevich<br>
><br>> On Friday, April 5, 2013 at 4:26 PM, Lars Hammarstrand wrote:<br>> ><br>> Got some new errors with the new gas-preprocessor. Full log at:<br>> <a href="http://pastebin.com/wF4aZGis">http://pastebin.com/wF4aZGis</a>. Brief summary:<br>
> ><br>> Version info - ffmpeg e820e3a (n1.2), gas-preprocessor<br>> f4a42dc077 (Oct 03, 2012)<br>> ><br>> 1. LD ffmpeg_g ld: warning: ARM function not 4-byte aligned:<br>> empty_row from libavcodec/libavcodec.a(jrevdct_arm.o) ld:<br>
> warning: ARM function not 4-byte aligned: end_of_row_loop from<br>> libavcodec/libavcodec.a(jrevdct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: start_column_loop from<br>> libavcodec/libavcodec.a(jrevdct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: column_loop from<br>> libavcodec/libavcodec.a(jrevdct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: empty_odd_column from<br>> libavcodec/libavcodec.a(jrevdct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: the_end from<br>> libavcodec/libavcodec.a(jrevdct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: __b_evaluation from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: __end_b_evaluation from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: __a_evaluation from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: __almost_empty_row from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: __end_row_loop from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: __end_b_evaluation2 from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>> function not 4-byte aligned: __a_evaluation2 from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: warning: ARM<br>
> function not 4-byte aligned: __end_simple_idct_arm from<br>> libavcodec/libavcodec.a(simple_idct_arm.o) ld: in<br>> libavcodec/libavcodec.a(h264qpel_neon.o), in section<br>> __TEXT,__text reloc 12: R_ABS reloc but no absolute symbol at<br>
> target address for architecture armv7 collect2: ld returned 1<br>> exit status make: *** [ffmpeg_g] Error 1<br>> ><br>> Try updated gas-preprocessor -<br>> <a href="https://github.com/mansr/gas-preprocessor.git">https://github.com/mansr/gas-preprocessor.git</a> It should fix<br>
> error with "R_ABS reloc"<br>> ><br>Success!!  Finally is the last piece of the root cause identified<br>and solved :D *Big Smile*. I'm pretty sure this will solve the<br>xbmc problem as well but let me come back with a final<br>
confirmation later on. Found also this link regarding the same<br>error:<br><a href="http://ffmpeg.org/pipermail/ffmpeg-user/2012-December/012307.html">http://ffmpeg.org/pipermail/ffmpeg-user/2012-December/012307.html</a><br>
. May I suggest one of the following changes regarding the<br><a href="http://gas-processor.pl">gas-processor.pl</a>: 1) Distribute a prepackaged version of<br><a href="http://gas-processor.pl">gas-processor.pl</a> that works, together with ffmpeg. 2) At the very<br>
least, update the docs (docs/platform.texi) regarding the<br>gas-processor.p referense to<br>"<a href="https://github.com/mansr/gas-preprocessor">https://github.com/mansr/gas-preprocessor</a>" and also add some<br>
controls to "Configure" that verifies that the correct version of<br><a href="http://gas-processor.pl">gas-processor.pl</a> is used. Personally, I would prefer point nr 1.<br>And finally, many Big Thanks to all who helped and assisted with<br>
this problem, especially to Carl that came up with a lot of<br>different ideas and managed to find the right track<br>(<a href="http://gas-processor.pl">gas-processor.pl</a>) and to Alexey that found a solution to the<br>
last error. /Regards, Lars.</blockquote><div> </div></div>