BrickOS (Linux OS for the Lego Mindstorm) Problem
I am having a problem trying to compile the brick OS on a FC3 kernel 2.6.12-1.1378_FC3. I downloaded the H8300-hms-gcc-3.3-0.1.rpm to get the cross compiler for the H8300.
Now when I try and compile the OS for the Mindstorm it gives me the following error:
/usr/local/bin/h8300-hms-g++ -DCXX -fno-rtti -fno-exceptions -O2 -fno-builtin -fomit-frame-pointer -Wall -I/home/Programming/brickos-0.9.0/include -I/home/Programming/brickos-0.9.0/include/lnp -I. -c mem.cpp -o mem.o
make[2]: /usr/local/bin/h8300-hms-g++: Command not found
I looked and it seems that the rpm didn't come with a g++ exe, but it has a h8300-hms-cpp exe, so I made a link in my /usr/loca/bin to that file using the h8300-hms-g++ to see if that would fix things. When i did that I got the following error after running make:
/usr/local/bin/h8300-hms-g++ -DCXX -fno-rtti -fno-exceptions -O2 -fno-builtin -fomit-frame-pointer -Wall -I/home/nicholas/Programming/brickos-0.9.0/include -I/home/nicholas/Programming/brickos-0.9.0/include/lnp -I. -c mem.cpp -o mem.o
h8300-hms-g++: "-c" is not a valid option to the preprocessor
Then if I make the link point to the h8300-hms-gcc exe I get this error:
/usr/local/bin/h8300-hms-g++ -DCXX -fno-rtti -fno-exceptions -O2 -fno-builtin -fomit-frame-pointer -Wall -I/home/nicholas/Programming/brickos-0.9.0/include -I/home/nicholas/Programming/brickos-0.9.0/include/lnp -I. -c mem.cpp -o mem.o
h8300-hms-g++: mem.cpp: C++ compiler not installed on this system
I have gcc 3.3.4 installed on the system and it works.
This doesn't seem to make since because when i to a h8300-hms-cpp --help it gives me the following options:
Usage: h8300-hms-cpp [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
(Use '-v --help' to display command line options of sub-processes)
-dumpspecs Display all of the built in spec strings
-dumpversion Display the version of the compiler
-dumpmachine Display the compiler's target processor
-print-search-dirs Display the directories in the compiler's search path
-print-libgcc-file-name Display the name of the compiler's companion library
-print-file-name=<lib> Display the full path to library <lib>
-print-prog-name=<prog> Display the full path to compiler component <prog>
-print-multi-directory Display the root directory for versions of libgcc
-print-multi-lib Display the mapping between command line options and
multiple library search directories
-print-multi-os-directory Display the relative path to OS libraries
-Wa,<options> Pass comma-separated <options> on to the assembler
-Wp,<options> Pass comma-separated <options> on to the preprocessor
-Wl,<options> Pass comma-separated <options> on to the linker
-Xlinker <arg> Pass <arg> on to the linker
-save-temps Do not delete intermediate files
-pipe Use pipes rather than intermediate files
-time Time the execution of each subprocess
-specs=<file> Override built-in specs with the contents of <file>
-std=<standard> Assume that the input sources are for <standard>
-B <directory> Add <directory> to the compiler's search paths
-b <machine> Run gcc for target <machine>, if installed
-V <version> Run gcc version number <version>, if installed
-v Display the programs invoked by the compiler
-### Like -v but options quoted and commands not executed
-E Preprocess only; do not compile, assemble or link
-S Compile only; do not assemble or link
-c Compile and assemble, but do not link
-o <file> Place the output into <file>
-x <language> Specify the language of the following input files
Permissable languages include: c c++ assembler none
'none' means revert to the default behavior of
guessing the language based on the file's extension
Options starting with -g, -f, -m, -O, -W, or --param are automatically
passed on to the various sub-processes invoked by h8300-hms-cpp. In order to pass
other options on to these processes the -W<letter> options must be used.
In ths options is the -c compile options. I don't know why it is given me this error. Anyone out there run into this before?
|