Go Down

Topic: Compile error (Read 496 times) previous topic - next topic

CKonstantin

Hi I get this or other error when trying to compile, rebooting the Windows(7 x64) fixes the issue for a couple compiles and then it's back again

Error:
"Arduino: 1.8.5 (Windows 7), Board: "Arduino Due (Programming Port)"

Build options changed, rebuilding all
Exception 0xc0000090 0x0 0x13cf6060 0xf2722
PC=0xf2722

syscall.Syscall12(0x767c0000, 0xa, 0x1f348b40, 0x1f222a00, 0x0, 0x0, 0x1, 0x400, 0x1f30e000, 0x0, ...)
   /home/jenkins/go/src/runtime/syscall_windows.go:196 +0x4a
syscall.CreateProcess(0x1f348b40, 0x1f222a00, 0x0, 0x0, 0x1, 0x400, 0x1f30e000, 0x0, 0x1f3d9330, 0x1f3d92dc, ...)
   /home/jenkins/go/src/syscall/zsyscall_windows.go:583 +0x112
syscall.StartProcess(0x1f620580, 0x72, 0x1f25adc0, 0x2a, 0x2c, 0x1f3d93e8, 0x0, 0x0, 0x0, 0x0)
   /home/jenkins/go/src/syscall/exec_windows.go:326 +0x722
os.startProcess(0x1f620580, 0x72, 0x1f25adc0, 0x2a, 0x2c, 0x1f3d951c, 0x1f5ea000, 0x0, 0x0)
   /home/jenkins/go/src/os/exec_posix.go:45 +0x293
os.StartProcess(0x1f620580, 0x72, 0x1f25adc0, 0x2a, 0x2c, 0x1f3d951c, 0x0, 0x0, 0x0)
   /home/jenkins/go/src/os/doc.go:28 +0x53
os/exec.(*Cmd).Start(0x1f2600b0, 0x0, 0x0)
   /home/jenkins/go/src/os/exec/exec.go:358 +0x6fa
os/exec.(*Cmd).Run(0x1f2600b0, 0x0, 0x0)
   /home/jenkins/go/src/os/exec/exec.go:276 +0x2b
arduino.cc/builder/builder_utils.ExecRecipeCollectStdErr(0x1f6360a0, 0x56c313, 0x15, 0x1f000001, 0x5f4880, 0x614ef0, 0x0, 0x0, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder_utils/utils.go:413 +0x118
arduino.cc/builder.(*GCCPreprocRunnerForDiscoveringIncludes).Run(0x1f636080, 0x1f28a000, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/gcc_preproc_runner.go:93 +0x23c
arduino.cc/builder.runCommand(0x1f28a000, 0x5f39b0, 0x1f636080, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:183 +0x57
arduino.cc/builder.findIncludesUntilDone(0x1f28a000, 0x1f636380, 0x538ca0, 0x1f2c7a10, 0x1f2c61b0, 0x28, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:331 +0x1810
arduino.cc/builder.(*ContainerFindIncludes).Run(0x614ef0, 0x1f28a000, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:149 +0xdfd
arduino.cc/builder.runCommands(0x1f28a000, 0x1f3d9cc8, 0x22, 0x22, 0x1, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:191 +0xe2
arduino.cc/builder.(*Builder).Run(0x1f3d9dec, 0x1f28a000, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:124 +0x89f
arduino.cc/builder.RunBuilder(0x1f28a000, 0x0, 0x0)
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:222 +0x35
main.main()
   /home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/arduino-builder/main.go:338 +0x1360
eax     0x0
ebx     0x35e1008
ecx     0x0
edx     0x3580000
edi     0x16a4
esi     0x35e1000
ebp     0xcfa50
esp     0xcfa28
eip     0xf2722
eflags  0x10216
cs      0x23
fs      0x53
gs      0x2b
C:\Program Files (x86)\Arduino\arduino-builder returned 2
Error compiling for board Arduino Due (Programming Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."

Error2:
"Arduino: 1.8.5 (Windows 7), Board: "Arduino Due (Programming Port)"

exit status -1073741819
Error compiling for board Arduino Due (Programming Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."

Error3:
"Arduino: 1.8.5 (Windows 7), Board: "Arduino Due (Programming Port)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\K\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\K\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\K\Documents\Arduino\libraries -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10805 -build-path C:\Users\K\AppData\Local\Temp\arduino_build_375781 -warnings=none -build-cache C:\Users\K\AppData\Local\Temp\arduino_cache_389920 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose S:\Share\Sketches\B7_B8_swap\_15_12_2017_due_Repeat_intersept\_15_12_2017_due_Repeat_intersept.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\K\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\K\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\K\Documents\Arduino\libraries -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10805 -build-path C:\Users\K\AppData\Local\Temp\arduino_build_375781 -warnings=none -build-cache C:\Users\K\AppData\Local\Temp\arduino_cache_389920 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose S:\Share\Sketches\B7_B8_swap\_15_12_2017_due_Repeat_intersept\_15_12_2017_due_Repeat_intersept.ino
Using board 'arduino_due_x_dbg' from platform in folder: C:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11
Using core 'arduino' from platform in folder: C:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11
Detecting libraries used...
"C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf  -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM  -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/libsam" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/Device/ATMEL/" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\variants\arduino_due_x" "C:\Users\K\AppData\Local\Temp\arduino_build_375781\sketch\_15_12_2017_due_Repeat_intersept.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\K\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf  -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10805 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM  -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/libsam" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/Device/ATMEL/" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino" "-IC:\Users\K\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\variants\arduino_due_x" "C:\Users\K\AppData\Local\Temp\arduino_build_375781\sketch\_15_12_2017_due_Repeat_intersept.ino.cpp" -o "C:\Users\K\AppData\Local\Temp\arduino_build_375781\preproc\ctags_target_for_gcc_minus_e.cpp"
S:\Share\Sketches\B7_B8_swap\Sketch\Sketch.ino:3:21: fatal error: due_can.h: No such file or directory

 #include <due_can.h>

                     ^

compilation terminated.

exit status 1
Error compiling for board Arduino Due (Programming Port)."

Compiling several time in a row those 3 errors appear in various order

Any ideas?

Txs

pert

I don't know the cause and I haven't seen anything like this in the bug tracker. It seems to be related to arduino-builder so a workaround could be to use Arduino IDE 1.6.5, which was the last version before arduino-builder. You can get it here:
https://www.arduino.cc/en/Main/OldSoftwareReleases#previous

Another workaround would be to use the Arduino Web Editor:
https://create.arduino.cc/editor

You could also give the beta build a try, since there have been some significant changes to how arduino-builder works in that version:
https://www.arduino.cc/en/Main/Software#beta
but keep in mind that version is intended for beta testing and you may encounter some bugs.

Go Up