Noise split from AVR Toolchain bug list thread

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

hi i'm trying to compile a simple program on linux using the command line.  i've tried both shell script compiles and makefiles, and i hit the same problem with both.

 

when i installed the avr8 toolchain the doc didn't address the include file situation.  i think i've got that sorted now; my compile gets past "missing includes", but then fails with:

 

avr-g++: error: cannot access device-specs for ‘atmega8’ expected at ‘device-specs/specs-atmega8'

 

it's looking for atmega8 as that's my -mmcu=atmega8.  i've got the files out there and they are accessible.

 

i've found the various device-specs files in the toolchain distro under the "pack" directory.  where do they fit in to the various (compiler, source, etc.) directory structures?  it's a waste of time to search on google, because (even with quotes around it) the word "specs" is considered as "configuration", so in the search results i get a ton of advice on how to configure the avr8 toolchain components, but none regarding "where the device-specs files fit in".

 

can anyone help?  i would really appreciate it, and tia!

Last Edited: Fri. Aug 12, 2016 - 04:44 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you saying you tried to BUILD your own toolchain for Linux? Why would you do that? Atmel have a pre-built .tar.gz that simply works.

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

hi,

 

no, i tried to do that a while ago, and you guys were nice enough to point me at the Atmel tar.gz.  and that's what i'm using.

 

it may be that i simply do not understand the linux directory structure.  i've tried to understand it and i've tried moving a copy of the "device-specs" directory to several places in the directory structure but the compiler does not seem to find it.  perhaps i'm being dense - i'm not young anymore!

 

i'm going to do a fresh download and install of the toolchain on windows; maybe doing that will shed some light on it.  Thanks again to all here for being so supportive!

 

TOU

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

hey not only do i have it working on win7 i've got programmer's notepad setup just the way i want it.

 

while i haven't invented any new technology i have proven that weeks worth of work can be replaced by a half-hour read of a .pdf.  who knew?  i'm expecting the Nobel committee to call any minute now...

 

thanks again for all of your help whatta great group!

 

TOU

 

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

Programmer's Notepad?

 

Are you posting messages here from a wormhole in the space-time continuum and you are really sitting in 2006 not 2016??

 

Things have moved on in 10+ years. If you want an IDE for avr-gcc that is not just Atmel Studio 7 (the obvious choice) then I'd suggest Eclipse, Code::Blocks, Netbeans, KDevelop4 and several others are just a "tad" in advance of Programmer's Notedpad - which was not really much more than a Notepad like text editor with the ability to spawn "make". These other tools have source browsing, advanced editors often based on the most excellent Scintilla or similar. Most can be configured to invoke avr-gdb/avarice/simulavr for debugging/simulation (though again, why one wouldn't simply use Studio 7 for these, as it's more advanced, is a mystery)

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

> Programmer's Notepad?

 

yes!

 

> Are you posting messages here from a wormhole in the space-time continuum and you are really sitting in 2006 not 2016??

 

if i was 10 years younger i wouldn't be sitting!

 

and yes, i am painfully aware that it really *is* 2016, thank you.

 

> Things have moved on in 10+ years. If you want an IDE ...

 

i *loathe* IDE's.  you have to tear them apart to get them to work the way you want, they do stuff you don't want and don't do stuff you do want, and i'm really not into "customizing" something i don't want to use in the first place.  sorry if this offends you...

 

i've tried code:blocks, platformio, still have AS7 installed, *no thank you*.  command line.  text editor.  no frills.  F5 builds.  F7 uploads.  Robert truly *is* your father's brother.  how wonderful!

 

when it's all good i'll leave a writeup someplace for snicks and grins.

thanks again!

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

Remove the -B it makes no sence and garbages up your system paths.

 

And this post is not about bug lists, it's just about user error.
 

avrfreaks does not support Opera. Profile inactive.

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

But Programmer's Notepad is an IDE too? Real programmers just use:

C:> copy con source.c

and don't need no fancy editors and stuff!

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

I am not getting the point that you are trying to make; this issue is obviously not about IDE (except IDE sets -B).
 

avrfreaks does not support Opera. Profile inactive.

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

> Real programmers just use:

 

yes, and they put microwave popcorn on top of the mainframe and time the pops to see how CPU-bound their jobs are.  i've read all the real programmer stuff.  that ain't me.

 

and i'm not casting negative aspersions on IDE's; they're fine for people who know how to get them to do what they want and thus enjoy using them.  waaaaay too much complexity there for me.  i'm a minimalist, so "less is more".

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

i'm trying to compile a simple program on linux using the command line.  i've tried both shell script compiles and makefiles, and i hit the same problem with both.

when i installed the avr8 toolchain the doc didn't address the include file situation.  i think i've got that sorted now; my compile gets past "missing includes", but then fails with:

avr-g++: error: cannot access device-specs for ‘atmega8’ expected at ‘device-specs/specs-atmega8'

Just to see if the linux toolchain is working, I downloaded it to an Ubuntu linux system as a fresh install.   It worked fine...

My procedure:

 # Download with firefox, gets put in Downloads directory
    cd Downloads
# Unzip and untar
    gunzip avr8-gnu-toolchain-3.5.3.1700-linux.any.x86_64.tar.gz 
    tar -xf avr8-gnu-toolchain-3.5.3.1700-linux.any.x86_64.tar 
# move the whole directory tree to a nice "system" location
    sudo mv avr8-gnu-toolchain-linux_x86_64/ /usr/local/bin/avr8-3.5.3.1700
# Run it from there...
    /usr/local/bin/avr8-3.5.3.1700/bin/avr-gcc -mmcu=atmega8 test.c

 

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

> Just to see if the linux toolchain is working, I downloaded it to an Ubuntu linux system as a fresh install.   It worked fine...

> My procedure:

 

i followed your steps and i got a clean compile from a demo.c program on the first try.  THANK YOU.

 

i had that file but was under the belief that installation required a shell script.  who knew you could just expand and copy the thing into /usr/local/bin?  (please don't show me an easy-to-find .pdf that states that; my ego has taken enough of a beating on this project...)  i'm not even sure why i was working on getting that shell script to work!

 

it's quite easy to get off-track when you're a n00b and you're overwhelmed by aspects of what seems to be a radically different technology than one has been working at for decades.  programmers and bootloaders and merged include directory structures from Atmel *and* Arduino?  Oh My.

 

it's as much progress in 15min as i've made in weeks, so please accept my thanks again for getting me back on track!

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

ok, i yield.  i've abandoned my toolchain efforts - on both linux and windows (don't ask; if i ever have time...)  instead, i repaired my AS7 install and am now actually making progress.  it's not the way i prefer to work, but one must adapt.  why do i feel like i've just been assimilated?

 

@SprinterSB, you were right on that problem i was having.  i needed the -B to specify the directory that contains the device-specs files.  Thank you for mentioning that parm.

 

and thanks again everyone for your help.

 

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

But Programmer's Notepad is an IDE too? Real programmers just use:

C:> copy con source.c

and don't need no fancy editors and stuff!

Nope.

$ cat | cc -x c -

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

Last Edited: Tue. Aug 9, 2016 - 11:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

joeymorin wrote:
Nope.

$ cat | cc -x c -

Nyet.

Less is more:

$ cc -x c -

 

"Demons after money.
Whatever happened to the still beating heart of a virgin?
No one has any standards anymore." -- Giles

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

I still don't see why all this has to be discussed in a STICKY thread that's about LINKS to LISTS of known problems with the toolchain.

avrfreaks does not support Opera. Profile inactive.

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

Yes. Moderators please feel free to expunge my noise.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]