'make' fails on OS X Leopard compiling default Hello World?

Moderator: adafruit

'make' fails on OS X Leopard compiling default Hello World?

Postby meese » Fri Feb 13, 2009 10:57 am

I'm trying to follow the 'hello world' tutorial on this page, but it doesn't seem to be working. The only thing I changed in the Makefile was "CC = avr-gcc.exe" to "CC = avr-gcc". This is what I get when I try to run it:
Code: Select all
make
avr-gcc -I.. -mmcu=atmega644 -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -DVIDEO_MODE=1 -fsigned-char -MD -MP -MT uzeboxSoundEngineCore.o -MF dep/uzeboxSoundEngineCore.o.d  -x assembler-with-cpp -Wa,-gdwarf2 -c  ../kernel/uzeboxSoundEngineCore.s
/usr/local/bin/../lib/gcc/avr/4.1.1/../../../../avr/include/stdint.h: Assembler messages:
/usr/local/bin/../lib/gcc/avr/4.1.1/../../../../avr/include/stdint.h:116: Error: unknown opcode `typedef'
...
../kernel/uzeboxSoundEngineCore.s:560: Error: bad expression
../kernel/uzeboxSoundEngineCore.s:560: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:560: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:560: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:560: Error: `,' required
../kernel/uzeboxSoundEngineCore.s:560: Error: constant value required
...
../kernel/uzeboxSoundEngineCore.s:598: Error: `,' required
../kernel/uzeboxSoundEngineCore.s:598: Error: constant value required
../kernel/uzeboxSoundEngineCore.s:598: Error: garbage at end of line
../kernel/uzeboxSoundEngineCore.s:658: Error: bad expression
../kernel/uzeboxSoundEngineCore.s:658: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:658: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:658: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:658: Error: missing ')'
../kernel/uzeboxSoundEngineCore.s:658: Error: constant value required
../kernel/uzeboxSoundEngineCore.s:658: Error: garbage at end of line
make: *** [uzeboxSoundEngineCore.o] Error 1

It's actually much longer but I removed some of the repeating parts.

http://www.ladyada.net/make/fuzebox/download.html
meese
 
Posts: 1
Joined: Fri Feb 13, 2009 10:33 am

Re: 'make' fails on OS X Leopard compiling default Hello World?

Postby smadin » Sat Feb 14, 2009 9:23 am

I initially had a similar problem. There's a page on the Uzebox wiki for Mac OS X specific stuff: http://uzebox.org/wiki/index.php?title=Mac_OS_X_Specific. For me, running
Code: Select all
avr-gcc-select 4

fixed it.
Something there is that doesn't love a wall,
That wants it down

--Robert Frost, "Mending Wall"
smadin
 
Posts: 7
Joined: Sun Dec 28, 2008 2:29 pm

Re: 'make' fails on OS X Leopard compiling default Hello World?

Postby Nender » Tue Apr 07, 2009 11:51 am

That fixed it for me as well.
Nender
 
Posts: 9
Joined: Fri Dec 26, 2008 1:36 pm

Re: 'make' fails on OS X Leopard compiling default Hello World?

Postby keithkml » Thu Apr 30, 2009 11:52 am

For some reason my AVR pack didn't come with avr-gcc-select. I tried installing avr-gcc with darwinports and it doesn't seem to come with this command either. Not sure what to do to get past these opcode error messages...
keithkml
 
Posts: 3
Joined: Wed Feb 04, 2009 3:06 am

Re: 'make' fails on OS X Leopard compiling default Hello World?

Postby keithkml » Fri May 01, 2009 8:51 am

Oops! Turned out I had OSX-AVR and CrossPack installed at once, and it was using the OSX-AVR version of everything! Now it works!
keithkml
 
Posts: 3
Joined: Wed Feb 04, 2009 3:06 am


Return to Fuzebox

Who is online

Users browsing this forum: mibignistinly and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]