Menu

#6 AVR Plugin problem with OS X

open
5
2012-07-07
2009-10-02
Dan Bock
No

I am trying to install this on my MAC (intel chipset). And i am having a problem with the system not able to recognize the AVR Dragon that I have. I did find that paths it is not able to find the "ATmel part description files system". I have just reinstalled the Crosspack. Is that in there? Am I missing something also?

One last thing, when I turn on the program, I do get the following error:

Description Resource Path Location Type
Error launching external scanner info generator (avr-gcc -E -P -v -dD /Users/danielbock/Eclipse development/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) Test_1 Unknown C/C++ Problem

Any help would be great. Thanks.

Discussion

  • Thomas Holland

    Thomas Holland - 2009-10-03

    Hi Dan,

    the path to the "Atmel part description files" is currently unused by the plugin and therefore not required. (The Atmel Part Description files are part of the Atmel AVR Studio IDE [Only available for Windows] and AFAIK not available separately)

    So the problem with recognizing your Dragon must be somewhere else. Maybe you can provide the console output to see where it is failing.

    For your second problem: I haven't seen this error message so I don't know where it comes from and what is causing it.
    But a few things you could try: check that the file "/Users/danielbock/Eclipse
    development/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c" exists and is just a empty file (except for one newline).
    Second: execute the whole command ("avr-gcc -E -P -v -dD /Users/.../specs.c") from a shell to check if there is any problem with that.
    BTW the "Test_1" in the output. Is that the name of a / the Project?

    Thomas

     
  • Dan Bock

    Dan Bock - 2009-10-09

    Thanks for the help. However, I still have the same error as before:
    Description Resource Path Location Type
    Error launching external scanner info generator (avr-gcc -E -P -v -dD
    /Users/danielbock/Eclipse
    development/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) Test_1 U
    nknown C/C++ Problem

    The output from running the gcc is as follows:

    Using built-in specs.
    Target: avr
    Configured with: ../configure --target=avr --program-prefix=avr-
    --enable-languages=c --disable-libssp --disable-nls --with-dwarf2
    Thread model: single
    gcc version 4.2.0
    /usr/local/libexec/gcc/avr/4.2.0/cc1 -E -quiet -v -P
    /Users/danielbock/Eclipse
    development/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c -dD
    ignoring nonexistent directory
    "/usr/local/lib/gcc/avr/4.2.0/../../../../avr/sys-include"

    include "..." search starts here:

    include <...> search starts here:

    /usr/local/lib/gcc/avr/4.2.0/include
    /usr/local/lib/gcc/avr/4.2.0/../../../../avr/include
    End of search list.

    define STDC 1

    define STDC_HOSTED 1

    define GNUC 4

    define GNUC_MINOR 2

    define GNUC_PATCHLEVEL 0

    define SIZE_TYPE unsigned int

    define PTRDIFF_TYPE int

    define WCHAR_TYPE int

    define WINT_TYPE unsigned int

    define INTMAX_TYPE long long int

    define UINTMAX_TYPE long long unsigned int

    define __GXX_ABI_VERSION 1002

    define USING_SJLJ_EXCEPTIONS 1

    define SCHAR_MAX 127

    define SHRT_MAX 32767

    define INT_MAX 32767

    define LONG_MAX 2147483647L

    define LONG_LONG_MAX 9223372036854775807LL

    define WCHAR_MAX 32767

    define CHAR_BIT 8

    define INTMAX_MAX 9223372036854775807LL

    define FLT_EVAL_METHOD 0

    define DEC_EVAL_METHOD 2

    define FLT_RADIX 2

    define FLT_MANT_DIG 24

    define FLT_DIG 6

    define FLT_MIN_EXP (-125)

    define FLT_MIN_10_EXP (-37)

    define FLT_MAX_EXP 128

    define FLT_MAX_10_EXP 38

    define FLT_MAX 3.40282347e+38F

    define FLT_MIN 1.17549435e-38F

    define FLT_EPSILON 1.19209290e-7F

    define FLT_DENORM_MIN 1.40129846e-45F

    define FLT_HAS_DENORM 1

    define FLT_HAS_INFINITY 1

    define FLT_HAS_QUIET_NAN 1

    define DBL_MANT_DIG 24

    define DBL_DIG 6

    define DBL_MIN_EXP (-125)

    define DBL_MIN_10_EXP (-37)

    define DBL_MAX_EXP 128

    define DBL_MAX_10_EXP 38

    define DBL_MAX 3.40282347e+38

    define DBL_MIN 1.17549435e-38

    define DBL_EPSILON 1.19209290e-7

    define DBL_DENORM_MIN 1.40129846e-45

    define DBL_HAS_DENORM 1

    define DBL_HAS_INFINITY 1

    define DBL_HAS_QUIET_NAN 1

    define LDBL_MANT_DIG 24

    define LDBL_DIG 6

    define LDBL_MIN_EXP (-125)

    define LDBL_MIN_10_EXP (-37)

    define LDBL_MAX_EXP 128

    define LDBL_MAX_10_EXP 38

    define DECIMAL_DIG 9

    define LDBL_MAX 3.40282347e+38L

    define LDBL_MIN 1.17549435e-38L

    define LDBL_EPSILON 1.19209290e-7L

    define LDBL_DENORM_MIN 1.40129846e-45L

    define LDBL_HAS_DENORM 1

    define LDBL_HAS_INFINITY 1

    define LDBL_HAS_QUIET_NAN 1

    define DEC32_MANT_DIG 7

    define DEC32_MIN_EXP (-95)

    define DEC32_MAX_EXP 96

    define DEC32_MIN 1E-95DF

    define DEC32_MAX 9.999999E96DF

    define DEC32_EPSILON 1E-6DF

    define DEC32_DEN 0.000001E-95DF

    define DEC64_MANT_DIG 16

    define DEC64_MIN_EXP (-383)

    define DEC64_MAX_EXP 384

    define DEC64_MIN 1E-383DD

    define DEC64_MAX 9.999999999999999E384DD

    define DEC64_EPSILON 1E-15DD

    define DEC64_DEN 0.000000000000001E-383DD

    define DEC128_MANT_DIG 34

    define DEC128_MIN_EXP (-6143)

    define DEC128_MAX_EXP 6144

    define DEC128_MIN 1E-6143DL

    define DEC128_MAX 9.999999999999999999999999999999999E6144DL

    define DEC128_EPSILON 1E-33DL

    define DEC128_DEN 0.000000000000000000000000000000001E-6143DL

    define REGISTER_PREFIX

    define USER_LABEL_PREFIX

    define VERSION "4.2.0"

    define GNUC_GNU_INLINE 1

    define NO_INLINE 1

    define FINITE_MATH_ONLY 0

    define __AVR 1

    define AVR 1

    define AVR 1

    define AVR_ARCH 2

    Is it the directory error my problem that it says is nonexistent?

     
  • Mikko Saarisalo

    Mikko Saarisalo - 2010-02-20

    +1 on the second problem. I do have the same observation on my MAC installation.

     
  • Thomas Holland

    Thomas Holland - 2010-02-28

    Ok, this seems to be a common Mac problem.

    Could someone with the problem ("Error launching external scanner info generator") please open a simple terminal and enter 'avr-gcc'. I am curious if 'avr-gcc' is in the standard system path on a Mac (with the avr-gcc toolchain installed of course)

    If it is, then I am out of ideas and for further troubleshooting I would need some OSX user who would be willing to debug the plugin (it is not very difficult, although a little bit of Java expertise would be helpful)

    BTW, some googleing for the error message showed that this problem does not seem to be limited to the AVR Plugin but also occurs with other toolchains.

     
  • jonny

    jonny - 2010-03-11

    I also have the external scanner problem. If this seems to be a general problem would it still help if I debug the plugin? If yes what should I do?

     
  • Anonymous

    Anonymous - 2010-03-26

    I'm having the same problem with the warning messages.

    I've found one solution, which involves disabling the 'Automate discovery of paths and symbols' option in the default Discovery profile (Debug by default). Of course this only takes care of the warnings themselves, not the actual problem.

    Note that the building of source code succeeds, proper hex files are being generated and the uploading via avrdude works. (I'm using an ATXmega128A1 with the AVRIsp mkII programmer).

    The only thing that doesn't seem to work correctly is auto-completion for the AVR specific registers and such (I'm assuming this has to do with the warnings).
    Weird thing is that when I press 'Open Declaration' on, for example <avr interrupt.h="">, the correct header file is opened... So why isn't this indexed, maybe because the correct environment couldn't be determined?

    Running the avr-gcc command in a shell works, and gives the same output when run on a Windows machine with the same setup (same eclipse versions + WinAVR + AVR Studio).

    I'm using:
    MacOSX 10.6.2 Snow Leopard
    Eclipse Galileo - Build id: 20100218-1602 (latest)
    AVR Eclipse plugin - Version: 2.3.1.20081204PRD (latest)
    CrossPack-AVR-20100115

    P.S. The Atmel part description files can easily be copied from an AVR Studio installation, just put them somewhere on your drive (I put them in '/usr/local/CrossPack-AVR') and set a custom path to it within Eclipse... It should be approximately 52MB.

     
  • Nobody/Anonymous

    Okay, after some looking around I found the option 'Create Parser Log File'.
    When using this option on avr/io.h (this file includes the correct header files for a specific platform) I got the following:
    Scanner problems:
    #warning encountered with text: "device type not defined" in file: /usr/local/CrossPack-AVR-20100115/avr-4/include/avr/io.h:404

    When doing the same with the file I actually need (avr/iox128a1.h) I get:
    Scanner problems:
    #error encountered with text: "Include <avr io.h=""> instead of this file." in file: /usr/local/CrossPack-AVR-20100115/avr-4/include/avr/iox128a1.h:38

    The rest of the files are parsed correctly.

    My guess is that during indexation the device type is not set (correctly), which would explain why auto-completion doesn't work.
    Sadly, I don't know how to fix this.

    P.S. I'm the poster of the previous post, something went wrong with openid.

     
  • Anonymous

    Anonymous - 2010-12-31

    Hi

    I'm using:
    MacOSX 10.5.8

    Eclipse IDE for C/C++ Developers
    Version: Helios Service Release 1
    Build id: 20100917-0705

    AVR Plug In Version: 2.3.4.20100807PRD

    CrossPack-AVR-20100115
    (Containing versions:
    avarice: 2.9
    avr-libc-1.6.7cvs: 1.6.7
    avrdude-5.8svn912: 5.8svn912
    binutils: 2.19
    gcc-3: 3.4.6
    gcc-4: 4.3.3
    gdb: 6.8
    libusb: 0.1.12
    make: 3.81
    simulavr: 0.9)

    For me, I installed the avr-plug-in (and thanks for making it available!) and the only evidence I see of it is in the about box for Eclipse. Otherwise no sign in project properties (or elsewhere that I can see). I see a few others with this problem online elsewhere.

    When I launch a project I get the same error as Mr Bock, except with my path, some of which I replaced with [Path] below, viz

    Description Resource Path Location Type
    Error launching external scanner info generator (gcc -E -P -v -dD /Users/[Path]/Eclipse/MyMessing/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) junk-test-plugin Unknown C/C++ Problem

    In this case junk-test-plugin is the C project I created.

    When I paste the call into my terminal, I it fails for not finding gcc. Adding the prefix "avr-" gives the following result:

    Using built-in specs.
    Target: avr
    Configured with: ../configure --prefix=/usr/local/CrossPack-AVR-20100115 --disable-dependency-tracking --disable-nls --disable-werror --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2
    Thread model: single
    gcc version 4.3.3 (GCC)
    COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD'
    /usr/local/CrossPack-AVR-20100115/libexec/gcc/avr/4.3.3/cc1 -E -quiet -v -P /Users/[Path]/Eclipse/MyMessing/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c -dD
    ignoring nonexistent directory "/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/sys-include"

    include "..." search starts here:

    include <...> search starts here:

    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/include
    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/include-fixed
    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/include
    End of search list.

    define STDC 1

    define STDC_HOSTED 1

    define GNUC 4

    define GNUC_MINOR 3

    define GNUC_PATCHLEVEL 3

    define SIZE_TYPE unsigned int

    define PTRDIFF_TYPE int

    define WCHAR_TYPE int

    define WINT_TYPE unsigned int

    define INTMAX_TYPE long long int

    define UINTMAX_TYPE long long unsigned int

    define __GXX_ABI_VERSION 1002

    define USING_SJLJ_EXCEPTIONS 1

    define SCHAR_MAX 127

    define SHRT_MAX 32767

    define INT_MAX 32767

    define LONG_MAX 2147483647L

    define LONG_LONG_MAX 9223372036854775807LL

    define WCHAR_MAX 32767

    define CHAR_BIT 8

    define INTMAX_MAX 9223372036854775807LL

    define FLT_EVAL_METHOD 0

    define DEC_EVAL_METHOD 2

    define FLT_RADIX 2

    define FLT_MANT_DIG 24

    define FLT_DIG 6

    define FLT_MIN_EXP (-125)

    define FLT_MIN_10_EXP (-37)

    define FLT_MAX_EXP 128

    define FLT_MAX_10_EXP 38

    define FLT_MAX 3.40282347e+38F

    define FLT_MIN 1.17549435e-38F

    define FLT_EPSILON 1.19209290e-7F

    define FLT_DENORM_MIN 1.40129846e-45F

    define FLT_HAS_DENORM 1

    define FLT_HAS_INFINITY 1

    define FLT_HAS_QUIET_NAN 1

    define DBL_MANT_DIG 24

    define DBL_DIG 6

    define DBL_MIN_EXP (-125)

    define DBL_MIN_10_EXP (-37)

    define DBL_MAX_EXP 128

    define DBL_MAX_10_EXP 38

    define DBL_MAX 3.40282347e+38

    define DBL_MIN 1.17549435e-38

    define DBL_EPSILON 1.19209290e-7

    define DBL_DENORM_MIN 1.40129846e-45

    define DBL_HAS_DENORM 1

    define DBL_HAS_INFINITY 1

    define DBL_HAS_QUIET_NAN 1

    define LDBL_MANT_DIG 24

    define LDBL_DIG 6

    define LDBL_MIN_EXP (-125)

    define LDBL_MIN_10_EXP (-37)

    define LDBL_MAX_EXP 128

    define LDBL_MAX_10_EXP 38

    define DECIMAL_DIG 9

    define LDBL_MAX 3.40282347e+38L

    define LDBL_MIN 1.17549435e-38L

    define LDBL_EPSILON 1.19209290e-7L

    define LDBL_DENORM_MIN 1.40129846e-45L

    define LDBL_HAS_DENORM 1

    define LDBL_HAS_INFINITY 1

    define LDBL_HAS_QUIET_NAN 1

    define DEC32_MANT_DIG 7

    define DEC32_MIN_EXP (-95)

    define DEC32_MAX_EXP 96

    define DEC32_MIN 1E-95DF

    define DEC32_MAX 9.999999E96DF

    define DEC32_EPSILON 1E-6DF

    define DEC32_DEN 0.000001E-95DF

    define DEC64_MANT_DIG 16

    define DEC64_MIN_EXP (-383)

    define DEC64_MAX_EXP 384

    define DEC64_MIN 1E-383DD

    define DEC64_MAX 9.999999999999999E384DD

    define DEC64_EPSILON 1E-15DD

    define DEC64_DEN 0.000000000000001E-383DD

    define DEC128_MANT_DIG 34

    define DEC128_MIN_EXP (-6143)

    define DEC128_MAX_EXP 6144

    define DEC128_MIN 1E-6143DL

    define DEC128_MAX 9.999999999999999999999999999999999E6144DL

    define DEC128_EPSILON 1E-33DL

    define DEC128_DEN 0.000000000000000000000000000000001E-6143DL

    define REGISTER_PREFIX

    define USER_LABEL_PREFIX

    define VERSION "4.3.3"

    define GNUC_GNU_INLINE 1

    define NO_INLINE 1

    define FINITE_MATH_ONLY 0

    define SIZEOF_INT 2

    define SIZEOF_LONG 4

    define SIZEOF_LONG_LONG 8

    define SIZEOF_SHORT 2

    define SIZEOF_FLOAT 4

    define SIZEOF_DOUBLE 4

    define SIZEOF_LONG_DOUBLE 4

    define SIZEOF_SIZE_T 2

    define SIZEOF_WCHAR_T 2

    define SIZEOF_WINT_T 2

    define SIZEOF_PTRDIFF_T 2

    define SIZEOF_POINTER 2

    define __AVR 1

    define AVR 1

    define AVR 1

    define AVR_ARCH 2

    define AVR_2_BYTE_PC 1

    COMPILER_PATH=/usr/local/CrossPack-AVR-20100115/libexec/gcc/avr/4.3.3/:/usr/local/CrossPack-AVR-20100115/libexec/gcc/avr/4.3.3/:/usr/local/CrossPack-AVR-20100115/libexec/gcc/avr/:/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/:/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/:/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/bin/
    LIBRARY_PATH=/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/:/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/lib/
    COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD'

    which at least looks promising.

    The most interesting bit to my (not so very experienced) eye is the following

    ignoring nonexistent directory "/usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/sys-include"

    include "..." search starts here:

    include <...> search starts here:

    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/include
    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/include-fixed
    /usr/local/CrossPack-AVR-20100115/lib/gcc/avr/4.3.3/../../../../avr/include
    End of search list.
    <<<<

    it's true that the nonexistent directory does not exist.

    Anyway, I'm game to debug the Java if you suggest where I should be looking in it.

    Cheers
    John

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.