I'm following the directions here and I'm running into a problem - BitBang Mode AVR-Writer on Mac - arduino @ ウィキ - atwiki(アットウィキ)
./configure CFLAGS = "-g-O2-DSUPPORT_FT245R" LIBS = "-lftd2xx"
produces the error -
checking for C compiler default output file name... configure: error: C compiler cannot create executables
config.log has this, among a lot of other data -
cc1: error: unrecognised debug output level "-O2-DSUPPORT_FT245R"
configure:2209: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "avrdude"
| #define PACKAGE_TARNAME "avrdude"
| #define PACKAGE_VERSION "5.3.1"
| #define PACKAGE_STRING "avrdude 5.3.1"
| #define PACKAGE_BUGREPORT "avrdude-dev@nongnu.org"
| #define PACKAGE "avrdude"
| #define VERSION "5.3.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2248: error: C compiler cannot create executables
Advice?
(If i get this to work, I hope to rewrite and simplify the directions. )
You do have developer tools installed, right? You might want to reinstall them, "compiler cannot create executables" doesn't seem to make sense unless there isn't one.
I just reinstalled the dev tools and get the same results. below is the complete console.log file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by avrdude configure 5.3.1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure CFLAGS=-g-O2-DSUPPORT_FT245R LIBS=-lftd2xx
## --------- ##
## Platform. ##
## --------- ##
hostname = mwks-mbp-2.local
uname -m = i386
uname -r = 9.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~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 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~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: 4.00 gigabytes
Default processor set: 112 tasks, 442 threads, 2 processors
Load average: 1.01, Mach factor: 1.17
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/local/arm/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1354: checking build system type
configure:1372: result: i686-apple-darwin9.7.0
configure:1380: checking host system type
configure:1394: result: i686-apple-darwin9.7.0
configure:1402: checking target system type
configure:1416: result: i686-apple-darwin9.7.0
configure:1446: checking for a BSD-compatible install
configure:1501: result: /usr/bin/install -c
configure:1512: checking whether build environment is sane
configure:1555: result: yes
configure:1620: checking for gawk
configure:1649: result: no
configure:1620: checking for mawk
configure:1649: result: no
configure:1620: checking for nawk
configure:1649: result: no
configure:1620: checking for awk
configure:1636: found /usr/bin/awk
configure:1646: result: awk
configure:1656: checking whether make sets $(MAKE)
configure:1676: result: yes
configure:1894: checking for gcc
configure:1910: found /usr/bin/gcc
configure:1920: result: gcc
configure:2164: checking for C compiler version
configure:2167: gcc --version </dev/null >&5
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
Copyright (C) 2005 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:2170: $? = 0
configure:2172: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
configure:2175: $? = 0
configure:2177: gcc -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:2180: $? = 1
configure:2203: checking for C compiler default output file name
configure:2206: gcc -g-O2-DSUPPORT_FT245R conftest.c -lftd2xx >&5
cc1: error: unrecognised debug output level "-O2-DSUPPORT_FT245R"
configure:2209: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "avrdude"
| #define PACKAGE_TARNAME "avrdude"
| #define PACKAGE_VERSION "5.3.1"
| #define PACKAGE_STRING "avrdude 5.3.1"
| #define PACKAGE_BUGREPORT "avrdude-dev@nongnu.org"
| #define PACKAGE "avrdude"
| #define VERSION "5.3.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2248: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-apple-darwin9.7.0
ac_cv_build_alias=i686-apple-darwin9.7.0
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-g-O2-DSUPPORT_FT245R
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-apple-darwin9.7.0
ac_cv_host_alias=i686-apple-darwin9.7.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-apple-darwin9.7.0
ac_cv_target_alias=i686-apple-darwin9.7.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run tar'
AUTOCONF='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run automake-1.9'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-g-O2-DSUPPORT_FT245R'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFAULT_PAR_PORT=''
DEFAULT_SER_PORT=''
DEFS=''
DEPDIR=''
DIST_SUBDIRS_AC=''
DOC_INST_DIR=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_WARNINGS=''
EXEEXT=''
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=''
LIBOBJS=''
LIBS='-lftd2xx'
LIBUSB=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/missing --run makeinfo'
OBJEXT=''
PACKAGE='avrdude'
PACKAGE_BUGREPORT='avrdude-dev@nongnu.org'
PACKAGE_NAME='avrdude'
PACKAGE_STRING='avrdude 5.3.1'
PACKAGE_TARNAME='avrdude'
PACKAGE_VERSION='5.3.1'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SUBDIRS_AC=''
VERSION='5.3.1'
WINDOWS_DIRS=''
YACC=''
ac_ct_CC='gcc'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-apple-darwin9.7.0'
build_alias=''
build_cpu='i686'
build_os='darwin9.7.0'
build_vendor='apple'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-apple-darwin9.7.0'
host_alias=''
host_cpu='i686'
host_os='darwin9.7.0'
host_vendor='apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/Users/mattkime/Desktop/mac_bitbang/avrdude-5.3.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='$(mkinstalldirs)'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-apple-darwin9.7.0'
target_alias=''
target_cpu='i686'
target_os='darwin9.7.0'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "avrdude"
#define PACKAGE_BUGREPORT "avrdude-dev@nongnu.org"
#define PACKAGE_NAME "avrdude"
#define PACKAGE_STRING "avrdude 5.3.1"
#define PACKAGE_TARNAME "avrdude"
#define PACKAGE_VERSION "5.3.1"
#define VERSION "5.3.1"
configure: exit 77
from console.log -
configure:2177: gcc -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
looks like the first error to me. any other thoughts?
Hmm... I had trouble trying to compile that too. As I recall, I got past it by removing the entries for the read and write eeprom samples from the makefile in the samples folder, but it doesn't look like you're having the same problem...