./config fails for CodeSourcery arm-none-eabi-* toolchain
Ajit.Patra at infineon.com
Ajit.Patra at infineon.com
Mon Mar 12 07:51:56 CET 2012
Hi,
Please see my config file below which is generated using cygwin in windows 7. I have also tried with Ubuntu and the result is same.
--------------------------------------------------------------------------------------------------------------------------------
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=/cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc --prefix=/cygdrive/C/Development/Projects/GAD/workspace/lib_rtos
## --------- ##
## Platform. ##
## --------- ##
hostname = BLRNR84NDYK
uname -m = i686
uname -r = 1.7.9(0.237/5/3)
uname -s = CYGWIN_NT-6.1
uname -v = 2011-03-29 10:10
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/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/bin
PATH: /usr/bin
PATH: /cygdrive/c/Program Files/PC Connectivity Solution
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files/ThinkPad/Bluetooth Software
PATH: /cygdrive/c/Program Files/QuickTime/QTSystem
PATH: /cygdrive/c/Program Files/doxygen/bin
PATH: /cygdrive/c/MinGW/bin
PATH: /usr/bin
PATH: /usr/lib/lapack
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3024: checking build system type
configure:3038: result: i686-pc-cygwin
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: /usr/bin/mkdir -p
configure:3430: checking for gawk
configure:3446: found /usr/bin/gawk
configure:3457: result: gawk
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=/cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=standard
cclist=gcc cc
configure:5361: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -c conftest.c >&5
configure:5364: $? = 0
configure:5367: checking whether /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc is gcc
configure:5369: result: yes
configure:5383: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc 2>&1 | grep xlc >/dev/null
configure:5386: $? = 1
configure:5440: checking compiler /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer
Test compile:
configure:5454: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5457: $? = 0
Test compile: function pointer return
configure:5508: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5511: $? = 0
Test compile: cmov instruction
configure:5564: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5567: $? = 0
Test compile: double -> ulong conversion
configure:5621: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5624: $? = 0
Test compile: double negation
configure:5676: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5679: $? = 0
Test compile: double -> float conversion
configure:5732: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5735: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:5817: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5820: $? = 0
Test compile: __builtin_alloca availability
configure:5868: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5871: $? = 0
Test compile: alloca array
configure:5914: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5917: $? = 0
Test compile: abs int -> double conversion
configure:5992: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:5995: $? = 0
Test compile: long long reliability test 1
configure:6056: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/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' [-Wlong-long]
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6059: $? = 0
Test compile: long long reliability test 2
configure:6116: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/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' [-Wlong-long]
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6119: $? = 0
Test compile: mpn_lshift_com optimization
configure:6215: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
configure:6218: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:6323: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0x10): undefined reference to `_exit'
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x1c): undefined reference to `_kill'
c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../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
--------------------------------------------------------------------------------------
-----Original Message-----
From: Marc Glisse [mailto:marc.glisse at inria.fr]
Sent: Friday, March 09, 2012 3:15 PM
To: Patra Ajit (IFIN CCS TI SWT PFS)
Cc: gmp-discuss at gmplib.org
Subject: Re: ./config fails for CodeSourcery arm-none-eabi-* toolchain
On Fri, 9 Mar 2012, Ajit.Patra at infineon.com wrote:
> I am exactly facing the same issue with gmp-5.0.4 with arm-none-eabi toolchain during ./configure.
> I have compiled (./configure, make, make install) the same successfully with arm-none-linux-gnueabi toolchain. Do you have any update on this?
Please quote some context when answering old emails...
Apparently, in configure, the compiler fails to compile some test program.
Well then, you should copy that test program somewhere, try to compile it
yourself with the same options that configure used, and find out what is
wrong.
--
Marc Glisse
More information about the gmp-discuss
mailing list