Discussion:
[Mingw-cross-env-list] gsl 1.14 failing?
Gareth Coco
2011-07-10 02:10:05 UTC
Permalink
Hi,

Just did a hg pull -u.

make clean; make

and when building gsl it fails.

Start of error message is.

make[4]: Entering directory `/home/gcoco/mingw-cross-env/tmp-gsl/gsl-1.14/test'
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-mingw32-gcc
-DHAVE_CONFIG_H -I. -I.. -g -O2 -MT results.lo -MD
-MP -MF .deps/results.Tpo -c -o results.lo results.c
libtool: compile: i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2
-MT results.lo -MD -MP -MF .deps/results.Tpo -c
results.c -o results.o
In file included from results.c:32:0:
/home/gcoco/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.6.1/include/varargs.h:4:2:
error: #error "GCC no longer imple
ments <varargs.h>."
/home/gcoco/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.6.1/include/varargs.h:5:2:
error: #error "Revise your code to
use <stdarg.h>."

Full log attached.
Tony Theodore
2011-07-10 04:21:34 UTC
Permalink
Hi Gareth,
Post by Gareth Coco
Hi,
Just did a hg pull -u.
make clean; make
and when building gsl it fails.
Two things look odd in the log, the first is:

checking whether we are cross compiling... no

can you check if adding the standard sed replacement before configue helps?

$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'


The second is:

checking for ANSI C header files... no

that causes STDC_HEADERS to not be defined - which then includes
<varargs.h> instead of <stdarg.h>. If the above replacement doesn't
work, try appending:

ac_cv_header_stdc=yes

to the ./configure args.

I just added a test program so you may want to hg pull -u first.

Cheers,

Tony
Gareth Coco
2011-07-10 12:44:29 UTC
Permalink
Post by Tony Theodore
can you check if adding the standard sed replacement before configue helps?
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
This fixed the problem for me.

FYI: This is on Fedora 14 x86_64

Gareth
Tony Theodore
2011-07-10 13:36:43 UTC
Permalink
Post by Gareth Coco
Post by Tony Theodore
can you check if adding the standard sed replacement before configue helps?
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
This fixed the problem for me.
Thanks, I just checked it in:

http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/f9cfd577fba6

Cheers,

Tony

Loading...