[Win32] Cannot 'make speed' in the 'tune' folder
Torbjörn Granlund
tg at gmplib.org
Wed Dec 30 08:49:53 UTC 2015
<sisyphus1 at optusnet.com.au> writes:
Then I cd to the tune directory and run 'make speed':
$ make speed
gcc -std=gnu99 -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7
-march=corei7 speed.c -o speed
speed.c:43:20: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [speed] Error 1
You need speed.exe on Windoze.
Oddly enough, if I run 'make tune' then there's no need to modify the
original Makefile - though 'make tune' subsequently fails to compile
after a while.
I'll make this the subject of another bug report after this one has
been sorted.
The target tune is a meta target. To build tuneup.exe, you need "make
tuneup.exe".
In case the 'make tune' output throws some light on the problem with
make speed' here's how 'make tune' terminates:
... many successful compilations ...
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I.. -I.. -I../tests -m32 -O2 -pedantic
-fomit-frame-pointer -mtune=corei7 -march=corei7 -c -o time.lo time.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H
-I. -I.. -I.. -I../tests -m32 -O2 -pedantic -fomit-frame-pointer
-mtune=corei7 -march=corei7 -c time.c -o time.o
time.c: In function 'getrusage_backwards_p':
time.c:674:18: error: storage size of 'start' isn't known
time.c:674:25: error: storage size of 'prev' isn't known
time.c:674:31: error: storage size of 'next' isn't known
time.c: In function 'cgt_works_p':
time.c:783:23: error: storage size of 'start' isn't known
time.c:783:30: error: storage size of 'end' isn't known
make[1]: *** [time.lo] Error 1
make[1]: Leaving directory `/c/smoke_mpfr/gmp-6.1.0/tune'
make: *** [tune] Error 2
We never ported timing things to WinDoS.
One should not need to run any of the things in tune/ on non-Unix
platforms. The important thing is to run it on each CPU type.
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-bugs
mailing list