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@node002 Xeon_Phi]# cat clang_test.c
int main() {
#ifdef __clang__
return 0;
#else
return 1;
#endif
}[root@node002 Xeon_Phi]#icc -mmic -o clang_test clang_test.c
[root@node002 Xeon_Phi]#
Are there any suggestions how to fix above problem?
Thanks.
Yury
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list