* Re: Building toolchain with crosstool-ng on Mac OS X SL
2010-01-06 8:35 ` Yann E. MORIN
@ 2010-01-06 9:09 ` Vladyslav
0 siblings, 0 replies; 7+ messages in thread
From: Vladyslav @ 2010-01-06 9:09 UTC (permalink / raw)
To: crossgcc; +Cc: Yann E. MORIN
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
Yann,
On Jan 6, 2010, at 10:35 AM, Yann E. MORIN wrote:
> 123070 [ALL ] checking compiler cc -pipe -fexceptions ... yes
> 123071 [ALL ] checking compiler cc -pipe -fexceptions has sizeof(long)==4... no
> 123072 [ERROR] configure: error: could not find a working compiler, see config.log for details
> 123073 [ERROR] Build failed in step 'Installing GMP'
>
> Oh, I guess the initial ERROR starts here... Could you check the GMP
> config.log and see why it fails ?
I know why configure script cant find working compiler with sizeof(long)==4: in Snow Leopard Apple changed default GCC behavior to emit 64bit binaries. My small test confirms that sizeof(long) and sizeof(long*) are now 8 bytes.
I've attached GMP config.log to this mail.
Regards,
Vladyslav
[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 15455 bytes --]
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 4.3.1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/configure --build=i686-build_apple-darwin10 --host=i686-build_apple-darwin10 --prefix=/Users/xxx/x-tools/i386-unknown-linux-gnu --enable-shared --disable-static --enable-fft --enable-mpbsd --enable-cxx
## --------- ##
## Platform. ##
## --------- ##
hostname = ycombinator.local
uname -m = i386
uname -r = 10.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 85 tasks, 368 threads, 2 processors
Load average: 0.95, Mach factor: 1.20
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/xxx/x-tools/i386-unknown-linux-gnu/buildtools
PATH: /Users/xxx/x-tools/i386-unknown-linux-gnu/bin
PATH: /Users/xxx/tmp/crosstool-ng-1.5.2/targets/i386-unknown-linux-gnu/build/gcc-core-shared/bin
PATH: /Users/xxx/tmp/crosstool-ng-1.5.2/targets/i386-unknown-linux-gnu/build/gcc-core-static/bin
PATH: /Users/xxx/tmp/crosstool-ng-1.5.2/targets/bin
PATH: /opt/local/i386-apple-darwin10.2.0/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1655: checking build system type
configure:1673: result: i686-build_apple-darwin10
configure:1681: checking host system type
configure:1695: result: i686-build_apple-darwin10
configure:1718: checking for a BSD-compatible install
configure:1773: result: /Users/xxx/tmp/crosstool-ng-1.5.2/targets/bin/install -c
configure:1784: checking whether build environment is sane
configure:1827: result: yes
configure:1884: checking for gawk
configure:1900: found /opt/local/bin/gawk
configure:1910: result: gawk
configure:1920: checking whether make sets $(MAKE)
configure:1940: result: yes
configure:2106: checking whether to enable maintainer-specific portions of Makefiles
configure:2115: result: no
User:
ABI=
CC=
CFLAGS= -pipe -fexceptions
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc icc cc
configure:3829: gcc 2>&1 | grep xlc >/dev/null
configure:3832: $? = 1
configure:3886: checking compiler gcc -pipe -fexceptions
Test compile:
configure:3900: gcc -pipe -fexceptions conftest.c >&5
configure:3903: $? = 0
configure:3908: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3911: $? = 0
Test compile: function pointer return
configure:3954: gcc -pipe -fexceptions conftest.c >&5
configure:3957: $? = 0
configure:3962: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3965: $? = 0
Test compile: cmov instruction
configure:4010: gcc -pipe -fexceptions conftest.c >&5
configure:4013: $? = 0
configure:4018: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4021: $? = 0
Test compile: double -> ulong conversion
configure:4067: gcc -pipe -fexceptions conftest.c >&5
configure:4070: $? = 0
configure:4075: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4078: $? = 0
Test compile: double negation
configure:4122: gcc -pipe -fexceptions conftest.c >&5
configure:4125: $? = 0
configure:4130: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4133: $? = 0
Test compile: double -> float conversion
configure:4178: gcc -pipe -fexceptions conftest.c >&5
configure:4181: $? = 0
configure:4186: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4189: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:4263: gcc -pipe -fexceptions conftest.c >&5
configure:4266: $? = 0
configure:4271: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4274: $? = 0
Test compile: __builtin_alloca availability
configure:4314: gcc -pipe -fexceptions conftest.c >&5
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:4317: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:4438: gcc -pipe -fexceptions conftest.c >&5
configure:4441: $? = 0
configure:4446: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4449: $? = 0
Test compile: long long reliability test 1
configure:4502: gcc -pipe -fexceptions conftest.c >&5
configure:4505: $? = 0
configure:4510: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4513: $? = 0
Test compile: long long reliability test 2
configure:4562: gcc -pipe -fexceptions conftest.c >&5
configure:4565: $? = 0
configure:4570: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4573: $? = 0
Test compile: mpn_lshift_com optimization
configure:4661: gcc -pipe -fexceptions conftest.c >&5
configure:4664: $? = 0
configure:4669: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4672: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:4769: gcc -pipe -fexceptions conftest.c >&5
configure:4772: $? = 0
configure:4777: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4780: $? = 0
Testing gcc GOT with eax emitted
configure:4828: gcc -pipe -fexceptions -fPIC -S conftest.c >&5 2>&1
configure:4831: $? = 0
Result: no
configure:4926: result: yes
configure: testlist sizeof-long-4
configure:5101: checking compiler gcc -pipe -fexceptions has sizeof(long)==4
configure:5114: gcc -pipe -fexceptions -c conftest.c >&5
conftest.c: In function 'main':
conftest.c:4: error: size of array 'test_array' is negative
configure:5117: $? = 1
configure:5122: result: no
configure:3807: icc -c conftest.c >&5
/Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/configure: line 3808: icc: command not found
configure:3810: $? = 127
configure:3829: icc 2>&1 | grep xlc >/dev/null
configure:3832: $? = 1
configure:3886: checking compiler icc -pipe -fexceptions
Test compile:
configure:3900: icc -pipe -fexceptions conftest.c >&5
/Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/configure: line 3901: icc: command not found
configure:3903: $? = 127
failed program was:
int main () { return 0; }
configure:4926: result: no
configure:3807: cc -c conftest.c >&5
configure:3810: $? = 0
configure:3813: checking whether cc is gcc
configure:3815: result: yes
configure:3829: cc 2>&1 | grep xlc >/dev/null
configure:3832: $? = 1
configure:3886: checking compiler cc -pipe -fexceptions
Test compile:
configure:3900: cc -pipe -fexceptions conftest.c >&5
configure:3903: $? = 0
configure:3908: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3911: $? = 0
Test compile: function pointer return
configure:3954: cc -pipe -fexceptions conftest.c >&5
configure:3957: $? = 0
configure:3962: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3965: $? = 0
Test compile: cmov instruction
configure:4010: cc -pipe -fexceptions conftest.c >&5
configure:4013: $? = 0
configure:4018: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4021: $? = 0
Test compile: double -> ulong conversion
configure:4067: cc -pipe -fexceptions conftest.c >&5
configure:4070: $? = 0
configure:4075: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4078: $? = 0
Test compile: double negation
configure:4122: cc -pipe -fexceptions conftest.c >&5
configure:4125: $? = 0
configure:4130: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4133: $? = 0
Test compile: double -> float conversion
configure:4178: cc -pipe -fexceptions conftest.c >&5
configure:4181: $? = 0
configure:4186: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4189: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:4263: cc -pipe -fexceptions conftest.c >&5
configure:4266: $? = 0
configure:4271: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4274: $? = 0
Test compile: __builtin_alloca availability
configure:4314: cc -pipe -fexceptions conftest.c >&5
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure:4317: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:4438: cc -pipe -fexceptions conftest.c >&5
configure:4441: $? = 0
configure:4446: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4449: $? = 0
Test compile: long long reliability test 1
configure:4502: cc -pipe -fexceptions conftest.c >&5
configure:4505: $? = 0
configure:4510: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4513: $? = 0
Test compile: long long reliability test 2
configure:4562: cc -pipe -fexceptions conftest.c >&5
configure:4565: $? = 0
configure:4570: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4573: $? = 0
Test compile: mpn_lshift_com optimization
configure:4661: cc -pipe -fexceptions conftest.c >&5
configure:4664: $? = 0
configure:4669: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4672: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:4769: cc -pipe -fexceptions conftest.c >&5
configure:4772: $? = 0
configure:4777: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4780: $? = 0
Testing gcc GOT with eax emitted
configure:4828: cc -pipe -fexceptions -fPIC -S conftest.c >&5 2>&1
configure:4831: $? = 0
Result: no
configure:4926: result: yes
configure: testlist sizeof-long-4
configure:5101: checking compiler cc -pipe -fexceptions has sizeof(long)==4
configure:5114: cc -pipe -fexceptions -c conftest.c >&5
conftest.c: In function 'main':
conftest.c:4: error: size of array 'test_array' is negative
configure:5117: $? = 1
configure:5122: result: no
configure:5164: error: could not find a working compiler, see config.log for details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-build_apple-darwin10
ac_cv_build_alias=i686-build_apple-darwin10
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -pipe -fexceptions'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-build_apple-darwin10
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-build_apple-darwin10
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-build_apple-darwin10
ac_cv_host_alias=i686-build_apple-darwin10
ac_cv_path_install='/Users/xxx/tmp/crosstool-ng-1.5.2/targets/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ABI=''
ACLOCAL='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run aclocal-1.8'
AMTAR='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run automake-1.8'
AWK='gawk'
BITS_PER_MP_LIMB=''
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
CC=''
CCAS=''
CC_FOR_BUILD=''
CFLAGS=' -pipe -fexceptions'
CPP=''
CPPFLAGS=''
CPP_FOR_BUILD=''
CXX=''
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
GMP_LDFLAGS=''
GMP_NAIL_BITS='0'
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/missing --run makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 4.3.1'
PACKAGE_TARNAME='gmp'
PACKAGE_VERSION='4.3.1'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/opt/local/bin/bash'
SPEED_CYCLECOUNTER_OBJ='pentium.lo'
STRIP=''
TAL_OBJECT=''
TUNE_SQR_OBJ=''
U=''
U_FOR_BUILD=''
VERSION='4.3.1'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WANT_MPBSD_FALSE='#'
WANT_MPBSD_TRUE=''
WITH_READLINE_01=''
YACC=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__leading_dot='.'
bindir='${exec_prefix}/bin'
build='i686-build_apple-darwin10'
build_alias='i686-build_apple-darwin10'
build_cpu='i686'
build_os='darwin10'
build_vendor='build_apple'
datadir='${prefix}/share'
exec_prefix='NONE'
gmp_srclinks=''
host='i686-build_apple-darwin10'
host_alias='i686-build_apple-darwin10'
host_cpu='i686'
host_os='darwin10'
host_vendor='build_apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/Users/xxx/tmp/crosstool-ng-1.5.2/targets/src/gmp-4.3.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='$(install_sh) -d'
mpn_objects=''
mpn_objs_in_libgmp=''
mpn_objs_in_libmp=''
oldincludedir='/usr/include'
prefix='/Users/xxx/x-tools/i386-unknown-linux-gnu'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define HAVE_HOST_CPU_i686 1
#define PACKAGE "gmp"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_STRING "GNU MP 4.3.1"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "4.3.1"
#define VERSION "4.3.1"
#define WANT_FFT 1
configure: exit 1
[-- Attachment #3: Type: text/plain, Size: 3 bytes --]
[-- Attachment #4: Type: text/plain, Size: 71 bytes --]
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 7+ messages in thread