To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 496
495  |  497
Subject: 
Problem with asm statement in loader.c
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 19 Nov 1999 02:48:40 GMT
Viewed: 
987 times
  
hi,

as many others, i also want to succeed in building legOS (0.2.2). :)

my platform is linux, kernel 2.0.38, glibc1.

i've builded binutils-2.9.1.0.25 and gcc-2.95.2 as described in the howto.

version 0.1.7 works just fine, but if i attempt to build version 0.2.0a or
at least 0.2.2 (without patches), the following (well known) error appears:

loader.c: In function `lnp_logical_write':
loader.c:92: Invalid `asm' statement:
loader.c:92: fixed or forbidden register 2 (cx) was spilled for class CREG.
loader.c: In function `dir_read':
loader.c:110: Invalid `asm' statement:
loader.c:110: fixed or forbidden register 2 (cx) was spilled for class CREG.
loader.c: In function `LNPinit':
loader.c:219: `O_ASYNC' undeclared (first use in this function)
loader.c:219: (Each undeclared identifier is reported only once
loader.c:219: for each function it appears in.)
make[2]: *** [loader.o] Error 1
make[1]: *** [dll] Error 2

this output is also mentioned and explained in the gcc 2.95 faq, at:
http://www.gnu.org/software/gcc/faq.html#asmclobber

i also used gcc 2.8.1, but the same error appears. so at this point, i want
to ask martin: "how did you made it?".

thanks, klaus



Message has 1 Reply:
  Re: Problem with asm statement in loader.c
 
(...) Hi Klaus, first: forget gcc-2.95.2 for CROSS-compiling for the moment, it does NOT work with legOS-0.2.2. You can compile legOS using it, but legOS will hang immediately when you try to download any user program. I guess only Markus is able to (...) (24 years ago, 19-Nov-99, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR