MiniPOV and GCC setup problems for MacOSX

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
fraserrini
 
Posts: 1
Joined: Sat Feb 06, 2010 4:37 pm

MiniPOV and GCC setup problems for MacOSX

Post by fraserrini »

Hi, I recently bought the brain machine kit from makeshed
http://www.makershed.com/ProductDetails ... tCode=MSBM
and have been no end of troubles getting the software to work on my MacOSX Ver 10.5.8
I didnt have a serial port so i bought a PL-2303 chipset from newegg to compensate, followed the nescesary steps outlined for installatio as seen on
http://www.ladyada.net/make/minipov3/so ... tml#macosx
Tried every setup on there to get it to work.
1) directly installing the MiniPOV firmware and the driver hardware from the net didnt work. the computer didnt recognize the USB adaptor device when i looked for it in the Terminal window (ls /dev/cu.* )

so i gathered it was a problem with my setup of avr-gcc
http://www.ladyada.net/learn/avr/setup-mac.html

1) when i type in echo 'PATH=$PATH:/usr/local/bin' >> ~/.bash_profile
i dont get an output
2) that didnt work so i had to try the "Option 3. Old style, 'by hand' compilation"
everything worked till i got to the compiling of gcc
Configure gcc for AVR.
Type: ../gcc-4.2.0/configure --target=avr --enable-languages=c --disable-libssp
worked then
compile gcc.
type: make CC="cc --no-cpp-precomp" <return>
didnt work
this is the config.log file

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

configure:630: checking host system type
configure:651: checking target system type
configure:669: checking build system type
configure:724: checking for a BSD compatible install
configure:777: checking whether ln works
configure:801: checking whether ln -s works
configure:1866: checking for gcc
configure:1979: checking whether the C compiler (gcc ) works
configure:1995: gcc -o BANNED BANNED.c 1>&5
configure:2021: checking whether the C compiler (gcc ) is a cross-compiler
configure:2026: checking whether we are using GNU C
configure:2035: gcc -E BANNED.c
configure:2054: checking whether gcc accepts -g
configure:2121: checking for gnatbind
configure:2186: checking whether compiler driver understands Ada
configure:2218: checking how to compare bootstrapped objects
configure:2338: checking for correct version of gmp.h
configure:2351: gcc -c -g -O2 BANNED.c 1>&5
configure:2341:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2345: error: 'choke' undeclared (first use in this function)
configure:2345: error: (Each undeclared identifier is reported only once
configure:2345: error: for each function it appears in.)
configure:2345: error: syntax error before 'me'
configure: failed program was:
#line 2340 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
choke me
#endif

; return 0; }
configure:3513: checking for bison
configure:3553: checking for bison
configure:3592: checking for gm4
configure:3631: checking for flex
configure:3671: checking for flex
configure:3710: checking for makeinfo
configure:3763: checking for expect
configure:3804: checking for runtest
configure:3852: checking for i386-apple-darwin9.8.0-ar
configure:3883: checking for ar
configure:3927: checking for i386-apple-darwin9.8.0-as
configure:3958: checking for as
configure:4002: checking for i386-apple-darwin9.8.0-dlltool
configure:4033: checking for dlltool
configure:4077: checking for i386-apple-darwin9.8.0-ld
configure:4152: checking for i386-apple-darwin9.8.0-lipo
configure:4183: checking for lipo
configure:4227: checking for i386-apple-darwin9.8.0-nm
configure:4258: checking for nm
configure:4302: checking for i386-apple-darwin9.8.0-ranlib
configure:4333: checking for ranlib
configure:4372: checking for i386-apple-darwin9.8.0-strip
configure:4403: checking for strip
configure:4442: checking for i386-apple-darwin9.8.0-windres
configure:4473: checking for windres
configure:4517: checking for i386-apple-darwin9.8.0-objcopy
configure:4548: checking for objcopy
configure:4592: checking for i386-apple-darwin9.8.0-objdump
configure:4623: checking for objdump
configure:4704: checking for avr-cc
configure:4704: checking for avr-gcc
configure:4795: checking for avr-c++
configure:4886: checking for avr-gcc
configure:4972: checking for avr-gcj
configure:5063: checking for avr-gfortran
configure:5219: checking for ar
configure:5372: checking for as
configure:5525: checking for dlltool
configure:5579: checking for avr-dlltool
configure:5678: checking for ld
configure:5831: checking for lipo
configure:5885: checking for avr-lipo
configure:5984: checking for nm
configure:6137: checking for objdump
configure:6290: checking for ranlib
configure:6443: checking for strip
configure:6596: checking for windres
configure:6650: checking for avr-windres
configure:6729: checking where to find the target ar
configure:6762: checking where to find the target as
configure:6795: checking where to find the target cc
configure:6828: checking where to find the target c++
configure:6864: checking where to find the target c++ for libstdc++
configure:6900: checking where to find the target dlltool
configure:6933: checking where to find the target gcc
configure:6966: checking where to find the target gcj
configure:7002: checking where to find the target gfortran
configure:7038: checking where to find the target ld
configure:7071: checking where to find the target lipo
configure:7094: checking where to find the target nm
configure:7127: checking where to find the target objdump
configure:7160: checking where to find the target ranlib
configure:7193: checking where to find the target strip
configure:7226: checking where to find the target windres
configure:7287: checking whether to enable maintainer-specific portions of Makefiles
configure:7336: checking whether -fkeep-inline-functions is supported
configure:7345: gcc -c -g -O2 -fkeep-inline-functions BANNED.c 1>&5

and this is the terminal output error


checking for perl... perl
checking build system type... i386-apple-darwin9.8.0
checking host system type... i386-apple-darwin9.8.0
checking for i386-apple-darwin9.8.0-ar... no
checking for ar... ar
checking for i386-apple-darwin9.8.0-ranlib... no
checking for ranlib... ranlib
checking for i386-apple-darwin9.8.0-gcc... cc --no-cpp-precomp
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-build-libiberty] Error 1
make: *** [all] Error 2
-------------------------------------------------
Can anyone help, it would be greatly appreciated

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: MiniPOV and GCC setup problems for MacOSX

Post by adafruit »

try avr mac pack or the other ready-to-go packages

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”