Sloeber / arduino-eclipse-plugin

A plugin to make programming the arduino in eclipse easy
https://eclipse.baeyens.it/
419 stars 131 forks source link

Windows path is limited to 259 chars. #347

Closed wimjongman closed 8 years ago

wimjongman commented 8 years ago

How to reproduce:

Result:

11:48:08 \ Incremental Build of configuration Release for project test ** "C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\tools\make\make" all Building file: ../.ino.cpp Starting C++ compile "C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall In file included from C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino/Arduino.h:28:0, from ../.ino.cpp:6: c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:26: fatal error: avr/sfr_defs.h: No such file or directory

include <avr/sfr_defs.h>

                      ^

compilation terminated. subdir.mk:24: recipe for target '.ino.cpp.o' failed make: *\ [.ino.cpp.o] Error 1

11:48:08 Build Finished (took 418ms)

jantje commented 8 years ago

It looks like the file avr/sfr_defs.h is corrupt? Can you check that?

wimjongman commented 8 years ago

I see that io.h is in the same directory as sfr_defs.h. Should then the include not be

include instead of <avr/sfr_defs.h>

The file itself is fine.

c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:26: fatal error: avr/sfr_defs.h: No such file or directory

include <avr/sfr_defs.h>

On Wed, Jan 13, 2016 at 2:39 PM, jantje notifications@github.com wrote:

It looks like the file avr/sfr_defs.h is corrupt? Can you check that?

— Reply to this email directly or view it on GitHub https://github.com/jantje/arduino-eclipse-plugin/issues/347#issuecomment-171292321 .

jantje commented 8 years ago

I see that io.h is in the same directory as sfr_defs.h. Should then the include not be #include instead of <avr/sfr_defs.h>

That is not nessesary as [path before]/avr/sfr_defs.h is in the include path.

I just opened my linux laptop and upgraded the plugin and tested this and it works fine here.

Also what strikes me is that when the compiler prints an error it prints the whole line and you dumped a line only containing "#include" and the error marker below the # (//forget about this as it is github related)

When I test here and change the name of sfr_defs.h so it can not be found I get following error

In file included from /home/jan/.plugin/tools/arduino/avr-gcc/4.8.1-arduino5/avr/include/avr/pgmspace.h:88:0, from /home/jan/.plugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/Arduino.h:28, from ../.ino.cpp:6: /home/jan/.plugin/tools/arduino/avr-gcc/4.8.1-arduino5/avr/include/avr/io.h:99:70: fatal error: avr/sfr_defsg.h: No such file or directory

include <avr/sfr_defsg.h> ///some garbage to see wether this appears

                                                                  ^

compilation terminated. make: *\ [.ino.cpp.o] Fout 1

As you can see even my comments are dumped.

So I am really clueless to what is going on on your system.

Can you run this command from the command prompt?

"C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall

wimjongman commented 8 years ago

I moved the plugin from the build location to a fresh new directory. I have the same problems.

running:

"C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall

on the command line gives me:

avr-g++: error: ../.ino.cpp: No such file or directory avr-g++: warning: '-x c++' after last input file has no effect avr-g++: fatal error: no input files compilation terminated.

Another project shows this in the log:

18:10:53 **\ Incremental Build of configuration Release for project wewe


"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\tools\make\make" all Building file: C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/CDC.cpp Starting C++ compile "C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF"arduino/CDC.cpp.d" -MT"arduino/CDC.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/CDC.cpp" -o "arduino/CDC.cpp.o" -Wall In file included from C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/CDC.cpp:19:0: C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/USBAPI.h:24:26: fatal error: avr/pgmspace.h: No such file or directory

include <avr/pgmspace.h>

                      ^

compilation terminated. make: *\ [arduino/CDC.cpp.o] Error 1 arduino/core/subdir.mk:98: recipe for target 'arduino/CDC.cpp.o' failed

18:10:54 Build Finished (took 424ms)

[image: Inline image 1]

On Wed, Jan 13, 2016 at 5:38 PM, jantje notifications@github.com wrote:

