This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How can I build a cross compiler for Digital Unix?


Hello,

I am trying to use the SMTSIM simulator, which simulates the Alpha
processor and adds some extensions to it for multi-threading. According to
the README of the simulator, it runs on Digital Unix and it also accepts
Alpha object code generated on such systems. My problem is that I have no
access to a system with Digital Unix. Therefore, I am porting the
simulator to another system (Origin 2000, R10000 processors, IRIX 6.5) and
I am almost done with it. By porting I mean that it will run on an Origin
2000 system, but the object code it will accept is still Alpha object
code. As you can imagine, I need also a compiler that will generate object
code for Digital Unix systems and to do this I need your help, as all my
attempts to build one have failed and a few relevant postings in this list
are rather old and were not useful to me.

First let me describe what I have done. I downloaded binutils-2.13,
uncompressed it and tried to configure it on my system (dual Pentium III,
866MHz, RedHat Beta "null"):

~/Temp # tar -xzvf binutils-2.13.tar.gz
~/Temp # mkdir binutils-2.13-build
~/Temp # cd binutils-2.13-build
~/Temp # ../binutils-2.13/configure --prefix=/usr/local/apps/alpha-dec-osf
--target=alpha-dec-osf


The few first lines of the output I get are:


Configuring for a i686-pc-linux-gnu host.
*** This configuration is not supported in the following subdirectories:
     gas ld
    (Any other directories should still work fine.)
Created "Makefile" in /root/Temp/RPMS/CrossGCC/binutils-2.13-build using
"mt-frag"
Configuring intl...
creating cache ../config.cache

And finally I installed everything:

~/Temp # make install

The first question I have is if the selected target is the correct one.
It seems that my system is correctly recognized but what worries me is
that the assembler and the loader are not build. The configuration and the
compilation of all other programs contained in the binutils package
continues without any problems, but I have no assembler and loader. I
tried to use binutils 2.12, 2.11.2 and 2.11 but all seem to have the same
problem.

Although I had no assembler and linker I tried to build gcc-3.2 just to
see up to which point I can get:

~/Temp # tar -xzvf gcc-3.2.tar.gz
~/Temp # mkdir gcc-3.2-build
~/Temp # cd gcc-3.2-build
~/Temp # ../gcc-3.2/configure --prefix=/usr/local/apps/alpha-dec-osf
--target=alpha-dec-osf

~/Temp # make bootstrap

(After compiling several files)

gcc -c -DIN_GCC -DCROSS_COMPILE   -g  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I../../gcc-3.2/gcc
-I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config
-I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/mips-tfile.c -o mips-tfile.o
../../gcc-3.2/gcc/mips-tfile.c:670:24: mips/a.out.h: No such file or
directory
../../gcc-3.2/gcc/mips-tfile.c:691: `scNil' undeclared here (not in a
function)
../../gcc-3.2/gcc/mips-tfile.c:691: enumerator value for `sc_Nil' not
integer constant
../../gcc-3.2/gcc/mips-tfile.c:692: `scText' undeclared here (not in a
function)
../../gcc-3.2/gcc/mips-tfile.c:692: enumerator value for `sc_Text' not
integer constant
(A list with many more undeclared values and other errors)

It seems to me that this error is not related to the fact that I have no
assembler and linker for Digital Unix. Why is make trying to compile a
file for MIPS?

I searched a little bit more and found that gcc-3.2 does not support
anything less than osf4. I repeated the whole procedure, setting
everywhere as target alpha-dec-osf4, but I got exactly the same errors.

As you surely have figured out, I don't know what to do next. Is there
any combination of binutils, gcc and/or target (for example
alphaev68-dec-osf4) that I can use to build gcc as a cross-compiler for
a version of Digital Unix? Moreover, do I have to use any more switches to
the configure scripts for binutils and gcc? Does the host play any role
(32-bit Pentium host -> 64-bit Alpha target)? Is there something else
that I am doing wrong? Any idea/help on this is greatly appreciated.


Thank you in advance for any response,

Ioannis E. Venetis


P.S: If you need any more information for the errors that occur, please
send me a mail and I will provide it to you.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]