<div dir="ltr"><div><div>Hello Matt,<br><br></div>As you have guessed the cross compile support for tests is indeed a very lightly-used path and also quite new. <br><br>Right now we run nightly cross-compile tests for x86_64-saf-linux-gnu and powerpc-dso-linux-gnu (from Linux x86) and have not attempted to get it to work on any other. <br>
<br></div>As neither of these use quoted CFLAGS, that specific option has slipped through and what you have found is indeed a bug. A patch that fixes this would be very appreciated! <br><div><br>Lukas<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 1:33 AM, Matt Lewandowsky <span dir="ltr"><<a href="mailto:matt@greenviolet.net" target="_blank">matt@greenviolet.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am attempting to cross-compile OTP for a new platform, with a new<br>
$ERL_TOP/xcomp/erl-xcomp-*.conf file. Unfortunately, I've hit an interesting<br>
issue and it appears the only other xcomp platform which would encounter it is<br>
VxWorks, which I do not have access to.<br>
<br>
In my xcomp conf file, I use quoted values for CFLAGS and other environment<br>
variables. These get re-double-quoted by ts_install.erl as such:<br>
<br>
Env: [{"CFLAGS",<br>
       "\"-mcpu=cortex-a9 -Wno-psabi -fstack-protector-all -D_FORTIFY_SOURCE=2<br>
 -O2 -Wformat -Wformat-security -Werror=format-security\""},<br>
<br>
As the VxWorks target also has quoted variables, how do the tests get compiled<br>
for that platform since the documented procedure in the "Testing the cross<br>
compiled system" section of the User's Guide *should* fail, per the results<br>
I'm seeing? Are tests not cross-compiled by anyone, ever, for that platform?<br>
Is there some undocumented magic I'm missing? Is this a legitimate bug I<br>
should fix while I trod down this obviously lightly-used path?<br>
<br>
Thanks,<br>
<br>
--Matt<br>
<br>
P.S. As there doesn't seem to be any naming convention for configuration files<br>
in the xcomp directory and not much to work from, are there recommendations<br>
for the configuration file I'm working on? The host triplet is long, so would<br>
"something appropriate" be a good enough choice? I expect a > 40 character<br>
filename would be balked at. :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matt Lewandowsky<br>
Big Geek<br>
Greenviolet<br>
<a href="mailto:matt@greenviolet.net">matt@greenviolet.net</a> <a href="http://www.greenviolet.net" target="_blank">http://www.greenviolet.net</a><br>
<a href="tel:%2B1%20415%20578%205782" value="+14155785782">+1 415 578 5782</a> (US) <a href="tel:%2B44%20844%20484%208254" value="+448444848254">+44 844 484 8254</a> (UK)<br>
<br>
</font></span><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>