I see that io.h is in the same directory as sfr_defs.h. Should then the include not be #include instead of

That is not nessesary as [path before]/avr/sfr_defs.h is in the include path.

I just opened my linux laptop and upgraded the plugin and tested this and it works fine here.

Also what strikes me is that when the compiler prints an error it prints the whole line and you dumped a line only containing "#include" and the error marker below the # (//forget about this as it is github related)

When I test here and change the name of sfr_defs.h so it can not be found I get following error

In file included from /home/jan/.plugin/tools/arduino/avr-gcc/4.8.1-arduino5/avr/include/avr/pgmspace.h:88:0, from /home/jan/.plugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/Arduino.h:28, from ../.ino.cpp:6: /home/jan/.plugin/tools/arduino/avr-gcc/4.8.1-arduino5/avr/include/avr/io.h:99:70: fatal error: avr/sfr_defsg.h: No such file or directory

include ///some garbage to see wether this appears

^ compilation terminated. make: *\ [.ino.cpp.o] Fout 1

As you can see even my comments are dumped.

So I am really clueless to what is going on on your system.

Can you run this command from the command prompt?

"C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall

— Reply to this email directly or view it on GitHub https://github.com/jantje/arduino-eclipse-plugin/issues/347#issuecomment-171356130 .

jantje commented 8 years ago

my bad for the command failing For the command to succeed it has to be run in the release folder of the project. You can also mod the "../.ino.cpp" part to the full name

jantje commented 8 years ago

@wimjongman Do you have a update on this? Best regards Jantje

wimjongman commented 8 years ago

Yes, here it is:

` C:\Users\jongw\workspaces\arduinotest2\test\Release>"C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\cores\arduino" -I"C:\Users\jongw\Programs\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.9\variants\standard" -MMD -MP -MF"arduino/CDC.cpp.d" -MT"arduino/CDC.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/CDC.cpp" -o "arduino/CDC.cpp.o" -Wall In file included from C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/CDC.cpp:19:0: C:/Users/jongw/Programs/eclipseArduino/arduinoPlugin/packages/arduino/hardware/avr/1.6.9/cores/arduino/USBAPI.h:24:26: fatal error: avr/pgmspace.h: No such file or directory

include <avr/pgmspace.h>

                      ^

compilation terminated. ` The ^ points to after the h> in fixed width font

C:\Users\jongw\workspaces\arduinotest2\test\Release>

wimjongman commented 8 years ago

Or this one:

` c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:26: fatal error: avr/sfr_defs.h: No such file or directory

include <avr/sfr_defs.h>

                      ^

`

compilation terminated.

wimjongman commented 8 years ago

Hey I wonder why it points to:

c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64

That is not where my workspace is and also not where my product is. This is the place where I compile and test the product. However I am not working there at all at the moment.

jantje commented 8 years ago

I really think there is something special on your system. It would be great if we can find what is special because other people will have the same special thing. Can you do this? project properties->C/C++ general->preprocessor include ...->Providers->Arduino compiler settings and in the bottom select allocate a console in the console view. Goto the arduino board selection page and select apply and ok there should be 2 extra consoles now. 1 for c++ and one for c can you send the content from the c++ console?

jantje commented 8 years ago

Hey I wonder why it points to: c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64 That is not where my workspace is and also not where my product is. This is the place where I compile and test the product. However I am not working there at all at the moment.

In all console output you posted here that is where you are working. Note that the default location is in the installation folder but this can be overruled. You can specify the location on the command line as follows -manager_path:XXXXX where XXXXX is the full path to the different location.

I see 3 options: 1) you start a different eclipse than you think 2) You use -manager_path without knowing 3) something else

Currently I see no way to link any of these 3 options to the compile error.

wimjongman commented 8 years ago

Yes, To make it more real I installed the resulting zip in another location instead of running win32x64.cmd from the root. So that is why the logs are different.

2016-01-15_0944

