Tuyen> It prompted for a number of Perl modules that I successfully
Tuyen> installed with cpan -i command, except the Sys::CPU
Two pieces of follow-up:
+ First, the useful advice: You can do without Sys::CPU. You just need to edit
the file `creduce/creduce.in'. Make these changes:
+ Remove the line that says "use Sys::CPU".
+ Change the line that defines $NPROCS.
Set $NPROCS to a constant value, say 1.
+ Second, the investigative: I acquired a Windows 7 box with Cygwin, and I was
able to reproduce the problem you reported. I found that if I edited the
module source file "CPU.c" to
#define WINDOWS
#define _have_cpu_type
#define _have_cpu_clock
(see the preprocessor tests at the top of the file) then "CPU.c" compiles
correctly. I didn't push the process through to actually installing the
module; I don't understand CPAN well enough to know how to install a
hand-edited module. (CPAN unpacks the module sources into a fresh build tree
each time it runs; it check the integrity of the module each time via a
checksum; I gave up.)
So, it might be reasonable to report the Cygwin build issue to the Sys::CPU
maintainer, who presumably would know how to fix it correctly :-).
In the meantime, maybe we Utah folks can make Sys::CPU a conditional
dependency in the code, to make life easier for Cygwin users.
Thanks ---
Eric.
--
-------------------------------------------------------------------------------
Eric Eide <[email protected]> . University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX