This is the mail archive of the egcs-bugs@egcs.cygnus.com mailing list for the EGCS project.


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

Re: Suggestion for web docu and g77 as cross compiler?


Quoting Jeffrey A Law (law@cygnus.com):
>   In message <19990707111218.A20712@keksy.mchp.siemens.de>you write:
>   > Now with gcc-2.95 i tried it with:
>   > CFLAGS='-O3 -fomit-frame-pointer'
>   > export CFLAGS
>   > ../egcs-1.1.2/configure --target=i686-pc-mingw32 --enable-languages=c++,f77
>   > make CFLAGS='-O3 -fomit-frame-pointer' LIBCFLAGS='-O3 -fomit-frame-pointer'
>   >  \
>   >      LIBCXXFLAGS='-O3 -fno-implicit-templates -fomit-frame-pointer' cross
>   > 
>   > But i am by no means able to compile libg2c.a
>   > It simply isn't built (even not with a make libf2c)
>   > There isn't even created a libf2c directory inside the build dir.
> libg2c should have been built inside the target_alias subdirectory
> (i686-pc-mingw32).
> 
> Also note that if you got as far as trying to build libf2c, then you've already
> built the compiler itself, you're failing trying to build the runtime 
> libraries.

I tried this:

I first removed the LANGUAGES='c c++' strings from the make calls in egcs/Makefile.in
in the cross: section. Then i did:

#!/bin/sh

CFLAGS='-O3 -fomit-frame-pointer'
export CFLAGS
../egcs-19990629/configure --prefix=/sw/local_l/kahlert/EGCS --target=i686-pc-mingw32 --enable-languages=c++,f77 \
                           --with-headers=/sw/local_l/kahlert/EGCS/i686-pc-mingw32/include
make CFLAGS='-O3 -fomit-frame-pointer' LIBCFLAGS='-O3 -fomit-frame-pointer' LIBCXXFLAGS='-O3 -fno-implicit-templates -fomit-frame-pointer' cross

I end up with a configure error in libf2c:
checking f2c integer type... configure: error: Can't run check for integer sizes -- see config.log

In config.log, there is:

configure:1065: checking f2c integer type
configure:1087: /home/kahlert/LOCAL/obj/gcc/xgcc -B/home/kahlert/LOCAL/obj/gcc/ -B/sw/local_l/kahlert/EGCS/i686-pc-mingw32/bin/ -c -O3 -fomit-frame-pointer -DHAVE_CONFIG_H -DIN_GCC -I../../../egcs-19990629/libf2c/../gcc/f -I../../../egcs-19990629/libf2c/../gcc -I../../../egcs-19990629/libf2c/../include -I../../../egcs-19990629/libf2c/../gcc/config -I/home/kahlert/LOCAL/obj/gcc  conftest.c 1>&5
In file included from ../../../egcs-19990629/libf2c/../gcc/f/system.j:25,
                 from ../../../egcs-19990629/libf2c/../gcc/f/proj.h:32,
                 from configure:1079:
../../../egcs-19990629/libf2c/../gcc/system.h:133: strings.h: No such file or directory
In file included from ../../../egcs-19990629/libf2c/../gcc/f/system.j:25,
                 from ../../../egcs-19990629/libf2c/../gcc/f/proj.h:32,
                 from configure:1079:
../../../egcs-19990629/libf2c/../gcc/system.h:153: sys/param.h: No such file or directory
In file included from ../../../egcs-19990629/libf2c/../gcc/f/system.j:25,
                 from ../../../egcs-19990629/libf2c/../gcc/f/proj.h:32,
                 from configure:1079:
../../../egcs-19990629/libf2c/../gcc/system.h:237: sys/wait.h: No such file or directory
configure: failed program was:
#line 1078 "configure"
#include "confdefs.h"
#include "proj.h"
#define FFECOM_DETERMINE_TYPES 1
#include "com.h"
int main() {

; return 0; }

Under /sw/local_l/i686-pc-mingw/{sys-,}include these files are not present.

Any hints?

Martin.

-- 
esa$ gcc -Wall -o ariane5 ariane5.c
ariane5.c: 666: warning: long float implicitly truncated to unsigned type
esa$ ariane5

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