09:42:25 \ Running scanner discovery: Arduino Compiler Settings ** "C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D__IN_ECLIPSE__=1 -E -P -v -dD C:/Users/jongw/workspaces/arduinotest2/.metadata/.plugins/org.eclipse.cdt.managedbuilder.core/spec.C Using built-in specs. COLLECT_GCC=C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin\avr-g++ Target: avr Configured with: ../gcc-4.8.1/configure --enable-fixed-point --enable-languages=c,c++ --prefix=/c/jenkins/workspace/toolchain-avr-windows/objdir --enable-long-long --disable-nls --disable-checking --disable-libssp --disable-libada --disable-shared --enable-lto --with-avrlibc=yes --with-dwarf2 --disable-doc --target=avr Thread model: single gcc version 4.8.1 (GCC) COLLECT_GCC_OPTIONS='-c' '-g' '-Os' '-w' '-std=gnu++11' '-fno-exceptions' '-ffunction-sections' '-fdata-sections' '-fno-threadsafe-statics' '-MMD' '-mmcu=atmega328p' '-D' 'F_CPU=16000000L' '-D' 'ARDUINO=10606' '-D' 'ARDUINO_AVR_UNO' '-D' 'ARDUINO_ARCH_AVR' '-D' 'IN_ECLIPSE=1' '-E' '-P' '-v' '-dD' c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../libexec/gcc/avr/4.8.1/cc1plus.exe -E -quiet -v -P -imultilib avr5 -iprefix c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/ -MMD spec.d -D F_CPU=16000000L -D ARDUINO=10606 -D ARDUINO_AVR_UNO -D ARDUINO_ARCH_AVR -D IN_ECLIPSE=1 C:/Users/jongw/workspaces/arduinotest2/.metadata/.plugins/org.eclipse.cdt.managedbuilder.core/spec.C -mmcu=atmega328p -std=gnu++11 -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -g -fworking-directory -Os -fno-rtti -fno-enforce-eh-specs -fno-exceptions -dD

define STDC 1

define **cplusplus 201103L

define __STDC_HOSTED** 1

define GNUC 4

define GNUC_MINOR 8

define GNUC_PATCHLEVEL 1

define VERSION "4.8.1"

define **ATOMIC_RELAXED 0

define __ATOMIC_SEQ_CST 5

define __ATOMIC_ACQUIRE 2

define __ATOMIC_RELEASE 3

define __ATOMIC_ACQ_REL 4

define __ATOMIC_CONSUME 1

define __OPTIMIZE_SIZE** 1

define OPTIMIZE 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 CHAR_BIT 8

define BIGGEST_ALIGNMENT 1

define ORDER_LITTLE_ENDIAN 1234

define ORDER_BIG_ENDIAN 4321

define ORDER_PDP_ENDIAN 3412

define BYTE_ORDER ORDER_LITTLE_ENDIAN

define FLOAT_WORD_ORDER ORDER_LITTLE_ENDIAN

define SIZEOF_POINTER 2

define GNUG 4

define SIZE_TYPE unsigned int

define PTRDIFF_TYPE int

define WCHAR_TYPE int

define WINT_TYPE int

define INTMAX_TYPE long long int

define UINTMAX_TYPE long long unsigned int

define CHAR16_TYPE unsigned int

define CHAR32_TYPE long unsigned int

define SIG_ATOMIC_TYPE char

define INT8_TYPE signed char

define INT16_TYPE int

define INT32_TYPE long int

define INT64_TYPE long long int

define UINT8_TYPE unsigned char

define UINT16_TYPE unsigned int

define UINT32_TYPE long unsigned int

define UINT64_TYPE long long unsigned int

define INT_LEAST8_TYPE signed char

define INT_LEAST16_TYPE int

define INT_LEAST32_TYPE long int

define INT_LEAST64_TYPE long long int

define UINT_LEAST8_TYPE unsigned char

define UINT_LEAST16_TYPE unsigned int

define UINT_LEAST32_TYPE long unsigned int

define UINT_LEAST64_TYPE long long unsigned int

define INT_FAST8_TYPE signed char

define INT_FAST16_TYPE int

define INT_FAST32_TYPE long int

