Unable to compile AVR Linux toolchain (microchip version)

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to write and compile code for attiny1614 under linux...

 

I had an older toolchain (avr-gcc 4.8.1), which I basically unzipped and it worked;

I was able to add "PACKS" to that toolchain to add part compatibility... It worked with PACK Atmel.ATtiny_DFP.1.2.112, but does not work with PACK Atmel.ATtiny_DFP.1.3.172 (which has attiny1614),

which I am assuming must be for the newer avr_linux_3.5.4_toolchain...

 

I downloaded...

TOOLCHAIN ... http://distribute.atmel.no/tools...

PACKS ... http://packs.download.atmel.com/

 

reguarding... avr8-gnu-toolchain-osx-3.5.4.468-darwin.any.x86_64.tar.gz ... nothing in that will execute, assuming for OSX...

 

So I followed the build instructions in... SOURCES.README (which omits I needed texlive and doxygen, but figured that out and installed them) but it still fails (output below)....

Anyone have any idea how I can get this to compile?

 

 

mv -f .deps/eewr_word.Tpo .deps/eewr_word.Po
rm -f libatmega16hvbrevb.a
avr-ar cru libatmega16hvbrevb.a eerd_block.o eerd_byte.o eerd_dword.o eerd_word.o eeupd_block.o eeupd_byte.o eeupd_dword.o eeupd_word.o eewr_block.o eewr_byte.o eewr_dword.o eewr_word.o 
avr-ranlib libatmega16hvbrevb.a
avr-gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../common -I../../../../include -I../../../../include  -I../../../../common -I../../../../include -I../../../../include -x assembler-with-cpp  -mmcu=atmega16hvbrevb  -DIOSYMFILE=\"iosym/atmega16hvbrevb.S\"   -MT gcrt1.o -MD -MP -MF .deps/gcrt1.Tpo -c -o gcrt1.o ../../../../crt1/gcrt1.S
In file included from ../../../../common/macros.inc:39:0,
                 from ../../../../crt1/gcrt1.S:40:
../../../../include/avr/io.h:623:6: warning: #warning "device type not defined" [-Wcpp]
 #    warning "device type not defined"
      ^
../../../../crt1/gcrt1.S: Assembler messages:
../../../../crt1/gcrt1.S:63: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:64: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:65: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:66: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:67: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:68: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:69: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:70: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:71: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:72: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:73: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:74: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:75: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:76: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:77: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:78: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:79: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:80: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:81: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:82: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:83: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:84: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:85: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:86: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:87: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:88: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:89: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:90: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:91: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:92: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:93: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:94: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:95: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:96: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:97: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:98: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:99: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:100: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:101: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:102: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:103: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:104: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:105: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:106: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:107: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:108: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:109: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:110: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:111: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:112: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:113: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:114: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:115: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:116: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:117: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:118: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:119: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:120: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:121: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:122: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:123: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:124: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:125: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:126: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:127: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:128: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:129: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:130: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:131: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:132: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:133: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:134: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:135: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:136: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:137: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:138: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:139: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:140: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:141: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:142: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:143: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:144: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:145: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:146: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:147: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:148: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:149: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:150: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:151: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:152: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:153: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:154: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:155: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:156: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:157: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:158: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:159: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:160: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:161: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:162: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:163: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:164: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:165: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:166: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:167: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:168: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:169: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:170: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:171: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:172: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:173: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:174: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:175: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:176: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:177: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:178: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:179: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:180: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:181: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:182: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:183: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:184: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:185: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:186: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:187: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:188: Error: non-constant expression in ".if" statement
../../../../crt1/gcrt1.S:189: Error: non-constant expression in ".if" statement
Makefile:592: recipe for target 'gcrt1.o' failed
make[5]: *** [gcrt1.o] Error 1
make[5]: Leaving directory '/home/user/dev/lib_avr/avr_linux_3.5.4_toolchain/src/avr-libc/avr/lib/avr5/atmega16hvbrevb'
Makefile:2025: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/user/dev/lib_avr/avr_linux_3.5.4_toolchain/src/avr-libc/avr/lib/avr5'
Makefile:363: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/user/dev/lib_avr/avr_linux_3.5.4_toolchain/src/avr-libc/avr/lib'
Makefile:363: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/user/dev/lib_avr/avr_linux_3.5.4_toolchain/src/avr-libc/avr'
Makefile:425: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/dev/lib_avr/avr_linux_3.5.4_toolchain/src/avr-libc'
Makefile:363: recipe for target 'all' failed
make: *** [all] Error 2
user@AVR-PC:~/dev/lib_avr/avr_linux_3.5.4_toolchain$

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found a pre-compiled version, I just had to scroll down more....

https://www.microchip.com/mplab/...

 

And scrolled down to...

AVR 8-bit Toolchain 3.6.2 - Linux 64-bit

 

Now I don't have to worry about compiling it from source ;-)

The way my screen is on my computer, it looks like I was reading the whole page, I went back and noticed I had a scroll bar to the right, I scrolled down and voila, pre-compiled versions. blush

Last Edited: Fri. Nov 2, 2018 - 04:14 AM