From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29165 invoked by alias); 27 Feb 2004 15:34:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 29142 invoked from network); 27 Feb 2004 15:33:59 -0000 Received: from unknown (HELO lakemtao07.cox.net) (68.1.17.114) by sources.redhat.com with SMTP; 27 Feb 2004 15:33:59 -0000 Received: from smtp.central.cox.net ([172.18.52.56]) by lakemtao07.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with SMTP id <20040227153358.DBQD12901.lakemtao07.cox.net@smtp.central.cox.net>; Fri, 27 Feb 2004 10:33:58 -0500 From: To: gcc-help@gcc.gnu.org,gcc@gcc.gnu.org Subject: Building a Fortran Cross Compiler with Gcc-2.95.3 Date: Fri, 27 Feb 2004 15:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20040227153358.DBQD12901.lakemtao07.cox.net@smtp.central.cox.net> X-SW-Source: 2004-02/txt/msg00311.txt.bz2 I having problems building a fortran cross compiler. I've tried several di= fferent versions, configuration, etc. and I'm not having any luck. Most wa= nt to know what my procedure is before they can diagnose my problem so I'll= just go though the procees. First I download gcc-2.95.3 and binutils02.14= and make an empty target directory all in the same level for this it will = be /opt/src/xcomp/. Next I configure the binutilites with the following configuration typing: c= onfigure --host=3Dsparc-sun-solaris2.9 --target=3Dpowerpc-wrs-vxworks --wit= h-headers=3D/opt/wind/target/h --with-libs=3D/opt/wind/target/lib --prefix= =3D/opt/src/xcomp/target --enable-threads=3Dvxworks After its configures I edit /opt/src/xcomp/binutils-2.14/gas/as.c adding li= ne 38 37 #define COMMON 38 #define BFD_VERSION_STRING "2.14" 39 40 #include "as.h" I type 'make' and then 'make install'. And it install the assembler, loade= r, etc. Then I 'cd' to /opt/src/xcomp/gcc-2.95.3 to configure the gcc. (I chose no= t to create a build directory because I get the same results and felt I mig= ht as well leave it all in the same directory) For the gcc configuration I= give the following command at the prompt.=20=20 /opt/src/xcomp/gcc-2.95.3> configure --host=3Dsparc-sun-solaris2.9 --target= =3Dpowerpc-wrs-vxworks --with-headers=3D/opt/wind/target/h --with-libs=3D/o= pt/wind/target/lib --prefix=3D/opt/src/xcomp/target --enable-threads=3Dvxwo= rks --enable-languages=3Df77 When the configure finishes I edit the Makefile to such that its add a flag= to the CFLAGS.=20=20 CFLAGS =3D -g 02 -DCPU=3DPPC604 Then I type =91make=92 and it begins to build. After its stop I then type= =91make install=92 and it finishes but I believed stopped in the middle. = I scroll up and find a message that: checking for a BSD compatible install=85 ../../install-sh =96c checking whether make sets ${MAKE}=85 yes checking how to run C preprocessor=85 /opt/src/gcc-2.95.3/gcc/xgcc =96B/usr= /include/sys/=20 -B/opt/src/xcomp/gcc-2.95.3/gcc/ -B/opt/src/xcomp/target/powerpc-wrs-vxwor= ks/bin/ -E checking for stdio.h=85 no configure: error: Can=92t find stdio.h. You mus have a usable C system for the target already installed, at least i= ncluding headers and, preferably, the library, before you can configure the= G77 runtime system. If necessary install gcc now with =91LANGUAGES=3Dc=92 = then the target library, then build with =93LANGUAGES=3Df77=94.=20 I=92ve tried configuring with out enabling f77 and it seems the C will not = install. I =91cd=92 to /gcc/ and try to =91make install=92 there. It seems to build = ok but I don=92t know if it installed fine=85so I do a =91make =96n install= LANGUAGES =3Dc=92.=20=20=20 I receive the following set of errors: make[2]: Entering directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 ./xgcc =96B/ opt/src/xcomp/target/powerpc-wrs-vxworks/bin/ -B./ -I/ opt/src= /xcomp/target/powerpc-wrs-vxworks/include =96DCROSS_COMPILE =96DHAIFA =96DS= VR4 =96g =96I./include =96I. =96I. =96I./config =96I./../include =96mreloca= table-lib =96mno-eabi =96mstrict-align =96c ecrti.S =96o tecrit.o make[2]: Leaving directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 mv: cannot access tecrti.o make[2]: Entering directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92=20 ./xgcc =96B/ opt/src/xcomp/target/powerpc-wrs-vxworks/bin/ -B./ -I/ opt/src= /xcomp/target/powerpc-wrs-vxworks/include =96DCROSS_COMPILE =96DHAIFA =96DS= VR4 =96g =96I./include =96I. =96I. =96I./config =96I./../include =96mreloca= table-lib =96mno-eabi =96mstrict-align =96c ecrti.S =96o tecrit.o make[2]: Leaving directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 mv: cannot access tecrti.o make[2]: Entering directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92=20 ./xgcc =96B/ opt/src/xcomp/target/powerpc-wrs-vxworks/bin/ -B./ -I/ opt/src= /xcomp/target/powerpc-wrs-vxworks/include =96DCROSS_COMPILE =96DHAIFA =96DS= VR4 =96g =96I./include =96I. =96I. =96I./config =96I./../include =96mreloca= table-lib =96mno-eabi =96mstrict-align =96c ecrti.S =96o tecrit.o make[2]: Leaving directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 mv: cannot access tecrti.o make[2]: Entering directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92=20 ./xgcc =96B/ opt/src/xcomp/target/powerpc-wrs-vxworks/bin/ -B./ -I/ opt/src= /xcomp/target/powerpc-wrs-vxworks/include =96DCROSS_COMPILE =96DHAIFA =96DS= VR4 =96g =96I./include =96I. =96I. =96I./config =96I./../include =96mreloca= table-lib =96mno-eabi =96mstrict-align =96c ecrti.S =96o tecrit.o make[2]: Leaving directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 mv: cannot access tecrti.o make[1]: *** [stmp-multilib-sub] Error2 make[1]: Leaving directory =91/opt/src/xcomp/gcc-2.95.3/gcc=92 make: *** [stmp-multilib] Error 1 I think if I can get past this I may be able to accomplish building the For= tran cross compiler. Anyone have any Ideas=85 Regards, Aaron Chiles WR-ALC/MASFE Bldg 227 478.926.1370 / DSN 468.1370 Aaron.Chiles@Robins.AF.MIL=20 Psalms 143 ~ 10 Teach me to do thy will; for thou art my God: thy spirit is good; lead = me into the land of uprightness. 11 Quicken me, O LORD, for the name's sake= : for thy righteousness' sake bring my soul out of trouble.