define INT_FAST64_TYPE long long int

define UINT_FAST8_TYPE unsigned char

define UINT_FAST16_TYPE unsigned int

define UINT_FAST32_TYPE long unsigned int

define UINT_FAST64_TYPE long long unsigned int

define INTPTR_TYPE int

define UINTPTR_TYPE unsigned int

define GXX_WEAK 1

define **DEPRECATED 1

define __GXX_EXPERIMENTAL_CXX0X** 1

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 WCHAR_MIN (-WCHAR_MAX - 1)

define WINT_MAX 32767

define WINT_MIN (-WINT_MAX - 1)

define PTRDIFF_MAX 32767

define SIZE_MAX 65535U

define INTMAX_MAX 9223372036854775807LL

define **INTMAX_C(c) c ## LL

define __UINTMAX_MAX** 18446744073709551615ULL

define **UINTMAX_C(c) c ## ULL

define __SIG_ATOMIC_MAX** 127

define SIG_ATOMIC_MIN (-SIG_ATOMIC_MAX - 1)

define INT8_MAX 127

define INT16_MAX 32767

define INT32_MAX 2147483647L

define INT64_MAX 9223372036854775807LL

define UINT8_MAX 255

define UINT16_MAX 65535U

define UINT32_MAX 4294967295UL

define UINT64_MAX 18446744073709551615ULL

define INT_LEAST8_MAX 127

define **INT8_C(c) c

define __INT_LEAST16_MAX** 32767

define **INT16_C(c) c

define __INT_LEAST32_MAX** 2147483647L

define **INT32_C(c) c ## L

define __INT_LEAST64_MAX** 9223372036854775807LL

define **INT64_C(c) c ## LL

define __UINT_LEAST8_MAX** 255

define **UINT8_C(c) c

define __UINT_LEAST16_MAX** 65535U

define **UINT16_C(c) c ## U

define __UINT_LEAST32_MAX** 4294967295UL

define **UINT32_C(c) c ## UL

define __UINT_LEAST64_MAX** 18446744073709551615ULL

define **UINT64_C(c) c ## ULL

define __INT_FAST8_MAX** 127

define INT_FAST16_MAX 32767

define INT_FAST32_MAX 2147483647L

define INT_FAST64_MAX 9223372036854775807LL

define UINT_FAST8_MAX 255

define UINT_FAST16_MAX 65535U

define UINT_FAST32_MAX 4294967295UL

define UINT_FAST64_MAX 18446744073709551615ULL

define INTPTR_MAX 32767

define UINTPTR_MAX 65535U

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_DECIMAL_DIG 9

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_DECIMAL_DIG 9

define DBL_MAX double(3.40282347e+38L)

define DBL_MIN double(1.17549435e-38L)

define DBL_EPSILON double(1.19209290e-7L)

define DBL_DENORM_MIN double(1.40129846e-45L)

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 (-94)

define DEC32_MAX_EXP 97

define DEC32_MIN 1E-95DF

define DEC32_MAX 9.999999E96DF

define DEC32_EPSILON 1E-6DF

define DEC32_SUBNORMAL_MIN 0.000001E-95DF

define DEC64_MANT_DIG 16

define DEC64_MIN_EXP (-382)

define DEC64_MAX_EXP 385

define DEC64_MIN 1E-383DD

define DEC64_MAX 9.999999999999999E384DD

define DEC64_EPSILON 1E-15DD

define DEC64_SUBNORMAL_MIN 0.000000000000001E-383DD

define DEC128_MANT_DIG 34

define DEC128_MIN_EXP (-6142)

define DEC128_MAX_EXP 6145

define DEC128_MIN 1E-6143DL

define DEC128_MAX 9.999999999999999999999999999999999E6144DL

define DEC128_EPSILON 1E-33DL

define DEC128_SUBNORMAL_MIN 0.000000000000000000000000000000001E-6143DL

define SFRACT_FBIT 7

define SFRACT_IBIT 0

define SFRACT_MIN (-0.5HR-0.5HR)

