OpenSpin build on Raspberry Pi Errors - BOOM!
mindrobots
Posts: 6,506
Hi,
I'm building OpenSpin on my Raspberry Pi.
I'm on the latest Raspian (9-25-2013) and I grabbed the latest OpenSpin (r53)
After unzipping it into a directory, I do a 'make clean' and then 'make all'
This is my build output:
About 1/2 way through it starts complaining about things.
Is there anything special I need to do for building on a Linux environment?
Any help would be appreciated.
Thanks!
I'm building OpenSpin on my Raspberry Pi.
I'm on the latest Raspian (9-25-2013) and I grabbed the latest OpenSpin (r53)
After unzipping it into a directory, I do a 'make clean' and then 'make all'
This is my build output:
pi@tornado ~/src/openspin-source-r53 $ make all make -C PropellerCompiler all make[1]: Entering directory `/home/pi/src/openspin-source-r53/PropellerCompiler' g++ -DGCC -Wall -g -static -o BlockNestStackRoutines.o -c BlockNestStackRoutines.cpp g++ -DGCC -Wall -g -static -o CompileDatBlocks.o -c CompileDatBlocks.cpp g++ -DGCC -Wall -g -static -o CompileExpression.o -c CompileExpression.cpp g++ -DGCC -Wall -g -static -o CompileInstruction.o -c CompileInstruction.cpp g++ -DGCC -Wall -g -static -o CompileUtilities.o -c CompileUtilities.cpp g++ -DGCC -Wall -g -static -o DistillObjects.o -c DistillObjects.cpp g++ -DGCC -Wall -g -static -o Elementizer.o -c Elementizer.cpp g++ -DGCC -Wall -g -static -o ErrorStrings.o -c ErrorStrings.cpp g++ -DGCC -Wall -g -static -o ExpressionResolver.o -c ExpressionResolver.cpp g++ -DGCC -Wall -g -static -o InstructionBlockCompiler.o -c InstructionBlockCompiler.cpp g++ -DGCC -Wall -g -static -o StringConstantRoutines.o -c StringConstantRoutines.cpp g++ -DGCC -Wall -g -static -o SymbolEngine.o -c SymbolEngine.cpp g++ -DGCC -Wall -g -static -o Utilities.o -c Utilities.cpp g++ -DGCC -Wall -g -static -o PropellerCompiler.o -c PropellerCompiler.cpp ar rs libopenspin.a BlockNestStackRoutines.o CompileDatBlocks.o CompileExpression.o CompileInstruction.o CompileUtilities.o DistillObjects.o Elementizer.o ErrorStrings.o ExpressionResolver.o InstructionBlockCompiler.o StringConstantRoutines.o SymbolEngine.o Utilities.o PropellerCompiler.o ar: creating libopenspin.a make[1]: Leaving directory `/home/pi/src/openspin-source-r53/PropellerCompiler' g++ -o openspin -DGCC -Wall -g -static SpinSource/openspin.cpp SpinSource/flexbuf.c SpinSource/preprocess.c PropellerCompiler/libopenspin.a SpinSource/openspin.cpp:76:26: error: PATH_MAX was not declared in this scope SpinSource/openspin.cpp:79:38: error: PATH_MAX was not declared in this scope SpinSource/openspin.cpp: In function const char* MakePath(PathEntry*, const char*): SpinSource/openspin.cpp:83:13: error: lastfullpath was not declared in this scope SpinSource/openspin.cpp: In function FILE* OpenFileInPath(const char*, const char*): SpinSource/openspin.cpp:142:28: error: lastfullpath was not declared in this scope SpinSource/openspin.cpp:149:12: error: filesAccessed was not declared in this scope SpinSource/openspin.cpp:149:47: error: lastfullpath was not declared in this scope SpinSource/openspin.cpp: In function int main(int, char**): SpinSource/openspin.cpp:507:28: error: filesAccessed was not declared in this scope SpinSource/openspin.cpp:516:17: error: filesAccessed was not declared in this scope SpinSource/openspin.cpp: In function const char* MakePath(PathEntry*, const char*): SpinSource/openspin.cpp:85:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [all] Error 1
About 1/2 way through it starts complaining about things.
Is there anything special I need to do for building on a Linux environment?
Any help would be appreciated.
Thanks!
Comments
$ svn update
svn checkout http://open-source-spin-compiler.googlecode.com/svn/ open-source-spin-compiler-read-only
Interesting, I'll grab the new one later tonight. Wonder where I picked the old one up? (Totally rhetorical on that one.)
Thanks, Steve!
Here's a step-by-step method of obtaining and compiling Open Spin on the Raspberry pi.
Finally, run the binary with the following...
Jeff
@Ray, Roy Eltham took Chip's spin compiler code and ported it to C++ a while back. It gets burried and then dug up every few months. It should be a sticky or better advertised somehow.
Ray
https://code.google.com/p/open-source-spin-compiler/source/checkout
Ray, Don't let Jazzed hear you say that:)
Why would you want Geany IDE when you can use Simple IDE?
SimpleIDE does everything you need for Spin programming: editing, syntax highlighting, compiling, prop loading, terminal screen etc. Also works for C if you want.
Ray
In SimpleIDE, I loaded the Parallax Serial Terminal Demo.spin file, and set the project.
Compiled and loaded the binary, but nothing happened on Propeller.
The problem is a build issue which I've seen before with make.
I recommend always doing make clean after svn update.
Roy, considering how small openspin is, it would be good to add clean to the build steps in Makefile.
I.E. change: "all: $(LIBNAME) Makefile" to "all: clean $(LIBNAME) Makefile"
Now it's working like a charm.
Thanks as always folks...
- Earl