Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 7 characters in body
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 18

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGAMega on another computer. But Onon my machine, it only compiles only for Due. When Compilingcompiling for "MEGA"Mega or MEGAMega 2560", I get the following error:

/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Error compiling.

/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status Error compiling.

My newbie guess is something is wrong with AVR libraries. But how to solve it? (also Also could sbsomeone please explain what -lc is "-lc", which cannot be found? atAt first glance it looks like an option.)

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGA on another computer. But On my machine, it only compiles only for Due. When Compiling for "MEGA or MEGA 2560", I get the following error:

/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Error compiling.

My newbie guess is something is wrong with AVR libraries. But how to solve it? (also could sb please explain what is "-lc" which cannot be found? at first glance it looks like an option.)

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and Mega on another computer. But on my machine, it only compiles for Due. When compiling for "Mega or Mega 2560", I get the following error:

/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status Error compiling.

My newbie guess is something is wrong with AVR libraries. But how to solve it? Also could someone please explain what -lc is, which cannot be found? At first glance it looks like an option.

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Source Link
Makan
  • 239
  • 4
  • 14

Compile Error for Arduino Mega

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGA on another computer. But On my machine, it only compiles only for Due. When Compiling for "MEGA or MEGA 2560", I get the following error:

/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: skipping incompatible /Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/libc.a when searching for -lc
/Arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Error compiling.

My newbie guess is something is wrong with AVR libraries. But how to solve it? (also could sb please explain what is "-lc" which cannot be found? at first glance it looks like an option.)