define SFRACT_MAX 0X7FP-7HR

define SFRACT_EPSILON 0x1P-7HR

define USFRACT_FBIT 8

define USFRACT_IBIT 0

define USFRACT_MIN 0.0UHR

define USFRACT_MAX 0XFFP-8UHR

define USFRACT_EPSILON 0x1P-8UHR

define FRACT_FBIT 15

define FRACT_IBIT 0

define FRACT_MIN (-0.5R-0.5R)

define FRACT_MAX 0X7FFFP-15R

define FRACT_EPSILON 0x1P-15R

define UFRACT_FBIT 16

define UFRACT_IBIT 0

define UFRACT_MIN 0.0UR

define UFRACT_MAX 0XFFFFP-16UR

define UFRACT_EPSILON 0x1P-16UR

define LFRACT_FBIT 31

define LFRACT_IBIT 0

define LFRACT_MIN (-0.5LR-0.5LR)

define LFRACT_MAX 0X7FFFFFFFP-31LR

define LFRACT_EPSILON 0x1P-31LR

define ULFRACT_FBIT 32

define ULFRACT_IBIT 0

define ULFRACT_MIN 0.0ULR

define ULFRACT_MAX 0XFFFFFFFFP-32ULR

define ULFRACT_EPSILON 0x1P-32ULR

define LLFRACT_FBIT 63

define LLFRACT_IBIT 0

define LLFRACT_MIN (-0.5LLR-0.5LLR)

define LLFRACT_MAX 0X7FFFFFFFFFFFFFFFP-63LLR

define LLFRACT_EPSILON 0x1P-63LLR

define ULLFRACT_FBIT 64

define ULLFRACT_IBIT 0

define ULLFRACT_MIN 0.0ULLR

define ULLFRACT_MAX 0XFFFFFFFFFFFFFFFFP-64ULLR

define ULLFRACT_EPSILON 0x1P-64ULLR

define SACCUM_FBIT 7

define SACCUM_IBIT 8

define SACCUM_MIN (-0X1P7HK-0X1P7HK)

define SACCUM_MAX 0X7FFFP-7HK

define SACCUM_EPSILON 0x1P-7HK

define USACCUM_FBIT 8

define USACCUM_IBIT 8

define USACCUM_MIN 0.0UHK

define USACCUM_MAX 0XFFFFP-8UHK

define USACCUM_EPSILON 0x1P-8UHK

define ACCUM_FBIT 15

define ACCUM_IBIT 16

define ACCUM_MIN (-0X1P15K-0X1P15K)

define ACCUM_MAX 0X7FFFFFFFP-15K

define ACCUM_EPSILON 0x1P-15K

define UACCUM_FBIT 16

define UACCUM_IBIT 16

define UACCUM_MIN 0.0UK

define UACCUM_MAX 0XFFFFFFFFP-16UK

define UACCUM_EPSILON 0x1P-16UK

define LACCUM_FBIT 31

define LACCUM_IBIT 32

define LACCUM_MIN (-0X1P31LK-0X1P31LK)

define LACCUM_MAX 0X7FFFFFFFFFFFFFFFP-31LK

define LACCUM_EPSILON 0x1P-31LK

define ULACCUM_FBIT 32

define ULACCUM_IBIT 32

define ULACCUM_MIN 0.0ULK

define ULACCUM_MAX 0XFFFFFFFFFFFFFFFFP-32ULK

define ULACCUM_EPSILON 0x1P-32ULK

define LLACCUM_FBIT 47

define LLACCUM_IBIT 16

define LLACCUM_MIN (-0X1P15LLK-0X1P15LLK)

define LLACCUM_MAX 0X7FFFFFFFFFFFFFFFP-47LLK

define LLACCUM_EPSILON 0x1P-47LLK

define ULLACCUM_FBIT 48

define ULLACCUM_IBIT 16

define ULLACCUM_MIN 0.0ULLK

define ULLACCUM_MAX 0XFFFFFFFFFFFFFFFFP-48ULLK

