?
Solved

Problem with building gcc cross-compiler

Posted on 1997-12-08
4
Medium Priority
?
324 Views
Last Modified: 2012-06-27
Hi Everyone,

I have Redhat Linux 4.2 installed on my machine. I am trying to build a gcc cross compiler for m68k on this platform. I successful installed Binutils 2.8.1, but my problem is with gcc-2.7.2.2. I used a Cygnus patch, but i get the following message:

  _fixunsxfdi
  _floatdixf
  /tmp/cca04535.s: Assembler messages:
  /tmp/cca04535.s:70: Error: operands mismatch -- statement     `tstl a4' ignored
  make[2]: *** [libgcc2.a] Error 1
  make[2]: Leaving directory `/opt/gcc-2.7.2.2'
  make[1]: *** [stmp-multilib-sub] Error 2
  make[1]: Leaving directory `/opt/gcc-2.7.2.2'
  make: *** [stmp-multilib] Error 1

I get the same error when tried with gcc-2.7.2.1. Can someone help me out with this. I have heard that both these versions of gcc are buggy, but unfortunately Cygnus does not have a patch for gcc-2.7.2.3. I used the same "--prefix" option and "--program-prefix=m68k-" option while compiling Binutils & gcc. An older version of gcc (2.7.2.1) was used for compiling.

Thanks in advance.

----------------------------------------------------

Additional information:

My goal is to create a application development environment for a real-time OS (RTOS) for my m68k board. The development enivornment host is my PC running Redhat Linux 4.2 and my target is m68k board. For this I need a gcc compiler to compile m68k code and the Cygnus patch is essential for this.

0
Comment
Question by:nucleus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:dagmar
ID: 1634494
This may or may not fix your problem, but 2.7.2.2 is known to be unstable on Linux machines and may or may not compile any given program.  It especially dislikes large compiles (like kernels) and has a particular loathing for compiling sshd-1.2.20 (dying mysteriously while compiling immediately after sqrt.o).  Strangely, this only seems to affect Linux machines, and is the first thing you have to remedy if you install Slackware 3.3, which had the misfortune of being just cutting edge enough to get 2.7.2.2 included in it.  *sigh*.  You can download gcc-2.7.2.3 from ftp.gnu.org, and build it with 2.7.2.2, though, and then your problem will probably disappear.  Whether or not Cygnus has made something available for 2.7.2.3 or not is irrelevant, because 2.7.2.2 is not to be considered stable under Linux.  You will have to use .1 or .3 and take your chances.

Additionally, it would probably be helpful if you could be a little clearer as to what exactly it is you are doing.  Are you trying to compile a copy of gcc (for your m68k) that will compile both x86 and m68k code on your x86 machine, or are you just trying to compile a compiler for your m68k machine on your x86 machine?  Or possibly you are trying to build a compiler on your x86 machine that will compile both x86 and m68k code.  (If any of these scenarios involve compiling on a Linux machine with 2.7.2.2, forget it.  Linux machines are the reason that 2.7.2.3 was released so soon.  ;)  )
0
 

Author Comment

by:nucleus
ID: 1634495
Edited text of question
0
 
LVL 4

Accepted Solution

by:
jetx earned 300 total points
ID: 1634496
if your trying to build a gcc cross-compiler make sure you got all the latest packages at sunsite.unc.edu/pub/Linux

0
 

Author Comment

by:nucleus
ID: 1634497
i could finally build gcc cross complier using version 2.7.2.1

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question