Building a Fortran Cross Compiler with Gcc-2.95.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



aaronchiles@xxxxxxx writes:
 > I having problems building a fortran cross compiler.  I've tried
 > several different versions, configuration, etc. and I'm not having any
 > luck.  Most want 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: configure --host=sparc-sun-solaris2.9
 > --target=powerpc-wrs-vxworks --with-headers=/opt/wind/target/h
 > --with-libs=/opt/wind/target/lib --prefix=/opt/src/xcomp/target
 > --enable-threads=vxworks
 > 
 > After its configures I edit /opt/src/xcomp/binutils-2.14/gas/as.c adding line 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, loader, etc.
 > 
 > Then I 'cd' to /opt/src/xcomp/gcc-2.95.3 to configure the gcc.  (I
 > chose not to create a build directory because I get the same results
 > and felt I might as well leave it all in the same directory) For the
 > gcc configuration I give the following command at the prompt.
 > /opt/src/xcomp/gcc-2.95.3> configure --host=sparc-sun-solaris2.9 --target=powerpc-wrs-vxworks --with-headers=/opt/wind/target/h --with-libs=/opt/wind/target/lib --prefix=/opt/src/xcomp/target --enable-threads=vxworks --enable-languages=f77
 > 
 > When the configure finishes I edit the Makefile to such that its add a flag to the CFLAGS.  
 > CFLAGS = -g 02 -DCPU=PPC604
 > 
 > Then I type ?make? and it begins to build.  After its stop I then
 > type ?make install? and it finishes but I believed stopped in the
 > middle.  I scroll up and find a message that:
 > 
 > checking for a BSD compatible install? ../../install-sh ?c
 > checking whether make sets ${MAKE}? yes
 > checking how to run C preprocessor? /opt/src/gcc-2.95.3/gcc/xgcc ?B/usr/include/sys/ 
 > 	-B/opt/src/xcomp/gcc-2.95.3/gcc/ -B/opt/src/xcomp/target/powerpc-wrs-vxworks/bin/ -E
 > checking for stdio.h? no
 > configure: error: Can?t find stdio.h.
 > You must have a usable C system for the target already installed, at
 > least including headers and, preferably, the library, before you can
 > configure the G77 runtime system. If necessary install gcc now with
 > LANGUAGES=c? then the target library, then build with
 > LANGUAGES=f77?.

Well, this is your problem.  The cross compiler, for some reason,
isn't finding your target headers.  

It's been such a long time since I used gcc 2.95 that I can't
understand why this might be.

Andrew

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux