🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52657

Cross-compiling from RS6000

#52657
From: pmg
Date: Fri, 05 Jun 1992 07:15
102 lines
4650 bytes
     To whomever might be of some assistance,

        My name is Paul Greenawalt.  I am a graduate student struggling to
complete my masters thesis.  I have recently run into difficulty attempting
to build a cross-compiler for an RS6000 running AIX3.2 to compile code for
an RTPC running Mach2.5.  I have received the fix mentioned in README.RS6000
pertaining to the assemble.  The first command I execute is :

     configure --host=rs6000-aix3.2 --target=rtpc-mach2.5

----------------------------------------------------------------------------
Linked `config.h' to `./config/xm-rs6000.h'
Linked `tm.h' to `./config/romp.h'
Linked `md' to `./config/romp.md'
Linked `aux-output.c' to `./config/romp.c'
Linked `tconfig.h' to `./config/xm-romp.h'
Merged x-rs6000.
Created `Makefile'.
Links are now set up for host rs6000-aix3.2 and target rtpc-mach2.5.
---------------------------------------------------------------------------

        The second step was to execute:

     make Languages=c

        This causes a few minor errors which were corrected.

        I then executed the command:

     make stage1

---------------------------------------------------------------------------
        if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
        mv *.o insn-flags.h insn-config.h insn-codes.h  insn-output.c
insn-recog.c in
sn-emit.c insn-extract.c insn-peep.c  insn-attr.h insn-attrtab.c 
stamp-flags stamp-c
onfig stamp-codes  stamp-output stamp-recog stamp-emit stamp-extract
stamp-peep  stam
p-attr stamp-attrtab  genemit genoutput genrecog genextract genflags
gencodes genconf
ig genpeep  genattrtab genattr  gcc cc1 cpp   gcc-cross cccp cc1plus
cc1obj enquire
protoize unprotoize specs collect2 stage1
mv: cannot rename enquire to stage1/enquire:
No such file or directory
mv: cannot rename collect2 to stage1/collect2:
No such file or directory
The error code from the last failed command is 1.
        This value will be ignored.
        rm -f stage1/libgcc.a
        cp libgcc.a stage1
cp: libgcc.a: No such file or directory
The error code from the last failed command is 1.
        This value will be ignored.
        if [ -f /usr/local/rtpc-mach2.5/bin/ranlib ] ; then
/usr/local/rtpc-mach2.5/b
in/ranlib stage1/libgcc.a; else true; fi
------------------------------------------------------------------------
----

        I was unsure if these errors were a problem or exactly how to fix them.
I therefore continued with:

        make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"

---------------------------------------------------------------------------
This is only the head of the output file!!!!!!


        stage1/gcc -DCROSS_COMPILE   -I /usr/include -g -O -Bstage1/    
-I. -I. -I./
config \
                 
-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rtpc-mach2.5/`awk '{prin
tf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include\" \
                  -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\"
\
                  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
                 
-DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rtpc-mach2.5/`awk '{pr
intf "%s", substr ($4, 2, length ($4) - 3); }'
./version.c`/sys-include\" \
                  -c `echo ./cccp.c | sed 's,^\./,,'`
Assembler:
/tmp/ccPfoDe7.s: line 6: Error In Syntax
/tmp/ccPfoDe7.s: line 7: Error In Syntax
/tmp/ccPfoDe7.s: line 8: invalid opcode or pseudo-op
------------------------------------------------------------------------
----

        These errors continued for just about every line in the file.

        I am stumped as what to try next.  If anyone can be of assistance, your
help would be greatly appreciated.


                                         Paul Greenawalt
                                         Distributed Computing Research Lab
                                         University of Notre Dame
                                         pmg@cse.nd.edu
Technical Details
Message-ID: <1992Jun5.071541.12950@news.nd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.nd.edu!cse.nd.edu!axb
References: <9206041807.AA06864@layout.asd>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c9c0353eeb4dbbbf
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-04 20:50:20 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.nd.edu!cse.nd.edu!axb
From: pmg@cse.nd.edu
Newsgroups: gnu.gcc.help
Subject: Cross-compiling from RS6000
Message-ID: <1992Jun5.071541.12950@news.nd.edu>
Date: 5 Jun 92 07:15:41 GMT
Article-I.D.: news.1992Jun5.071541.12950
References: <9206041807.AA06864@layout.asd>
Sender: news@news.nd.edu (USENET News System)
Reply-To: pmg@cse.nd.edu
Distribution: gnu
Organization: Distributed Computing Research Lab, Notre Dame
Lines: 102