This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Problems with Building a Fortran Cross Compiler


I am trying to build a FORTRAN cross compiler.  
 
I am using gcc-3.3.2 (only the core and f77) and binutils-2.12.12.  My configuration was as follows : 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 
 
I managed to build the C compiler with no problems, build a mod, loaded up on SBC and ran the module.  Next I ran the configure-target-libf2c from top level, and that created libf2c under the powerpc-wrs-vxworks and the 'make all-target-libf2c.  
  As a test I built two files a C file and file to test the c and FORTRAN compilation.  Both compile without errors.  The problem is that if I load the FORTRAN obj file on the board I receive Relocation value does not fit in 24 bits.  
 
To get around that I called the FORTRAN function from a C file and then linked in one obj file...it load find with no errors and works as long as I don't have any I/O in the FORTRAN file.  
If it does I receive a similar error as stated before only this one is either 14 or 16 bit sizes.  


I've tried going back to the beginning and updated the binutilities to 2.14 hoping that would create some kind of fix, but it was not successful.  I then have tried to build 2.14 with gcc versions 2.95.3, 3.03, and 3.3.3 with the core only and full versions.  In all cases I receive the following error :

gcc/include/sys/resource.h:44: parse error before "PARAMS"
gcc/include/sys/resource.h:45: parse error before "PARAMS"
gcc/include/sys/resource.h:47: parse error before "PARAMS"
gcc/include/sys/resource.h:48: parse error before "PARAMS"
gcc/include/sys/resource.h:49: parse error before "PARAMS"
gcc/include/sys/resource.h:50: parse error before "PARAMS"
gcc/include/sys/resource.h:51: parse error before "PARAMS"

and 
it comes from libf2c/libU77/etime_.c
also with the following errors

libf2c/libU77/etime_.c:129: storage size of 'rbuff' isn't known
libf2c/libU77/etime_.c:131: 'RUSAGE_SELF' undeclared (first use)
libf2c/libU77/etime_.c:131: (Each undeclared identifier is reported only once)

I have know idea what todo.  Can anyone please help me. If so email me at Aaron.chiles@robins.af.mil or aaronchiles@cox.net



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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