define ULLACCUM_EPSILON 0x1P-48ULLK

define QQ_FBIT 7

define QQ_IBIT 0

define HQ_FBIT 15

define HQ_IBIT 0

define SQ_FBIT 31

define SQ_IBIT 0

define DQ_FBIT 63

define DQ_IBIT 0

define TQ_FBIT 127

define TQ_IBIT 0

define UQQ_FBIT 8

define UQQ_IBIT 0

define UHQ_FBIT 16

define UHQ_IBIT 0

define USQ_FBIT 32

define USQ_IBIT 0

define UDQ_FBIT 64

define UDQ_IBIT 0

define UTQ_FBIT 128

define UTQ_IBIT 0

define HA_FBIT 7

define HA_IBIT 8

define SA_FBIT 15

define SA_IBIT 16

define DA_FBIT 31

define DA_IBIT 32

define TA_FBIT 47

define TA_IBIT 16

define UHA_FBIT 8

define UHA_IBIT 8

define USA_FBIT 16

define USA_IBIT 16

define UDA_FBIT 32

define UDA_IBIT 32

define UTA_FBIT 48

define UTA_IBIT 16

define REGISTER_PREFIX

define USER_LABEL_PREFIX

define GNUC_STDC_INLINE 1

define **GCC_ATOMIC_BOOL_LOCK_FREE 1

define __GCC_ATOMIC_CHAR_LOCK_FREE 1

define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 1

define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 1

define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 1

define __GCC_ATOMIC_SHORT_LOCK_FREE 1

define __GCC_ATOMIC_INT_LOCK_FREE 1

define __GCC_ATOMIC_LONG_LOCK_FREE 1

define __GCC_ATOMIC_LLONG_LOCK_FREE 1

define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1

define __GCC_ATOMIC_POINTER_LOCK_FREE 1

define __GCC_HAVE_DWARF2_CFI_ASM 1

define __PRAGMA_REDEFINE_EXTNAME 1

define __SIZEOF_WCHAR_T** 2

define SIZEOF_WINT_T 2

define SIZEOF_PTRDIFF_T 2

define **AVR 1

define __AVR** 1

define AVR 1

define AVR_ARCH 5

define AVR_ATmega328P 1

define AVR_DEVICE_NAME atmega328p

define AVR_HAVE_MOVW 1

define AVR_HAVE_LPMX 1

define AVR_ENHANCED 1

define AVR_HAVE_MUL 1

define AVR_MEGA 1

define AVR_HAVE_JMP_CALL 1

define AVR_2_BYTE_PC 1

define AVR_HAVE_16BIT_SP 1

define AVR_HAVE_SPH 1

define AVR_SFR_OFFSET 0x20

define WITH_AVRLIBC 1

define **BUILTIN_AVR_NOP 1

define __BUILTIN_AVR_SEI 1

define __BUILTIN_AVR_CLI 1

define __BUILTIN_AVR_WDR 1

define __BUILTIN_AVR_SLEEP 1

define __BUILTIN_AVR_SWAP 1

define __BUILTIN_AVR_FMUL 1

define __BUILTIN_AVR_FMULS 1

define __BUILTIN_AVR_FMULSU 1

define __BUILTIN_AVR_DELAY_CYCLES 1

define __BUILTIN_AVR_INSERT_BITS 1

define __BUILTIN_AVR_FLASH_SEGMENT 1

define __BUILTIN_AVR_ABSHR 1

define __BUILTIN_AVR_ABSR 1

define __BUILTIN_AVR_ABSLR 1

define __BUILTIN_AVR_ABSLLR 1

define __BUILTIN_AVR_ABSHK 1

define __BUILTIN_AVR_ABSK 1

define __BUILTIN_AVR_ABSLK 1

define __BUILTIN_AVR_ABSLLK 1

define __BUILTIN_AVR_ROUNDHR 1

define __BUILTIN_AVR_ROUNDR 1

define __BUILTIN_AVR_ROUNDLR 1

define __BUILTIN_AVR_ROUNDLLR 1

define __BUILTIN_AVR_ROUNDUHR 1

