I use file coba.s
.include "tn13Adef.inc"
.def temp = R16
//Pin assignments
.equ LED = PB0 ;pin 5 of ATtiny13
.cseg
.org 0x00
rjmp setup
setup:
//CONFIGURE I/O PINS
ldi temp, (1 << LED)
out PORTB, temp
out DDRB,temp
loop:
rjmp loop
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avr-as -mmcu=attiny13A -o coba.out coba.s
coba.s: Assembler messages:
coba.s:1: Error: can't open tn13Adef.inc for reading: No such file or directory
coba.s:2: Error: unknown pseudo-op: `.def'
coba.s:3: Error: junk at end of line, first unrecognized character is `/'
coba.s:4: Error: expected comma after "LED"
coba.s:5: Error: unknown pseudo-op: `.cseg'
coba.s:9: Error: junk at end of line, first unrecognized character is `/'
coba.s:10: Error: constant value required
coba.s:10: Error: register number above 15 required
coba.s:11: Error: constant value required
coba.s:11: Error: constant value required
coba.s:12: Error: constant value required
coba.s:12: Error: constant value required
Oops, it needs tn13Adef.inc. Fortunately I have that on avrasm2 (it for windows for sure, but the include directory have a bunch of def files we need), copy that to the coba.s folder.
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avr-as -mmcu=attiny13A -o coba.out coba.s
tn13Adef.inc: Assembler messages:
tn13Adef.inc:47: Error: unknown pseudo-op: `.device'
tn13Adef.inc:49: Error: expected comma after "SIGNATURE_000"
tn13Adef.inc:50: Error: expected comma after "SIGNATURE_001"
tn13Adef.inc:51: Error: expected comma after "SIGNATURE_002"
tn13Adef.inc:61: Error: expected comma after "SREG"
tn13Adef.inc:62: Error: expected comma after "SPL"
tn13Adef.inc:63: Error: expected comma after "GIMSK"
tn13Adef.inc:64: Error: expected comma after "GIFR"
tn13Adef.inc:65: Error: expected comma after "TIMSK0"
tn13Adef.inc:66: Error: expected comma after "TIFR0"
tn13Adef.inc:67: Error: expected comma after "SPMCSR"
tn13Adef.inc:68: Error: expected comma after "OCR0A"
tn13Adef.inc:69: Error: expected comma after "MCUCR"
tn13Adef.inc:70: Error: expected comma after "MCUSR"
tn13Adef.inc:71: Error: expected comma after "TCCR0B"
tn13Adef.inc:72: Error: expected comma after "TCNT0"
tn13Adef.inc:73: Error: expected comma after "OSCCAL"
tn13Adef.inc:74: Error: expected comma after "BODCR"
tn13Adef.inc:75: Error: expected comma after "TCCR0A"
tn13Adef.inc:76: Error: expected comma after "DWDR"
tn13Adef.inc:77: Error: expected comma after "OCR0B"
tn13Adef.inc:78: Error: expected comma after "GTCCR"
tn13Adef.inc:79: Error: expected comma after "CLKPR"
tn13Adef.inc:80: Error: expected comma after "PRR"
tn13Adef.inc:81: Error: expected comma after "WDTCR"
tn13Adef.inc:82: Error: expected comma after "EEAR"
tn13Adef.inc:83: Error: expected comma after "EEDR"
tn13Adef.inc:84: Error: expected comma after "EECR"
tn13Adef.inc:85: Error: expected comma after "PORTB"
tn13Adef.inc:86: Error: expected comma after "DDRB"
tn13Adef.inc:87: Error: expected comma after "PINB"
tn13Adef.inc:88: Error: expected comma after "PCMSK"
tn13Adef.inc:89: Error: expected comma after "DIDR0"
tn13Adef.inc:90: Error: expected comma after "ACSR"
tn13Adef.inc:91: Error: expected comma after "ADMUX"
tn13Adef.inc:92: Error: expected comma after "ADCSRA"
tn13Adef.inc:93: Error: expected comma after "ADCH"
tn13Adef.inc:94: Error: expected comma after "ADCL"
tn13Adef.inc:95: Error: expected comma after "ADCSRB"
tn13Adef.inc:102: Error: expected comma after "MUX0"
tn13Adef.inc:103: Error: expected comma after "MUX1"
tn13Adef.inc:104: Error: expected comma after "ADLAR"
tn13Adef.inc:105: Error: expected comma after "REFS0"
tn13Adef.inc:108: Error: expected comma after "ADPS0"
tn13Adef.inc:109: Error: expected comma after "ADPS1"
tn13Adef.inc:110: Error: expected comma after "ADPS2"
tn13Adef.inc:111: Error: expected comma after "ADIE"
tn13Adef.inc:112: Error: expected comma after "ADIF"
tn13Adef.inc:113: Error: expected comma after "ADATE"
tn13Adef.inc:114: Error: expected comma after "ADSC"
tn13Adef.inc:115: Error: expected comma after "ADEN"
tn13Adef.inc:118: Error: expected comma after "ADCH0"
tn13Adef.inc:119: Error: expected comma after "ADCH1"
tn13Adef.inc:120: Error: expected comma after "ADCH2"
tn13Adef.inc:121: Error: expected comma after "ADCH3"
tn13Adef.inc:122: Error: expected comma after "ADCH4"
tn13Adef.inc:123: Error: expected comma after "ADCH5"
tn13Adef.inc:124: Error: expected comma after "ADCH6"
tn13Adef.inc:125: Error: expected comma after "ADCH7"
tn13Adef.inc:128: Error: expected comma after "ADCL0"
tn13Adef.inc:129: Error: expected comma after "ADCL1"
tn13Adef.inc:130: Error: expected comma after "ADCL2"
tn13Adef.inc:131: Error: expected comma after "ADCL3"
tn13Adef.inc:132: Error: expected comma after "ADCL4"
tn13Adef.inc:133: Error: expected comma after "ADCL5"
tn13Adef.inc:134: Error: expected comma after "ADCL6"
tn13Adef.inc:135: Error: expected comma after "ADCL7"
tn13Adef.inc:138: Error: expected comma after "ADTS0"
tn13Adef.inc:139: Error: expected comma after "ADTS1"
tn13Adef.inc:140: Error: expected comma after "ADTS2"
tn13Adef.inc:143: Error: expected comma after "ADC1D"
tn13Adef.inc:144: Error: expected comma after "ADC3D"
tn13Adef.inc:145: Error: expected comma after "ADC2D"
tn13Adef.inc:146: Error: expected comma after "ADC0D"
tn13Adef.inc:151: Error: expected comma after "ACME"
tn13Adef.inc:154: Error: expected comma after "ACIS0"
tn13Adef.inc:155: Error: expected comma after "ACIS1"
tn13Adef.inc:156: Error: expected comma after "ACIE"
tn13Adef.inc:157: Error: expected comma after "ACI"
tn13Adef.inc:158: Error: expected comma after "ACO"
tn13Adef.inc:159: Error: expected comma after "ACBG"
tn13Adef.inc:160: Error: expected comma after "AINBG"
tn13Adef.inc:161: Error: expected comma after "ACD"
tn13Adef.inc:164: Error: expected comma after "AIN0D"
tn13Adef.inc:165: Error: expected comma after "AIN1D"
tn13Adef.inc:170: Error: expected comma after "EEARL"
tn13Adef.inc:171: Error: expected comma after "EEAR0"
tn13Adef.inc:172: Error: expected comma after "EEAR1"
tn13Adef.inc:173: Error: expected comma after "EEAR2"
tn13Adef.inc:174: Error: expected comma after "EEAR3"
tn13Adef.inc:175: Error: expected comma after "EEAR4"
tn13Adef.inc:176: Error: expected comma after "EEAR5"
tn13Adef.inc:179: Error: expected comma after "EEDR0"
tn13Adef.inc:180: Error: expected comma after "EEDR1"
tn13Adef.inc:181: Error: expected comma after "EEDR2"
tn13Adef.inc:182: Error: expected comma after "EEDR3"
tn13Adef.inc:183: Error: expected comma after "EEDR4"
tn13Adef.inc:184: Error: expected comma after "EEDR5"
tn13Adef.inc:185: Error: expected comma after "EEDR6"
tn13Adef.inc:186: Error: expected comma after "EEDR7"
tn13Adef.inc:189: Error: expected comma after "EERE"
tn13Adef.inc:190: Error: expected comma after "EEWE"
tn13Adef.inc:191: Error: expected comma after "EEPE"
tn13Adef.inc:192: Error: expected comma after "EEMWE"
tn13Adef.inc:193: Error: expected comma after "EEMPE"
tn13Adef.inc:194: Error: expected comma after "EERIE"
tn13Adef.inc:195: Error: expected comma after "EEPM0"
tn13Adef.inc:196: Error: expected comma after "EEPM1"
tn13Adef.inc:201: Error: expected comma after "PORTB0"
tn13Adef.inc:202: Error: expected comma after "PB0"
tn13Adef.inc:203: Error: expected comma after "PORTB1"
tn13Adef.inc:204: Error: expected comma after "PB1"
tn13Adef.inc:205: Error: expected comma after "PORTB2"
tn13Adef.inc:206: Error: expected comma after "PB2"
tn13Adef.inc:207: Error: expected comma after "PORTB3"
tn13Adef.inc:208: Error: expected comma after "PB3"
tn13Adef.inc:209: Error: expected comma after "PORTB4"
tn13Adef.inc:210: Error: expected comma after "PB4"
tn13Adef.inc:211: Error: expected comma after "PORTB5"
tn13Adef.inc:212: Error: expected comma after "PB5"
tn13Adef.inc:215: Error: expected comma after "DDB0"
tn13Adef.inc:216: Error: expected comma after "DDB1"
tn13Adef.inc:217: Error: expected comma after "DDB2"
tn13Adef.inc:218: Error: expected comma after "DDB3"
tn13Adef.inc:219: Error: expected comma after "DDB4"
tn13Adef.inc:220: Error: expected comma after "DDB5"
tn13Adef.inc:223: Error: expected comma after "PINB0"
tn13Adef.inc:224: Error: expected comma after "PINB1"
tn13Adef.inc:225: Error: expected comma after "PINB2"
tn13Adef.inc:226: Error: expected comma after "PINB3"
tn13Adef.inc:227: Error: expected comma after "PINB4"
tn13Adef.inc:228: Error: expected comma after "PINB5"
tn13Adef.inc:233: Error: expected comma after "ISC00"
tn13Adef.inc:234: Error: expected comma after "ISC01"
tn13Adef.inc:237: Error: expected comma after "GICR"
tn13Adef.inc:238: Error: expected comma after "PCIE"
tn13Adef.inc:239: Error: expected comma after "INT0"
tn13Adef.inc:242: Error: expected comma after "PCIF"
tn13Adef.inc:243: Error: expected comma after "INTF0"
tn13Adef.inc:246: Error: expected comma after "PCINT0"
tn13Adef.inc:247: Error: expected comma after "PCINT1"
tn13Adef.inc:248: Error: expected comma after "PCINT2"
tn13Adef.inc:249: Error: expected comma after "PCINT3"
tn13Adef.inc:250: Error: expected comma after "PCINT4"
tn13Adef.inc:251: Error: expected comma after "PCINT5"
tn13Adef.inc:256: Error: expected comma after "TOIE0"
tn13Adef.inc:257: Error: expected comma after "OCIE0A"
tn13Adef.inc:258: Error: expected comma after "OCIE0B"
tn13Adef.inc:261: Error: expected comma after "TOV0"
tn13Adef.inc:262: Error: expected comma after "OCF0A"
tn13Adef.inc:263: Error: expected comma after "OCF0B"
tn13Adef.inc:266: Error: expected comma after "OCR0A_0"
tn13Adef.inc:267: Error: expected comma after "OCR0A_1"
tn13Adef.inc:268: Error: expected comma after "OCR0A_2"
tn13Adef.inc:269: Error: expected comma after "OCR0A_3"
tn13Adef.inc:270: Error: expected comma after "OCR0A_4"
tn13Adef.inc:271: Error: expected comma after "OCR0A_5"
tn13Adef.inc:272: Error: expected comma after "OCR0A_6"
tn13Adef.inc:273: Error: expected comma after "OCR0A_7"
tn13Adef.inc:276: Error: expected comma after "WGM00"
tn13Adef.inc:277: Error: expected comma after "WGM01"
tn13Adef.inc:278: Error: expected comma after "COM0B0"
tn13Adef.inc:279: Error: expected comma after "COM0B1"
tn13Adef.inc:280: Error: expected comma after "COM0A0"
tn13Adef.inc:281: Error: expected comma after "COM0A1"
tn13Adef.inc:284: Error: expected comma after "TCNT0_0"
tn13Adef.inc:285: Error: expected comma after "TCNT0_1"
tn13Adef.inc:286: Error: expected comma after "TCNT0_2"
tn13Adef.inc:287: Error: expected comma after "TCNT0_3"
tn13Adef.inc:288: Error: expected comma after "TCNT0_4"
tn13Adef.inc:289: Error: expected comma after "TCNT0_5"
tn13Adef.inc:290: Error: expected comma after "TCNT0_6"
tn13Adef.inc:291: Error: expected comma after "TCNT0_7"
tn13Adef.inc:294: Error: expected comma after "CS00"
tn13Adef.inc:295: Error: expected comma after "CS01"
tn13Adef.inc:296: Error: expected comma after "CS02"
tn13Adef.inc:297: Error: expected comma after "WGM02"
tn13Adef.inc:298: Error: expected comma after "FOC0B"
tn13Adef.inc:299: Error: expected comma after "FOC0A"
tn13Adef.inc:302: Error: expected comma after "OCR0B_0"
tn13Adef.inc:303: Error: expected comma after "OCR0B_1"
tn13Adef.inc:304: Error: expected comma after "OCR0B_2"
tn13Adef.inc:305: Error: expected comma after "OCR0B_3"
tn13Adef.inc:306: Error: expected comma after "OCR0B_4"
tn13Adef.inc:307: Error: expected comma after "OCR0B_5"
tn13Adef.inc:308: Error: expected comma after "OCR0B_6"
tn13Adef.inc:309: Error: expected comma after "OCR0B_7"
tn13Adef.inc:312: Error: expected comma after "PSR10"
tn13Adef.inc:313: Error: expected comma after "TSM"
tn13Adef.inc:318: Error: expected comma after "WDP0"
tn13Adef.inc:319: Error: expected comma after "WDP1"
tn13Adef.inc:320: Error: expected comma after "WDP2"
tn13Adef.inc:321: Error: expected comma after "WDE"
tn13Adef.inc:322: Error: expected comma after "WDCE"
tn13Adef.inc:323: Error: expected comma after "WDP3"
tn13Adef.inc:324: Error: expected comma after "WDTIE"
tn13Adef.inc:325: Error: expected comma after "WDTIF"
tn13Adef.inc:330: Error: expected comma after "SREG_C"
tn13Adef.inc:331: Error: expected comma after "SREG_Z"
tn13Adef.inc:332: Error: expected comma after "SREG_N"
tn13Adef.inc:333: Error: expected comma after "SREG_V"
tn13Adef.inc:334: Error: expected comma after "SREG_S"
tn13Adef.inc:335: Error: expected comma after "SREG_H"
tn13Adef.inc:336: Error: expected comma after "SREG_T"
tn13Adef.inc:337: Error: expected comma after "SREG_I"
tn13Adef.inc:340: Error: expected comma after "SP0"
tn13Adef.inc:341: Error: expected comma after "SP1"
tn13Adef.inc:342: Error: expected comma after "SP2"
tn13Adef.inc:343: Error: expected comma after "SP3"
tn13Adef.inc:344: Error: expected comma after "SP4"
tn13Adef.inc:345: Error: expected comma after "SP5"
tn13Adef.inc:346: Error: expected comma after "SP6"
tn13Adef.inc:347: Error: expected comma after "SP7"
tn13Adef.inc:352: Error: expected comma after "SM0"
tn13Adef.inc:353: Error: expected comma after "SM1"
tn13Adef.inc:354: Error: expected comma after "SE"
tn13Adef.inc:355: Error: expected comma after "PUD"
tn13Adef.inc:358: Error: expected comma after "PORF"
tn13Adef.inc:359: Error: expected comma after "EXTRF"
tn13Adef.inc:360: Error: expected comma after "BORF"
tn13Adef.inc:361: Error: expected comma after "WDRF"
tn13Adef.inc:364: Error: expected comma after "CAL0"
tn13Adef.inc:365: Error: expected comma after "CAL1"
tn13Adef.inc:366: Error: expected comma after "CAL2"
tn13Adef.inc:367: Error: expected comma after "CAL3"
tn13Adef.inc:368: Error: expected comma after "CAL4"
tn13Adef.inc:369: Error: expected comma after "CAL5"
tn13Adef.inc:370: Error: expected comma after "CAL6"
tn13Adef.inc:373: Error: expected comma after "CLKPS0"
tn13Adef.inc:374: Error: expected comma after "CLKPS1"
tn13Adef.inc:375: Error: expected comma after "CLKPS2"
tn13Adef.inc:376: Error: expected comma after "CLKPS3"
tn13Adef.inc:377: Error: expected comma after "CLKPCE"
tn13Adef.inc:380: Error: expected comma after "DWDR0"
tn13Adef.inc:381: Error: expected comma after "DWDR1"
tn13Adef.inc:382: Error: expected comma after "DWDR2"
tn13Adef.inc:383: Error: expected comma after "DWDR3"
tn13Adef.inc:384: Error: expected comma after "DWDR4"
tn13Adef.inc:385: Error: expected comma after "DWDR5"
tn13Adef.inc:386: Error: expected comma after "DWDR6"
tn13Adef.inc:387: Error: expected comma after "DWDR7"
tn13Adef.inc:390: Error: expected comma after "SPMEN"
tn13Adef.inc:391: Error: expected comma after "PGERS"
tn13Adef.inc:392: Error: expected comma after "PGWRT"
tn13Adef.inc:393: Error: expected comma after "RFLB"
tn13Adef.inc:394: Error: expected comma after "CTPB"
tn13Adef.inc:397: Error: expected comma after "PRADC"
tn13Adef.inc:398: Error: expected comma after "PRTIM0"
tn13Adef.inc:401: Error: expected comma after "BPDSE"
tn13Adef.inc:402: Error: expected comma after "BPDS"
tn13Adef.inc:407: Error: expected comma after "LB1"
tn13Adef.inc:408: Error: expected comma after "LB2"
tn13Adef.inc:413: Error: expected comma after "CKSEL0"
tn13Adef.inc:414: Error: expected comma after "CKSEL1"
tn13Adef.inc:415: Error: expected comma after "SUT0"
tn13Adef.inc:416: Error: expected comma after "SUT1"
tn13Adef.inc:417: Error: expected comma after "CKDIV8"
tn13Adef.inc:418: Error: expected comma after "WDTON"
tn13Adef.inc:419: Error: expected comma after "EESAVE"
tn13Adef.inc:420: Error: expected comma after "SPIEN"
tn13Adef.inc:423: Error: expected comma after "RSTDISBL"
tn13Adef.inc:424: Error: expected comma after "BODLEVEL0"
tn13Adef.inc:425: Error: expected comma after "BODLEVEL1"
tn13Adef.inc:426: Error: expected comma after "DWEN"
tn13Adef.inc:427: Error: expected comma after "SELFPRGEN"
tn13Adef.inc:432: Error: unknown pseudo-op: `.def'
tn13Adef.inc:433: Error: unknown pseudo-op: `.def'
tn13Adef.inc:434: Error: unknown pseudo-op: `.def'
tn13Adef.inc:435: Error: unknown pseudo-op: `.def'
tn13Adef.inc:436: Error: unknown pseudo-op: `.def'
tn13Adef.inc:437: Error: unknown pseudo-op: `.def'
tn13Adef.inc:442: Error: expected comma after "FLASHEND"
tn13Adef.inc:443: Error: expected comma after "IOEND"
tn13Adef.inc:444: Error: expected comma after "SRAM_START"
tn13Adef.inc:445: Error: expected comma after "SRAM_SIZE"
tn13Adef.inc:446: Error: expected comma after "RAMEND"
tn13Adef.inc:447: Error: expected comma after "XRAMEND"
tn13Adef.inc:448: Error: expected comma after "E2END"
tn13Adef.inc:449: Error: expected comma after "EEPROMEND"
tn13Adef.inc:450: Error: expected comma after "EEADRBITS"
tn13Adef.inc:459: Error: expected comma after "PAGESIZE"
tn13Adef.inc:464: Error: expected comma after "INT0addr"
tn13Adef.inc:465: Error: expected comma after "PCI0addr"
tn13Adef.inc:466: Error: expected comma after "OVF0addr"
tn13Adef.inc:467: Error: expected comma after "ERDYaddr"
tn13Adef.inc:468: Error: expected comma after "ACIaddr"
tn13Adef.inc:469: Error: expected comma after "OC0Aaddr"
tn13Adef.inc:470: Error: expected comma after "OC0Baddr"
tn13Adef.inc:471: Error: expected comma after "WDTaddr"
tn13Adef.inc:472: Error: expected comma after "ADCCaddr"
tn13Adef.inc:474: Error: expected comma after "INT_VECTORS_SIZE"
coba.s:2: coba.s:2: Error: unknown pseudo-op: `.def'
coba.s:3: Error: junk at end of line, first unrecognized character is `/'
coba.s:4: Error: expected comma after "LED"
coba.s:5: Error: unknown pseudo-op: `.cseg'
coba.s:9: Error: junk at end of line, first unrecognized character is `/'
coba.s:10: Error: constant value required
coba.s:10: Error: register number above 15 required
coba.s:11: Error: constant value required
coba.s:11: Error: constant value required
coba.s:12: Error: constant value required
coba.s:12: Error: constant value required
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ mv coba.s coba.asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.asm tn13Adef.inc
hmm, maybe if I change the name to .asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ mv coba.s coba.asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.asm tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avr-as -mmcu=attiny13A -o coba.out coba.s
tn13Adef.inc: Assembler messages:
tn13Adef.inc:47: Error: unknown pseudo-op: `.device'
tn13Adef.inc:49: Error: expected comma after "SIGNATURE_000"
tn13Adef.inc:50: Error: expected comma after "SIGNATURE_001"
tn13Adef.inc:51: Error: expected comma after "SIGNATURE_002"
tn13Adef.inc:61: Error: expected comma after "SREG"
tn13Adef.inc:62: Error: expected comma after "SPL"
tn13Adef.inc:63: Error: expected comma after "GIMSK"
tn13Adef.inc:64: Error: expected comma after "GIFR"
tn13Adef.inc:65: Error: expected comma after "TIMSK0"
tn13Adef.inc:66: Error: expected comma after "TIFR0"
tn13Adef.inc:67: Error: expected comma after "SPMCSR"
tn13Adef.inc:68: Error: expected comma after "OCR0A"
tn13Adef.inc:69: Error: expected comma after "MCUCR"
tn13Adef.inc:70: Error: expected comma after "MCUSR"
tn13Adef.inc:71: Error: expected comma after "TCCR0B"
tn13Adef.inc:72: Error: expected comma after "TCNT0"
tn13Adef.inc:73: Error: expected comma after "OSCCAL"
tn13Adef.inc:74: Error: expected comma after "BODCR"
tn13Adef.inc:75: Error: expected comma after "TCCR0A"
What the...
It seems that avr-as not compatible with atmel assembler
(after googling/duckduckgoing, yes, it is not compatible)
so, download avra, an old 2010 release avra
Nugrohos-MacBook-Air:ATTiny13A nugroho$ cd
Nugrohos-MacBook-Air:~ nugroho$ cd Downloads/avr
avra-1.3.0/ avra-1.3.0.tar.bz2 avrdude-6.1.tar
Nugrohos-MacBook-Air:~ nugroho$ cd Downloads/avra-1.3.0
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ ls
AUTHORS COPYING README doc includes
Build INSTALL TODO examples src
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ less INSTALL
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ less README
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ ls
AUTHORS COPYING README doc includes
Build INSTALL TODO examples src
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ cd examples/
Nugrohos-MacBook-Air:examples nugroho$ ls
testcode_avra-1_2_3.asm throttle_divide.asm throttle_pulse.asm
testcode_avra-1_3_0.asm throttle_momentum.asm throttle_set_lowpass.asm
throttle.asm throttle_momentum_lowpass.asm tn15def.inc
throttle_backemf.asm throttle_multiply.asm
throttle_dev_set.inc throttle_op_set.inc
Nugrohos-MacBook-Air:examples nugroho$ less tn15def.inc
Nugrohos-MacBook-Air:examples nugroho$ cd ..
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ cd doc/
Nugrohos-MacBook-Air:doc nugroho$ ls
ChangeLog.html asciidoc-xhtml11.js images layout1.css
Makefile build-website.sh index.html xhtml11-manpage.css
README.html downloads.html index.txt xhtml11-quirks.css
README.txt downloads.txt layout1.conf xhtml11.css
Nugrohos-MacBook-Air:doc nugroho$ less README.
README.: No such file or directory
Nugrohos-MacBook-Air:doc nugroho$ less README.txt
Nugrohos-MacBook-Air:doc nugroho$ cd ..
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ ls
AUTHORS COPYING README doc includes
Build INSTALL TODO examples src
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ cd src/
Nugrohos-MacBook-Air:src nugroho$ ls
Makefile.am avra.c coff.h device.h macro.c mnemonic.c
Makefile.in avra.h configure directiv.c makefiles parser.c
args.c bootstrap configure.in expr.c map.c stab.h
args.h coff.c device.c file.c misc.h stdextra.c
Nugrohos-MacBook-Air:src nugroho$ cd makefiles/
Nugrohos-MacBook-Air:makefiles nugroho$ ls
Makefile.amiga.gcc Makefile.emx Makefile.linux Makefile.os2
Makefile.amiga.sas Makefile.lcc Makefile.mingw32 Makefile.osx
Nugrohos-MacBook-Air:makefiles nugroho$ less Makefile.osx
Nugrohos-MacBook-Air:makefiles nugroho$ cd ..
Nugrohos-MacBook-Air:src nugroho$ ls
Makefile.am avra.c coff.h device.h macro.c mnemonic.c
Makefile.in avra.h configure directiv.c makefiles parser.c
args.c bootstrap configure.in expr.c map.c stab.h
args.h coff.c device.c file.c misc.h stdextra.c
Nugrohos-MacBook-Air:src nugroho$ pwd
/Users/nugroho/Downloads/avra-1.3.0/src
Nugrohos-MacBook-Air:src nugroho$ cd ..
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ pwd
/Users/nugroho/Downloads/avra-1.3.0
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ ls
AUTHORS COPYING README doc includes
Build INSTALL TODO examples src
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ less INSTALL
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ less INSTALL
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ cd src/
Nugrohos-MacBook-Air:src nugroho$ ls
Makefile.am avra.c coff.h device.h macro.c mnemonic.c
Makefile.in avra.h configure directiv.c makefiles parser.c
args.c bootstrap configure.in expr.c map.c stab.h
args.h coff.c device.c file.c misc.h stdextra.c
Nugrohos-MacBook-Air:src nugroho$ ./configure
configure: error: cannot find install-sh or install.sh in . ./.. ./../..
Nugrohos-MacBook-Air:src nugroho$ less ../INSTALL
Nugrohos-MacBook-Air:src nugroho$ sh ./configure
configure: error: cannot find install-sh or install.sh in . ./.. ./../..
Nugrohos-MacBook-Air:src nugroho$ sh configure
configure: error: cannot find install-sh or install.sh in . ./.. ./../..
Nugrohos-MacBook-Air:src nugroho$ less ../INSTALL
Nugrohos-MacBook-Air:avra-1.3.0 nugroho$ cd src/
Nugrohos-MacBook-Air:src nugroho$ make -f makefiles/Makefile.osx
gcc -arch i386 -arch x86_64 -arch ppc -o avra args.c avra.c coff.c device.c directiv.c expr.c file.c macro.c map.c mnemonic.c parser.c stdextra.c
gcc: error: unrecognized command line option '-arch'
make: *** [all] Error 1
Nugrohos-MacBook-Air:src nugroho$ gcc
gcc gcc-ar-4.9.2 gcc-ranlib-4.9.2 gccmakedep
gcc-4.9.2 gcc-nm-4.9.2 gccLLVM
Nugrohos-MacBook-Air:src nugroho$ less makefiles/Makefile.osx
Nugrohos-MacBook-Air:src nugroho$ llvm-g
llvm-g++ llvm-gcc
Nugrohos-MacBook-Air:src nugroho$ nano makefiles/Makefile.osx
Nugrohos-MacBook-Air:src nugroho$ pwd
/Users/nugroho/Downloads/avra-1.3.0/src
The GCC didn't recognize the -arch option
and yes..., -arch is opition for GCC from apple
so I decide to use the llvm-gcc by edit Makefile from
CC=gcc
to
CC=llvm-gcc
and
Nugrohos-MacBook-Air:src nugroho$ make -f makefiles/Makefile.osx
llvm-gcc -arch i386 -arch x86_64 -arch ppc -o avra args.c avra.c coff.c device.c directiv.c expr.c file.c macro.c map.c mnemonic.c parser.c stdextra.c
In file included from args.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from args.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from args.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from args.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from args.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from args.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from avra.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from avra.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from avra.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from avra.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from avra.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from avra.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from coff.c:29:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from coff.c:29:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from coff.c:29:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from coff.c:29:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from coff.c:29:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from coff.c:29:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from device.c:30:
In file included from /usr/include/stdlib.h:63:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:32:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from device.c:30:
In file included from /usr/include/stdlib.h:63:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from device.c:30:
In file included from /usr/include/stdlib.h:63:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from device.c:30:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:109:
In file included from /usr/include/sys/signal.h:81:
/usr/include/machine/signal.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from device.c:30:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:109:
In file included from /usr/include/sys/signal.h:145:
/usr/include/machine/_mcontext.h:31:2: error: architecture not supported
#error architecture not supported
^
In file included from device.c:30:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:109:
In file included from /usr/include/sys/signal.h:149:
/usr/include/sys/_types/_sigaltstack.h:39:2: error: unknown type name '__darwin_size_t'; did you
mean '__darwin_ino_t'?
__darwin_size_t ss_size; /* signal stack length */
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from directiv.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from expr.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from expr.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from expr.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from expr.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from expr.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from expr.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from file.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from file.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from file.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from file.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from file.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from file.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from macro.c:33:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from macro.c:33:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from macro.c:33:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from macro.c:33:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from macro.c:33:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from macro.c:33:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from map.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from map.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from map.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from map.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from map.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from map.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from mnemonic.c:28:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from parser.c:34:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from parser.c:34:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from parser.c:34:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from parser.c:34:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from parser.c:34:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from parser.c:34:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:64:
/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
In file included from /usr/include/sys/_types.h:33:
/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:67:
In file included from /usr/include/_types.h:27:
/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:71:
/usr/include/sys/_types/_va_list.h:31:9: error: unknown type name '__darwin_va_list'; did you
mean '__builtin_va_list'?
typedef __darwin_va_list va_list;
^
note: '__builtin_va_list' declared here
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:72:
/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean
'__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
/usr/include/sys/_types.h:64:26: note: '__darwin_ino_t' declared here
typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
^
In file included from stdextra.c:32:
In file included from /usr/include/stdio.h:436:
/usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t'
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [all] Error 1
/Users/nugroho/Downloads/avra-1.3.0/src
Nugrohos-MacBook-Air:src nugroho$ nano makefiles/Makefile.osx
Nugrohos-MacBook-Air:src nugroho$ make -f makefiles/Makefile.osx
llvm-gcc -arch i386 -arch x86_64 -o avra args.c avra.c coff.c device.c directiv.c expr.c file.c macro.c map.c mnemonic.c parser.c stdextra.c
Nugrohos-MacBook-Air:src nugroho$ avr
avr-addr2line avr-elfedit avr-gcc-ranlib avr-info avr-objdump avr-strings
avr-ar avr-g++ avr-gcc-select avr-ld avr-project avr-strip
avr-as avr-gcc avr-gcov avr-ld.bfd avr-ranlib avrdude
avr-c++ avr-gcc-4.8.1 avr-gdb avr-man avr-readelf
avr-c++filt avr-gcc-ar avr-gprof avr-nm avr-run
avr-cpp avr-gcc-nm avr-help avr-objcopy avr-size
Nugrohos-MacBook-Air:src nugroho$ ls
Makefile.am avra.c config.log directiv.c map.c stdextra.c
Makefile.in avra.h configure expr.c misc.h
args.c bootstrap configure.in file.c mnemonic.c
args.h coff.c device.c macro.c parser.c
avra coff.h device.h makefiles stab.h
Nugrohos-MacBook-Air:src nugroho$ ./avra
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING.
usage: avra [-f][O|M|I|G] output file type
[-o] output file name
[-l] generate list file
[-m] generate map file
[--define[= ]] [--includedir ] [--listmac]
[--max_errors] [--devices] [--version]
[-h] [--help] general help
--listfile -l : Create list file
--mapfile -m : Create map file
--define -D : Define symbol.
--includepath -I : Additional include paths.
--listmac : List macro expansion in listfile.
--max_errors : Maximum number of errors before exit
(default: 10)
--devices : List out supported devices.
--version : Version information.
--help, -h : This help text.
Just replace the AVRASM32.EXE with AVRA.EXE in your
AVRStudio directories to avra's binary.
Yes, I'm cool, :)
Nugrohos-MacBook-Air:src nugroho$ cp avra /usr/local/bin/
cp: /usr/local/bin/avra: Permission denied
Nugrohos-MacBook-Air:src nugroho$ sudo cp avra /usr/local/bin/
Nugrohos-MacBook-Air:src nugroho$ avr
avr-addr2line avr-elfedit avr-gcc-ranlib avr-info avr-objdump avr-strings
avr-ar avr-g++ avr-gcc-select avr-ld avr-project avr-strip
avr-as avr-gcc avr-gcov avr-ld.bfd avr-ranlib avra
avr-c++ avr-gcc-4.8.1 avr-gdb avr-man avr-readelf avrdude
avr-c++filt avr-gcc-ar avr-gprof avr-nm avr-run
avr-cpp avr-gcc-nm avr-help avr-objcopy avr-size
Nugrohos-MacBook-Air:src nugroho$ cd
Nugrohos-MacBook-Air:~ nugroho$ cd Desktop/mikrocontroller/ATTiny/
.DS_Store Makefile main.bin main.elf main.lst main.o output.txt
ATTiny13A/ blink/ main.c main.hex main.map main.srec
Nugrohos-MacBook-Air:~ nugroho$ cd Desktop/mikrocontroller/ATTiny/ATTiny13A/
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avra
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING.
usage: avra [-f][O|M|I|G] output file type
[-o] output file name
[-l] generate list file
[-m] generate map file
[--define[= ]] [--includedir ] [--listmac]
[--max_errors] [--devices] [--version]
[-h] [--help] general help
--listfile -l : Create list file
--mapfile -m : Create map file
--define -D : Define symbol.
--includepath -I : Additional include paths.
--listmac : List macro expansion in listfile.
--max_errors : Maximum number of errors before exit
(default: 10)
--devices : List out supported devices.
--version : Version information.
--help, -h : This help text.
Just replace the AVRASM32.EXE with AVRA.EXE in your
AVRStudio directories to avra's binary.
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.s tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ mv coba.asm
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
Nugrohos-MacBook-Air:ATTiny13A nugroho$ mv coba.s coba.asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.asm tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avra -o coba.o coba.asm
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING.
Pass 1...
tn13Adef.inc(44) : PRAGMA directives currently ignored
tn13Adef.inc(48) : PRAGMA directives currently ignored
tn13Adef.inc(53) : PRAGMA directives currently ignored
tn13Adef.inc(54) : PRAGMA directives currently ignored
tn13Adef.inc(451) : PRAGMA directives currently ignored
tn13Adef.inc(452) : PRAGMA directives currently ignored
tn13Adef.inc(453) : PRAGMA directives currently ignored
tn13Adef.inc(454) : PRAGMA directives currently ignored
coba.asm(3) : Error : Unknown mnemonic/macro: //pin
coba.asm(9) : Error : Unknown mnemonic/macro: //configure
Nugrohos-MacBook-Air:ATTiny13A nugroho$ nano coba.asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ nano coba.asm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avra -o coba.o coba.asm
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING.
Pass 1...
tn13Adef.inc(44) : PRAGMA directives currently ignored
tn13Adef.inc(48) : PRAGMA directives currently ignored
tn13Adef.inc(53) : PRAGMA directives currently ignored
tn13Adef.inc(54) : PRAGMA directives currently ignored
tn13Adef.inc(451) : PRAGMA directives currently ignored
tn13Adef.inc(452) : PRAGMA directives currently ignored
tn13Adef.inc(453) : PRAGMA directives currently ignored
tn13Adef.inc(454) : PRAGMA directives currently ignored
Pass 2...
tn13Adef.inc(44) : PRAGMA directives currently ignored
tn13Adef.inc(48) : PRAGMA directives currently ignored
tn13Adef.inc(53) : PRAGMA directives currently ignored
tn13Adef.inc(54) : PRAGMA directives currently ignored
tn13Adef.inc(451) : PRAGMA directives currently ignored
tn13Adef.inc(452) : PRAGMA directives currently ignored
tn13Adef.inc(453) : PRAGMA directives currently ignored
tn13Adef.inc(454) : PRAGMA directives currently ignored
done
Used memory blocks:
Code : Start = 0x0000, End = 0x0004, Length = 0x0005
Assembly complete with no errors.
Segment usage:
Code : 5 words (10 bytes)
Data : 0 bytes
EEPROM : 0 bytes
Nugrohos-MacBook-Air:ATTiny13A nugroho$ ls
coba.asm coba.cof coba.eep.hex coba.hex coba.obj tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ nano tn13Adef.inc
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avra -o coba.o coba.asm
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING.
Pass 1...
Pass 2...
done
Used memory blocks:
Code : Start = 0x0000, End = 0x0004, Length = 0x0005
Assembly complete with no errors.
Segment usage:
Code : 5 words (10 bytes)
Data : 0 bytes
EEPROM : 0 bytes
What the heck is PRAGMA? So avra's not fully compatible with ATMEL Assembler (of course, :) ) comment out the code in tn13Adef.inc and we're good to go
And it seems avra directly compile to hex file, not the .o file so
Nugrohos-MacBook-Air:ATTiny13A nugroho$ avra -o coba.hex coba.asm
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Copyright (C) 1998-2010. Check out README file for more info
AVRA is an open source assembler for Atmel AVR microcontroller family
It can be used as a replacement of 'AVRASM32.EXE' the original assembler
shipped with AVR Studio. We do not guarantee full compatibility for avra.
AVRA comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of avra under the terms
of the GNU General Public License.
For more information about these matters, see the files named COPYING
Pass 1...
Pass 2...
done
Used memory blocks:
Code : Start = 0x0000, End = 0x0004, Length = 0x0005
Assembly complete with no errors.
Segment usage:
Code : 5 words (10 bytes)
Data : 0 bytes
EEPROM : 0 bytes
Yup, it's hex file. Check it with vavrdisasm
Nugrohos-MacBook-Air:ATTiny13A nugroho$ vavrdisasm coba.hex
0: c0 00 rjmp .+0 ; 0x2
2: e0 01 ldi R16, 0x01
4: bb 08 out $18, R16
6: bb 07 out $17, R16
8: cf ff rjmp .-2 ; 0x8
Nugrohos-MacBook-Air:ATTiny13A nugroho$
And all is well, :)
(will upload the hex using avrdude next, maybe trying AVRFuse)
AVRStudio atau Atmel studio tidak tersedia untuk OS X Yosemite, sehingga kita harus menggunakan avr-gcc atau avr-as untuk melakukannya.
Dan avr-as tidak kompatibel dengan perintah-perintah assembler dari ATMEL. Solusinya di OS X adalah dengan menginstall avra. Namun avra adalah program lama, update terbarunya pada tahun 2010 sehingga susah dicompile. (ada binary untuk os x tetapi tidak disarankan)
Dan kita dapat memprogram ATTiny di OS X. :)