ilikecats567 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

CPLUS_INCLUDE_PATH causes compilation errors on Slackware 64-bit #918

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile the bareminimum sketch with the shipped avr-toolchain.
2. gcc wil throw a bunch of errors.

I see:

~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In constructor 
‘String::String(unsigned char, unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:68: error: 
‘utoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In constructor 
‘String::String(int, unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:76: error: 
‘itoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In constructor 
‘String::String(unsigned int, unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:84: error: 
‘utoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In constructor 
‘String::String(long int, unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:92: error: 
‘ltoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In constructor 
‘String::String(long unsigned int, unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:100: error: 
‘ultoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In member function 
‘unsigned char String::concat(unsigned char)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:255: error: 
‘itoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In member function 
‘unsigned char String::concat(int)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:262: error: 
‘itoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In member function 
‘unsigned char String::concat(unsigned int)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:269: error: 
‘utoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In member function 
‘unsigned char String::concat(long int)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:276: error: 
‘ltoa’ was not declared in this scope
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp: In member function 
‘unsigned char String::concat(long unsigned int)’:
~/arduino-1.0.1/hardware/arduino/cores/arduino/WString.cpp:283: error: 
‘ultoa’ was not declared in this scope

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
1.0.1 on slackware64 current and 13.37

Please provide any additional information below.
This problem seems to be caused by using non-standard functions.
They should be replaced by ANSII standards to run everywhere.

Original issue reported on code.google.com by Vliegend...@gmail.com on 22 May 2012 at 10:55

GoogleCodeExporter commented 9 years ago
FIX: unset the CPLUS_INCLUDE_PATH environment variable.

Original comment by Vliegend...@gmail.com on 22 May 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Hmm, how does the CPLUS_INCLUDE_PATH get set?  If it's set by default on 
Slackware, maybe we need to clear it in the arduino launch script or something.

Original comment by dmel...@gmail.com on 23 May 2012 at 2:50

GoogleCodeExporter commented 9 years ago
I already did that for the slackbuild itself. 
(http://slackbuilds.org/repository/13.37/development/arduino/)
There is a new version pending for 1.0.1 for which this has been solved.

It can get set when using certain IDE's which drop extra configuration into the 
default profiles and it's not slackwares default setting!

You can close this bug if you like.

Original comment by Vliegend...@gmail.com on 23 May 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Okay, closing this.  Thanks for looking into it!

Original comment by dmel...@gmail.com on 23 May 2012 at 11:52