define __BUILTIN_AVR_ROUNDUR 1

define __BUILTIN_AVR_ROUNDULR 1

define __BUILTIN_AVR_ROUNDULLR 1

define __BUILTIN_AVR_ROUNDHK 1

define __BUILTIN_AVR_ROUNDK 1

define __BUILTIN_AVR_ROUNDLK 1

define __BUILTIN_AVR_ROUNDLLK 1

define __BUILTIN_AVR_ROUNDUHK 1

define __BUILTIN_AVR_ROUNDUK 1

define __BUILTIN_AVR_ROUNDULK 1

define __BUILTIN_AVR_ROUNDULLK 1

define __BUILTIN_AVR_COUNTLSHR 1

define __BUILTIN_AVR_COUNTLSR 1

define __BUILTIN_AVR_COUNTLSLR 1

define __BUILTIN_AVR_COUNTLSLLR 1

ignoring nonexistent directory "c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1"

define __BUILTIN_AVR_COUNTLSUHR 1

ignoring nonexistent directory "c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1/avr/avr5"

define __BUILTIN_AVR_COUNTLSUR 1

ignoring nonexistent directory "c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1/backward"

define __BUILTIN_AVR_COUNTLSULR 1

ignoring nonexistent directory "c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/sys-include"

define __BUILTIN_AVR_COUNTLSULLR 1

ignoring nonexistent directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1"

define __BUILTIN_AVR_COUNTLSHK 1

ignoring nonexistent directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1/avr/avr5" ignoring nonexistent directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/include/c++/4.8.1/backward" ignoring duplicate directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/include"

define __BUILTIN_AVR_COUNTLSK 1

define __BUILTIN_AVR_COUNTLSLK 1

define __BUILTIN_AVR_COUNTLSLLK 1

define __BUILTIN_AVR_COUNTLSUHK 1

define __BUILTIN_AVR_COUNTLSUK 1

define __BUILTIN_AVR_COUNTLSULK 1

define __BUILTIN_AVR_COUNTLSULLK 1

define __BUILTIN_AVR_BITSHR 1

define __BUILTIN_AVR_BITSR 1

define __BUILTIN_AVR_BITSLR 1

define __BUILTIN_AVR_BITSLLR 1

define __BUILTIN_AVR_BITSUHR 1

define __BUILTIN_AVR_BITSUR 1

define __BUILTIN_AVR_BITSULR 1

ignoring duplicate directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/include-fixed"

define __BUILTIN_AVR_BITSULLR 1

ignoring nonexistent directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/sys-include"

define __BUILTIN_AVR_BITSHK 1

ignoring duplicate directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/include"

include "..." search starts here:

include <...> search starts here:

define __BUILTIN_AVR_BITSK 1

define __BUILTIN_AVR_BITSLK 1

define __BUILTIN_AVR_BITSLLK 1

define __BUILTIN_AVR_BITSUHK 1

define __BUILTIN_AVR_BITSUK 1

define __BUILTIN_AVR_BITSULK 1

define __BUILTIN_AVR_BITSULLK 1

c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/include

define __BUILTIN_AVR_HRBITS 1

define __BUILTIN_AVR_RBITS 1

define __BUILTIN_AVR_LRBITS 1

define __BUILTIN_AVR_LLRBITS 1

define __BUILTIN_AVR_UHRBITS 1

define __BUILTIN_AVR_URBITS 1

define __BUILTIN_AVR_ULRBITS 1

define __BUILTIN_AVR_ULLRBITS 1

define __BUILTIN_AVR_HKBITS 1

define __BUILTIN_AVR_KBITS 1

define __BUILTIN_AVR_LKBITS 1

define __BUILTIN_AVR_LLKBITS 1

define __BUILTIN_AVR_UHKBITS 1

define __BUILTIN_AVR_UKBITS 1

define __BUILTIN_AVR_ULKBITS 1

define __BUILTIN_AVR_ULLKBITS 1

define __BUILTIN_AVR_ABSFX 1

