Skip to content

OSX 10.10.1 using Arduino 1.6.6: build failure message is wrong? #4079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
i-make-robots opened this issue Nov 4, 2015 · 6 comments
Closed
Assignees
Labels
Component: Compilation Related to compilation of Arduino sketches Type: Bug
Milestone

Comments

@i-make-robots
Copy link

Makelangelo-firmware/firmware_ams/firmware_ams.ino: In function 'void adjustSpoolDiameter(float)': firmware_ams:226: error: 'void adjustSpoolDiameter(float)' was declared 'extern' and later 'static' [-fpermissive] static void adjustSpoolDiameter(float diameter1) { ^ firmware_ams:226: error: previous declaration of 'void adjustSpoolDiameter(float)' [-fpermissive] static void adjustSpoolDiameter(float diameter1) { ^ exit status 1 'void adjustSpoolDiameter(float)' was declared 'extern' and later 'static' [-fpermissive]

The keyword 'extern' does not appear in my code anywhere. Instead I removed the keyword 'static' and Arduino was able to finish compiling. This code was compiling fine on 1.6.4.

@i-make-robots i-make-robots changed the title OSX 10.10.1 using Arduino 1.6.6: build message is wrong OSX 10.10.1 using Arduino 1.6.6: build failure message is wrong? Nov 4, 2015
@ffissore
Copy link
Contributor

ffissore commented Nov 5, 2015

I've just cloned your repo https://github.com/MarginallyClever/Makelangelo-firmware and this other repo https://github.com/i-make-robots/Stewart-Platform-Crane. Then moved Stewart-Platform-Crane/libraries/AFMotorDrawbot/ into my sketchbook libraries folder. Selected Arduino/Genuino Uno and the sketch successfully compiled.
Can you add more details?

@ffissore ffissore added the Waiting for feedback More information must be provided before we can proceed label Nov 5, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 5, 2015
@ffissore ffissore self-assigned this Nov 5, 2015
@i-make-robots
Copy link
Author

Makelangelo firmware was already fixed when I reported the error. Add the keyword "static" to any method in the firmware and try to recompile.

On Nov 4, 2015, at 11:42 PM, Federico Fissore [email protected] wrote:

I've just cloned your repo https://github.com/MarginallyClever/Makelangelo-firmware and this other repo https://github.com/i-make-robots/Stewart-Platform-Crane. Then moved Stewart-Platform-Crane/libraries/AFMotorDrawbot/ into my sketchbook libraries folder. Selected Arduino/Genuino Uno and the sketch successfully compiled.
Can you add more details?


Reply to this email directly or view it on GitHub.

@ffissore
Copy link
Contributor

ffissore commented Nov 6, 2015

Ok, arduino-builder omits static when generating prototypes. Moving the issue. Anyway, please note that your sketch won't compile anymore with latest hourly because you put libraries folders inside sketch folder. Released 1.6.6 was supposed to do recursive compilation (see #1004 (comment) and subsequent comments). Hourly (and 1.6.7) will attempt to compile those libraries code and will fail when compiling examples, because the library is not where it's supposed to be and the IDE can't find it

@ffissore
Copy link
Contributor

ffissore commented Nov 6, 2015

This issue was moved to arduino/arduino-builder#47

@ffissore ffissore closed this as completed Nov 6, 2015
@ffissore
Copy link
Contributor

ffissore commented Nov 6, 2015

Fixed in latest hourly build http://www.arduino.cc/en/Main/Software#hourly

@ffissore ffissore added Component: Compilation Related to compilation of Arduino sketches Type: Bug and removed Waiting for feedback More information must be provided before we can proceed labels Nov 6, 2015
@i-make-robots
Copy link
Author

The instructions I give on my website tell people to move the libraries to
the correct location. It's easier to distribute them as a single download.

Thanks,

On Fri, Nov 6, 2015 at 3:14 AM, Federico Fissore [email protected]
wrote:

Fixed in latest hourly build http://www.arduino.cc/en/Main/Software#hourly


Reply to this email directly or view it on GitHub
#4079 (comment).

Dan Royer :: Marginally Clever http://www.marginallyclevergroup.com/ ::
Raising Robot Literacy :: +1.604.916.2281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Compilation Related to compilation of Arduino sketches Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants