Hi,
Normally google is my friend when it comes to these things, but now even it has failed me. I apologise in advance if this has been answered elsewhere.
A long-time PC/linux user, have recently switched to Mac (now they are Intel!) Am running Lepoard, and trying to compile several tool chains (cross compilers for ARM (2.95) and CRIS (1.64) architectures.
After getting over the "unrecognised host" stumbling block, the ./configure operation fails again:
Examining the config.log, there are A LOT of errors about conftest.dSYM being a directory. I attach the tail of the failing config.log
This is frustrating as, errno 22 is "Is a directory". Why does it create a directory? I tried running a small script that replaced "rm -f conftest.*" with rm -rf conftest*" to remove these directories, but no joy.
I would appreciate if someone could advise what might be wrong.
p.s. As these are toolchains, the configure needs to be run as root.
The error is the same for both tool chains.
Kernel version:
Thanks in advance,
Normally google is my friend when it comes to these things, but now even it has failed me. I apologise in advance if this has been answered elsewhere.
A long-time PC/linux user, have recently switched to Mac (now they are Intel!) Am running Lepoard, and trying to compile several tool chains (cross compilers for ARM (2.95) and CRIS (1.64) architectures.
After getting over the "unrecognised host" stumbling block, the ./configure operation fails again:
Code:
[Beginning truncated ]*
Configuring opcodes...
loading cache ../config.cache
checking host system type... i386-apple-darwin10.2.0
checking target system type... arm-unknown-elf
checking build system type... i386-apple-darwin10.2.0
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -W -Wall ) works... yes
checking whether the C compiler (gcc -g -O2 -W -Wall ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm
checking whether ln -s works... (cached) yes
loading cache ../config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) .dSYM
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... none
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking whether the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... no
checking command to parse /usr/bin/nm output... rm: conftest.dSYM: is a directory
ok
checking how to hardcode library paths into programs... unsupported
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) .dSYM
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -W -Wall ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Examining the config.log, there are A LOT of errors about conftest.dSYM being a directory. I attach the tail of the failing config.log
Code:
marcus-mbp:opcodes marcus$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:605: checking host system type
configure:626: checking target system type
configure:644: checking build system type
configure:669: checking for gcc
configure:782: checking whether the C compiler (gcc -g -O2 -W -Wall ) works
configure:798: gcc -o conftest -g -O2 -W -Wall conftest.c 1>&5
configure:795: warning: return type defaults to 'int'
configure:824: checking whether the C compiler (gcc -g -O2 -W -Wall ) is a cross-compiler
configure:829: checking whether we are using GNU C
configure:857: checking whether gcc accepts -g
configure:889: checking for POSIXized ISC
configure:927: checking for a BSD compatible install
configure:980: checking whether build environment is sane
configure:1037: checking whether make sets ${MAKE}
configure:1083: checking for working aclocal
configure:1096: checking for working autoconf
configure:1109: checking for working automake
configure:1122: checking for working autoheader
configure:1135: checking for working makeinfo
configure:1158: checking for ar
configure:1190: checking for ranlib
configure:1328: checking for ranlib
configure:1367: checking for ld used by GCC
configure:1429: checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld
configure:1445: checking for BSD-compatible nm
configure:1481: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: gcc -c -g -O2 -W -Wall conftest.c 1>&5
ltconfig:776: checking if gcc PIC flag -fPIC works
ltconfig:777: gcc -c -g -O2 -W -Wall -fPIC -DPIC conftest.c 1>&5
ltconfig:829: checking if gcc supports -c -o file.o
ltconfig:830: gcc -c -g -O2 -W -Wall -o out/conftest2.o conftest.c 1>&5
ltconfig:862: checking if gcc supports -c -o file.lo
ltconfig:863: gcc -c -g -O2 -W -Wall -c -o conftest.lo conftest.c 1>&5
ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:915: gcc -c -g -O2 -W -Wall -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
ltconfig:958: checking if gcc static flag -static works
ltconfig:959: gcc -o conftest -g -O2 -W -Wall -static conftest.c 1>&5
conftest.c:1: warning: return type defaults to 'int'
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
ltconfig:1635: checking if global_symbol_pipe works
ltconfig:1636: gcc -c -g -O2 -W -Wall conftest.c 1>&5
conftest.c:9: warning: return type defaults to 'int'
ltconfig:1639: eval "/usr/bin/nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
cannot find nm_test_var in conftest.nm
ltconfig:1635: checking if global_symbol_pipe works
ltconfig:1636: gcc -c -g -O2 -W -Wall conftest.c 1>&5
conftest.c:9: warning: return type defaults to 'int'
ltconfig:1639: eval "/usr/bin/nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1691: gcc -o conftest -g -O2 -W -Wall -fno-builtin conftest.c conftstm.o 1>&5
conftest.c:6: warning: 'main' is usually a function
configure:1714: checking whether to enable maintainer-specific portions of Makefiles
configure:1737: checking for Cygwin environment
configure:1770: checking for mingw32 environment
configure:1801: checking for executable suffix
configure:1837: checking for gcc
configure:1950: checking whether the C compiler (gcc -g -O2 -W -Wall ) works
configure:1966: gcc -o conftest.dSYM -g -O2 -W -Wall conftest.c 1>&5
configure:1963: warning: return type defaults to 'int'
ld: can't open output file for writing: conftest.dSYM, errno=21
collect2: ld returned 1 exit status
configure: failed program was:
#line 1961 "configure"
#include "confdefs.h"
main(){return(0);}
This is frustrating as, errno 22 is "Is a directory". Why does it create a directory? I tried running a small script that replaced "rm -f conftest.*" with rm -rf conftest*" to remove these directories, but no joy.
I would appreciate if someone could advise what might be wrong.
p.s. As these are toolchains, the configure needs to be run as root.
The error is the same for both tool chains.
Kernel version:
Code:
marcus-mbp:srcs marcus$ uname -v
Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
Thanks in advance,