./configure issue with arm-none-eabi toolchain
Ajit.Patra at infineon.com
Ajit.Patra at infineon.com
Tue Feb 14 18:35:33 CET 2012
Hi,
I am not able to configure gmp 5.0.4 for arm-none-eabi toolchain.
Please see the config.log below.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU MP configure 5.0.4, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --host=arm-none-eabi CC=/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc CXX=/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-g++ --prefix=/media/Dev/myarm/work/lib/gnutls-3.0.12_arm_rtos --enable-cxx
## --------- ##
## Platform. ##
## --------- ##
hostname = ajit-VirtualBox
uname -m = i686
uname -r = 2.6.38-8-generic
uname -s = Linux
uname -v = #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3024: checking build system type
configure:3038: result: i686-pc-linux-gnu
configure:3058: checking host system type
configure:3071: result: arm-none-eabi
configure:3108: checking for a BSD-compatible install
configure:3176: result: /usr/bin/install -c
configure:3187: checking whether build environment is sane
configure:3237: result: yes
configure:3286: checking for arm-none-eabi-strip
configure:3316: result: no
configure:3326: checking for strip
configure:3342: found /usr/bin/strip
configure:3353: result: strip
configure:3378: checking for a thread-safe mkdir -p
configure:3417: result: /bin/mkdir -p
configure:3430: checking for gawk
configure:3460: result: no
configure:3430: checking for mawk
configure:3446: found /usr/bin/mawk
configure:3457: result: mawk
configure:3468: checking whether make sets $(MAKE)
configure:3490: result: yes
configure:3573: checking whether to enable maintainer-specific portions of Makefiles
configure:3582: result: no
User:
ABI=
CC=/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=standard
cclist=gcc cc
configure:5361: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -c conftest.c >&5
configure:5364: $? = 0
configure:5367: checking whether /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc is gcc
configure:5369: result: yes
configure:5383: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc 2>&1 | grep xlc >/dev/null
configure:5386: $? = 1
configure:5440: checking compiler /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer
Test compile:
configure:5454: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5457: $? = 0
Test compile: function pointer return
configure:5508: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5511: $? = 0
Test compile: cmov instruction
configure:5564: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5567: $? = 0
Test compile: double -> ulong conversion
configure:5621: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5624: $? = 0
Test compile: double negation
configure:5676: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5679: $? = 0
Test compile: double -> float conversion
configure:5732: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5735: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:5817: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5820: $? = 0
Test compile: __builtin_alloca availability
configure:5868: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5871: $? = 0
Test compile: alloca array
configure:5914: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5917: $? = 0
Test compile: abs int -> double conversion
configure:5992: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5995: $? = 0
Test compile: long long reliability test 1
configure:6056: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
conftest.c:6:23: warning: ISO C90 does not support 'long long'
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6059: $? = 0
Test compile: long long reliability test 2
configure:6116: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
conftest.c: In function 'f':
conftest.c:6:21: warning: ISO C90 does not support 'long long'
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6119: $? = 0
Test compile: mpn_lshift_com optimization
configure:6215: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6218: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:6323: /media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008018
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0x10): undefined reference to `_exit'
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x1c): undefined reference to `_kill'
/media/Dev/myarm/work/toolchain/arm-rtos-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x44): undefined reference to `_getpid'
collect2: ld returned 1 exit status
configure:6326: $? = 1
failed program was:
/* The following is mis-compiled by Intel ia-64 icc version 1.8 under
"icc -O3", After several calls, the function writes parial garbage to
the result vector. Perhaps relates to the chk.a.nc insn. This code needs
to be run to show the problem, but that's fine, the offending cc is a
native-only compiler so we don't have to worry about cross compiling. */
#if ! defined (__cplusplus)
#include <stdlib.h>
void
lshift_com (rp, up, n, cnt)
unsigned long *rp;
unsigned long *up;
long n;
unsigned cnt;
{
unsigned long high_limb, low_limb;
unsigned tnc;
long i;
up += n;
rp += n;
tnc = 8 * sizeof (unsigned long) - cnt;
low_limb = *--up;
high_limb = low_limb << cnt;
for (i = n - 1; i != 0; i--)
{
low_limb = *--up;
*--rp = ~(high_limb | (low_limb >> tnc));
high_limb = low_limb << cnt;
}
*--rp = ~high_limb;
}
int
main ()
{
unsigned long *r, *r2;
unsigned long a[88 + 1];
long i;
for (i = 0; i < 88 + 1; i++)
a[i] = ~0L;
r = malloc (10000 * sizeof (unsigned long));
r2 = r;
for (i = 0; i < 528; i += 22)
{
lshift_com (r2, a,
i / (8 * sizeof (unsigned long)) + 1,
i % (8 * sizeof (unsigned long)));
r2 += 88 + 1;
}
if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
abort ();
return 0;
}
#else
int
main ()
{
return 0;
}
#endif
configure:6480: result: no, mpn_lshift_com optimization 2
configure:6718: error: could not find a working compiler, see config.log for details
btw, I am ble to build the same for arm-none-linux-gnueabi toolchain.
Please help.
Regards,
Ajit
More information about the gmp-bugs
mailing list