codebndr / arduino-core-files

The Arduino core files, used for compilation (LINUX)
http://codebender.cc
15 stars 45 forks source link

avr-g++ execute binary error #2

Closed zarubto4 closed 8 years ago

zarubto4 commented 8 years ago

Hello amazing codebender team!

i am trying to install your compiler for my bachelor's thesis. Everything is ok, but API answer for your example data return unsuccess compilation. I have absolutely no idea where it might be a problem. Probably it is a bug? Or did you change something but in toturial not? I'm so sorry if its problem on my side. Thanks Tomas

POST http://serverUrl/authorizationKey/v1

{
   "files":[
      {
         "filename":"hello.h",
         "content":"#define HELLO"
      },
      {
         "filename":"hello.ino",
         "content":"#include<SPI.h>\nvoid setup()\n{\n\tint bla, blabla = 5;\n}\n\nvoid loop()\n{\n\n}\n"
      }
   ],
   "libraries":
      {
         "SPI":[
            {
               "filename":"SPI.h",
               "content":"content"
            },
            {
               "filename":"SPI.cpp",
               "content":"content"
            }
         ]
      },
   "format":"syntax",
   "version":"105",
   "build":{
      "mcu":"atmega328p",
      "f_cpu":"16000000L",
      "core":"arduino",
      "variant":"standard"
   }
}

Response

{
  "success": false,
  "step": 4,
  "debug": "/opt/compiler/arduino-core-files/v105/hardware/tools/avr/bin/avr-g++: line 3: /opt/compiler/arduino-core-files/v105/hardware/tools/avr/bin/../bin.gcc/avr-g++: cannot execute binary file: Exec format error\n/opt/compiler/arduino-core-files/v105/hardware/tools/avr/bin/avr-g++: line 3: /opt/compiler/arduino-core-files/v105/hardware/tools/avr/bin/../bin.gcc/avr-g++: Success",
  "message": "(arduino core file) /clang/v3_5/bin/clang: 1: (arduino core file) /clang/v3_5/bin/clang: Syntax error: &quot;(&quot; unexpected"
}
zarubto4 commented 8 years ago

Sorry, my fault! 32-bit OS misstake...I'm such a big an idiot :jack_o_lantern:

tzikis commented 8 years ago

Oh well, no problem :) glad you worked it out