define __BUILTIN_AVR_ROUNDFX 1

define __BUILTIN_AVR_COUNTLSFX 1

define __INT24_MAX** 8388607L

define INT24_MIN (-INT24_MAX-1)

define UINT24_MAX 16777215UL

define ELF 1

define F_CPU 16000000L

define ARDUINO 10606

define ARDUINO_AVR_UNO 1

define ARDUINO_ARCH_AVR 1

define IN_ECLIPSE 1

c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/include-fixed c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include End of search list. COMPILER_PATH=c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../libexec/gcc/avr/4.8.1/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../libexec/gcc/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ LIBRARY_PATH=c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/avr/4.8.1/avr5/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr5/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/avr/4.8.1/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/;c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/ COLLECT_GCC_OPTIONS='-c' '-g' '-Os' '-w' '-std=gnu++11' '-fno-exceptions' '-ffunction-sections' '-fdata-sections' '-fno-threadsafe-statics' '-MMD' '-mmcu=atmega328p' '-D' 'F_CPU=16000000L' '-D' 'ARDUINO=10606' '-D' 'ARDUINO_AVR_UNO' '-D' 'ARDUINO_ARCH_AVR' '-D' 'IN_ECLIPSE=1' '-E' '-P' '-v' '-dD'

09:42:25 Build Finished (took 160ms)

jantje commented 8 years ago

Yes, To make it more real I installed the resulting zip in another location instead of running win32x64.cmd from the root. So that is why the logs are different.

I'm not following what you are trying to say here. What I do see is that the console output states

"C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.producttarget\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin\avr-g++"

In other words it looks like you run directly from the compiled resources. Which is different from what I do as I mostly run from debug.

From he loggings you provided you can clearly see that he finds the path

ignoring duplicate directory "c:/users/jongw/git/arduino-eclipse-plugin/it.baeyens.arduino.product/target/products/it.baeyens.arduino.product/win32/win32/x86_64/eclipsearduino/arduinoplugin/tools/arduino/avr-gcc/4.8.1-arduino5/lib/gcc/../../lib/gcc/avr/4.8.1/../../../../avr/include" .... c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include

And that is exactly the same at the end as on my system

I however started thinking

c:\users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product\target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipsearduino\arduinoplugin\tools\arduino\avr-gcc\4.8.1-arduino5\bin../lib/gcc/avr/4.8.1/../../../../avr/include/avr/sfr_defs.h

is 260 chars long. Is there still a 255 path length limitation somewhere in windows? And this is what I got https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#maxpath

_Maximum Path Length Limitation_ In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:\some 256-character path string" where "" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.) Note File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\?\" prefix as detailed in the following sections

As you have to add a null that is: _bingo_.

I think we found the problem :-)

wimjongman commented 8 years ago

Yes, I think that must be the problem. However as you can see from the screenshot. I do NOT run from the build directory:

C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product*target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\

I run from

c:\users\jongw\Programs\eclipseArduino

workspace:

c:\users\jongw\workspaces\arduino2

So why does it still think I am running from

C:\Users\jongw\git\arduino-eclipse-plugin\it.baeyens.arduino.product*target\products\it.baeyens.arduino.product\win32\win32\x86_64\eclipseArduino\

Do you store the initial installation path somewhere?

jantje commented 8 years ago

I thought I didn't but apparently I do. Here is the code. https://github.com/jantje/arduino-eclipse-plugin/blob/bigChange/it.baeyens.arduino.common/src/it/baeyens/arduino/common/ConfigurationPreferences.java#L36 As you can see there is the command line overwrite I already mentioned and there is a environment variable. However I see no place where the environment var is set.

jantje commented 8 years ago

Thinking about it again. I probably wanted to use a environment variable to save the setting and then went for the arguments stuff so it could be there has been a version which has set the environment variable in your workspace.

jantje commented 8 years ago

Anyways I think a warning at startup when the download location is bigger than 150 chars is appropriate

jantje commented 8 years ago

That is for windows machines

wimjongman commented 8 years ago

Can be closed.