Solved

Problem with building gcc cross-compiler

Posted on 1997-12-08
4
323 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 150 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

707 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