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 / 1612
1611  |  1613
Subject: 
Re: problems building crosscompiler with gcc2.95.2
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 11 Jan 2001 11:53:56 GMT
Viewed: 
1480 times
  
Hallo!


When configuring the gcc cross-compiler, add the option
"--with-newlib". This will do the inhibit libc things. You don't have
to edit the Makefile afterwards.

Thanks, but this was not all.
I had to download newlib and then in gcc-2.95.2/ add the
links:
ln -s ../newlib-1.9.0/newlib newlib
ln -s ../newlib-1.9.0/libgloss libgloss

Then reconfigure with additional option --with-headers and make.

Tomas Berndtsson schrieb:

Michael Wisse <mwisse@hs-harz.de> writes:

I changed the Makefile-line " CFLAGS = -g -O2 -Dinhibit_libc" and tried
to build the cross compiler with
"  make cross LANGUAGES="c c++"  ".

gcc uses a different method for this than egcs did.

When configuring the gcc cross-compiler, add the option
"--with-newlib". This will do the inhibit libc things. You don't have
to edit the Makefile afterwards.

After that, just follow the other instructions in the legOS HOWTO.

Greetings,

Tomas

Michael Wisse

Hochschule Harz
Fachbereich Automatisierung und Informatik
D-38855 Wernigerode



Message has 1 Reply:
  Re: problems building crosscompiler with gcc2.95.2
 
(...) I didn't have to do this. All I downloaded was binutils 2.10.1 and gcc 2.95.2, and followed the instructions in the legOS HOWTO, except for the difference between egcs and gcc I wrote. This was on a LinuxPPC, not sure if gcc behaves (...) (24 years ago, 11-Jan-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: problems building crosscompiler with gcc2.95.2
 
(...) gcc uses a different method for this than egcs did. When configuring the gcc cross-compiler, add the option "--with-newlib". This will do the inhibit libc things. You don't have to edit the Makefile afterwards. After that, just follow the (...) (24 years ago, 8-Jan-01, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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