LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-12-2005, 11:26 AM   #1
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
Question 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?
 
Old 02-27-2006, 12:48 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Have you been able to get it working?
I'm lloking for a way to get my mindstorms set to work with linux and I heven't a clue yet, especially since I have a USB IR tower.
Any pointers will be much appreciated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lego Mindstorms on WINE Elmo187 Linux - Software 6 01-01-2016 05:45 PM
Lego Usb Tower driver m_m Linux - Hardware 22 07-21-2005 12:42 AM
Linux is Lego - an aid to comprehension oneandoneis2 General 5 07-13-2005 11:06 AM
Read/Write LEGO USB Tower swinchen Programming 0 01-25-2005 09:36 PM
LEGO Mindstorms RIS 2.0 L.Tilley Linux - General 2 03-12-2002 12:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration