public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: Suggestion for web docu and g77 as cross compiler?
  1999-07-31 23:33   ` Suggestion for web docu and g77 as cross compiler? Martin Kahlert
@ 1999-07-08 11:21     ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1999-07-08 11:21 UTC (permalink / raw)
  To: martin.kahlert; +Cc: egcs-bugs

  In message < 19990707172711.A1889@keksy.mchp.siemens.de >you write:
  > Under /sw/local_l/i686-pc-mingw/{sys-,}include these files are not present.
Check your --with-headers option from when you configured.

The directory you needs to have all the include files for your target
system.  It should _not_ be a subdirectory of $prefix.  The configure
process will copy those headers into a suitable location.


jeff


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Suggestion for web docu and g77 as cross compiler?
       [not found] ` <15542.931339309@upchuck.cygnus.com>
@ 1999-07-31 23:33   ` Martin Kahlert
  1999-07-08 11:21     ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Kahlert @ 1999-07-31 23:33 UTC (permalink / raw)
  To: Jeffrey A Law; +Cc: egcs-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-31 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <19990707111218.A20712@keksy.mchp.siemens.de>
     [not found] ` <15542.931339309@upchuck.cygnus.com>
1999-07-31 23:33   ` Suggestion for web docu and g77 as cross compiler? Martin Kahlert
1999-07-08 11:21     ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).