Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: daniel.weck on May 16, 2012, 04:48:42 AM

Title: [resolved] Mac OS X 10.7 Lion, rockboxdev.sh fails to configure
Post by: daniel.weck on May 16, 2012, 04:48:42 AM
Hi Rockboxers!!

I used to compile Rockbox on Leopard, but since I did a clean install of Lion the ./tools/rockboxdev.sh script fails whilst configuring the gcc build:

Quote
UPDATE 1: Wait, I ran the script a second time and it has now completed without errors. I am trying to compile Rockbox now, and will let you know how it goes!

Quote
UPDATE 2: Rockbox compiled fine, and seems to run perfectly fine too (Toshiba Gigabeat F60). I have no idea why rockboxdev.sh needed to be run twice! :)

Code: [Select]
checking for arm-elf-eabi-gcc... /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include
checking for suffix of object files... configure: error: in `/tmp/rbdev-build/build-gcc/arm-elf-eabi/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

Here is a dump of /tmp/rbdev-build/build-gcc/arm-elf-eabi/libgcc/config.log:

Code: [Select]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /tmp/rbdev-build/gcc-4.4.4/libgcc/configure --cache-file=./config.cache --enable-multilib --with-cross-host=x86_64-apple-darwin11.4.0 --prefix=/usr/local --disable-libssp --disable-docs --disable-nls --enable-languages=c --program-transform-name=s,^,arm-elf-eabi-, --with-target-subdir=arm-elf-eabi --build=x86_64-apple-darwin11.4.0 --host=arm-elf-eabi --target=arm-elf-eabi --srcdir=../../../gcc-4.4.4/libgcc

## --------- ##
## Platform. ##
## --------- ##

hostname = freebeer.local
uname -m = x86_64
uname -r = 11.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64

/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 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
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: 4.00 gigabytes
Default processor set: 111 tasks, 487 threads, 2 processors
Load average: 3.68, Mach factor: 0.34
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /Developer/usr/bin
PATH: /Library/Frameworks/Python.framework/Versions/Current/bin
PATH: /usr/local/bin
PATH: /opt/local/bin
PATH: /usr/local/mysql/bin/
PATH: /usr/local/arm-elf/bin
PATH: /usr/local/m68k-elf/bin
PATH: /usr/local/sh-elf/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
PATH: /usr/X11/bin
PATH: /usr/local/git/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1199: creating cache ./config.cache
configure:1388: checking for --enable-version-specific-runtime-libs
configure:1403: result: no
configure:1435: checking for a BSD-compatible install
configure:1490: result: /usr/bin/install -c
configure:1506: checking for gawk
configure:1535: result: no
configure:1506: checking for mawk
configure:1535: result: no
configure:1506: checking for nawk
configure:1535: result: no
configure:1506: checking for awk
configure:1522: found /usr/bin/awk
configure:1532: result: awk
configure:1555: checking build system type
configure:1573: result: x86_64-apple-darwin11.4.0
configure:1581: checking host system type
configure:1595: result: arm-elf-eabi
configure:1654: checking for arm-elf-eabi-ar
configure:1680: result: /usr/local/arm-elf-eabi/bin/ar
configure:1733: checking for arm-elf-eabi-lipo
configure:1759: result: arm-elf-eabi-lipo
configure:1813: checking for arm-elf-eabi-nm
configure:1839: result: /tmp/rbdev-build/build-gcc/./gcc/nm
configure:1892: checking for arm-elf-eabi-ranlib
configure:1918: result: /usr/local/arm-elf-eabi/bin/ranlib
configure:1972: checking for arm-elf-eabi-strip
configure:1998: result: /usr/local/arm-elf-eabi/bin/strip
configure:2049: checking whether ln -s works
configure:2053: result: yes
configure:2070: checking for arm-elf-eabi-gcc
configure:2096: result: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include
configure:2380: checking for C compiler version
configure:2383: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include --version </dev/null >&5
xgcc (GCC) 4.4.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2386: $? = 0
configure:2388: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include -v </dev/null >&5
Reading specs from /tmp/rbdev-build/build-gcc/./gcc/specs
Target: arm-elf-eabi
Configured with: ../gcc-4.4.4/configure --target=arm-elf-eabi --prefix=/usr/local --enable-languages=c --disable-libssp --disable-docs --disable-nls
Thread model: single
gcc version 4.4.4 (GCC)
configure:2391: $? = 0
configure:2393: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2396: $? = 1
configure:2415: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include -o conftest -g -U_FORTIFY_SOURCE     conftest.c  >&5
conftest.c:1: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:2418: $? = 1
configure:2590: checking for suffix of object files
configure:2611: /tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include -c -g -U_FORTIFY_SOURCE    conftest.c >&5
conftest.c:1: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:2614: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2627: error: in `/tmp/rbdev-build/build-gcc/arm-elf-eabi/libgcc':
configure:2630: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin11.4.0
ac_cv_build_alias=x86_64-apple-darwin11.4.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -U_FORTIFY_SOURCE  '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-apple-darwin11.4.0
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-elf-eabi
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-elf-eabi
ac_cv_host=arm-elf-eabi
ac_cv_host_alias=arm-elf-eabi
ac_cv_prog_AR=/usr/local/arm-elf-eabi/bin/ar
ac_cv_prog_AWK=awk
ac_cv_prog_CC='/tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include'
ac_cv_prog_LIPO=arm-elf-eabi-lipo
ac_cv_prog_NM=/tmp/rbdev-build/build-gcc/./gcc/nm
ac_cv_prog_RANLIB=/usr/local/arm-elf-eabi/bin/ranlib
ac_cv_prog_STRIP=/usr/local/arm-elf-eabi/bin/strip

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='/usr/local/arm-elf-eabi/bin/ar'
AWK='awk'
CC='/tmp/rbdev-build/build-gcc/./gcc/xgcc -B/tmp/rbdev-build/build-gcc/./gcc/ -B/usr/local/arm-elf-eabi/bin/ -B/usr/local/arm-elf-eabi/lib/ -isystem /usr/local/arm-elf-eabi/include -isystem /usr/local/arm-elf-eabi/sys-include'
CFLAGS='-g -U_FORTIFY_SOURCE  '
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C='ECHO_N=''
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='arm-elf-eabi-lipo'
LN_S='ln -s'
LTLIBOBJS=''
NM='/tmp/rbdev-build/build-gcc/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='/usr/local/arm-elf-eabi/bin/ranlib'
SHELL='/bin/sh'
STRIP='/usr/local/arm-elf-eabi/bin/strip'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_LIPO=''
ac_ct_NM=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin11.4.0'
build_alias='x86_64-apple-darwin11.4.0'
build_cpu='x86_64'
build_libsubdir='build-x86_64-apple-darwin11.4.0'
build_os='darwin11.4.0'
build_subdir='build-x86_64-apple-darwin11.4.0'
build_vendor='apple'
datadir='${prefix}/share'
decimal_float=''
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='arm-elf-eabi'
host_alias='arm-elf-eabi'
host_cpu='arm'
host_noncanonical='arm-elf-eabi'
host_os='eabi'
host_subdir='.'
host_vendor='elf'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-4.4.4/libgcc/..'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,^,arm-elf-eabi-,'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='arm-elf-eabi'
target_subdir='arm-elf-eabi'
tmake_file=''
vis_hide=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"

configure: exit 1

Just FYI, the "resident" version of GCC on my Lion machine is:

Code: [Select]
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.6)
Tips welcome!
Many thanks!!
Cheers, Daniel

Post Merge: May 16, 2012, 04:56:05 AM
Wait, I ran the script a second time and it has now completed without errors. I am trying to compile Rockbox now, and will let you know how it goes! Cheers, Daniel