<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
TD {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
LI {
        MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
BODY {
        LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: Arial, arial; FONT-SIZE: 9pt
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>This option works for me based on 3.2 clang for a trivial .cpp file, maybe some similar options might help. I can see --sysroot being honored without that I get "/usr/lib/gcc/arm-linux-gnueabi/4.5.1/../../../../arm-linux-gnueabi/bin/ld: warning: libc.so, needed by /usr/lib/gcc/arm-linux-gnueabi/4.5.1/libgcc_s.so.1, not found (try using -rpath or -rpath-link)". </P>
<P> </P>
<P>clang++ \<BR>        --sysroot=$SYSROOT \<BR>        x.cpp \<BR>        -target arm-linux-gnueabi \<BR>        -ccc-gcc-name arm-linux-gnueabi-g++ \<BR>        -mcpu=cortex-a9 \<BR>        -o \<BR>        x.arm-clang.2.bin<BR></P>
<P> </P>
<P>------- <B>Original Message</B> -------</P>
<P><B>Sender</B> : Stephen Kelly<steveire@gmail.com></P>
<P><B>Date</B> : May 17, 2013 20:35 (GMT+09:00)</P>
<P><B>Title</B> : Re: [cfe-dev] Cross compiling with clang (and sysroot support)</P>
<P> </P>Stephen Kelly wrote:<BR><BR>> Stephen Kelly <STEVEIRE@...>writes:<BR>> <BR>>> I find it odd that it considers<BR>>> <BR>>>  /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf//usr/include/x86_64-<BR>linux-<BR>>> gnu<BR>>> <BR>>> before finding it is non-existant. It's mixing triples.<BR>> <BR>> Ping? Any further help on this issue?<BR>> <BR>>  <BR>http://thread.gmane.org/gmane.comp.compilers.clang.devel/28960/focus=29153<BR>> <BR><BR>I've seen commits relating to cross compiling, so I'm sure others are <BR>somehow able to cross compile using clang. <BR><BR>Can anyone else help here to get a trivial program cross compiled?<BR><BR>Thanks,<BR><BR>Steve.<BR><BR><BR>_______________________________________________<BR>cfe-dev mailing list<BR>cfe-dev@cs.uiuc.edu<BR>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>
<P> </P>
<P> </P><!--SP:senthil.t-->
<P>Regards</P>
<P>Senthil Kumar</P>
<P> </P><!--senthil.t:EP-->
<P> </P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:BEI0XT4NZ5JE@namo.co.kr" width=520></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=d6065e8d54c1989c1d6cdb03c9245fef55693548b006360a9cdd14f0554fc2de1d78c8484d0968ef1d70666c366810d91b20909a04efd4d2748cfe1d4e847419cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>