[Mono-list] Mono on Xeon Phi
Rodrigo Kumpera
kumpera at gmail.com
Mon Feb 4 18:19:09 UTC 2013
Fix the configure script to not do the check. Look at its history for
cross-compilation related fixes.
On Mon, Feb 4, 2013 at 5:49 AM, Yury Serdyuk <Yury at serdyuk.botik.ru> wrote:
> Hi !
>
> I have tried to do the first steps to cross-compile Mono for Intel Xeon
> Phi coprocessor.
>
> At first, I've tried to configure Mono as
>
> >./configure --prefix=<..> --host=x86_64-k1om-linux CC="icc" CFLAGS="-mmic"
>
> but I've got the error
>
> checking for clang... configure: error: in `/home/ips_serdyuk/mono-3.0.1'
>> **:
>> configure: error: cannot run test program while cross compiling
>>
>
> The corresponding fragment of configure is
>
> CFLAGS="$CFLAGS -g $WARN"
>> CFLAGS_FOR_LIBGC="$CFLAGS_FOR_**LIBGC -g"
>>
>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
>> $as_echo_n "checking for clang... " >&6; }
>> if ${mono_cv_clang+:} false; then :
>> $as_echo_n "(cached) " >&6
>> else
>>
>> if test "$cross_compiling" = yes; then :
>> { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
>> $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
>> as_fn_error $? "cannot run test program while cross compiling
>> See \`config.log' for more details" "$LINENO" 5; }
>> else
>> cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> /* end confdefs.h. */
>>
>> int main () {
>> #ifdef __clang__
>> return 0;
>> #else
>> return 1;
>> #endif
>> }
>>
>
> The last test program is compiled with the success:
>
> [root at node002 Xeon_Phi]# cat clang_test.c
>> int main() {
>> #ifdef __clang__
>> return 0;
>> #else
>> return 1;
>> #endif
>> }[root at node002 Xeon_Phi]#icc -mmic -o clang_test clang_test.c
>> [root at node002 Xeon_Phi]#
>>
>
> Are there any suggestions how to fix above problem?
>
> Thanks.
>
> Yury
>
> ______________________________**_________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130204/01d4dd19/attachment.html>
More information about the Mono-list
mailing list