Hi Eric,

You are right, I installed older LLVM because building another thing (I can't 
remember what) made me to. Thanks for pointing out.

Any way, I built and installed LLVM3.3 and try configure again. It prompted for 
a number of Perl modules

that I successfully installed with cpan -i  command, except the Sys::CPU

checking for perl module Benchmark::Timer... ok
checking for perl module Exporter::Lite... ok
checking for perl module File::Which... ok
checking for perl module Getopt::Tabular... ok
checking for perl module Regexp::Common... ok
checking for perl module Sys::CPU... no

cpan came up with following message:

  CPAN.pm: Going to build M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Sys::CPU
Writing MYMETA.yml
cp CPU.pm blib/lib/Sys/CPU.pm
/usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5
.14/ExtUtils/typemap  CPU.xs > CPU.xsc && mv CPU.xsc CPU.c
Please specify prototyping behavior for CPU.xs (see perlxs manual)
gcc-4 -c    -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pi
pe -fstack-protector -DUSEIMPORTLIB -O3    -DVERSION=\"0.54\"  -DXS_VERSION=\"0.
54\"  "-I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE"   CPU.c
CPU.xs: In function 'XS_Sys__CPU_cpu_clock':
CPU.xs:349:5: error: unknown type name 'processor_info_t'
CPU.xs:350:48: error: request for member 'pi_state' in something not a structure
 or union
CPU.xs:350:62: error: 'P_ONLINE' undeclared (first use in this function)
CPU.xs:350:62: note: each undeclared identifier is reported only once for each f
unction it appears in
CPU.xs:351:26: error: request for member 'pi_clock' in something not a structure
 or union
CPU.xs:352:26: error: request for member 'pi_clock' in something not a structure
 or union
CPU.xs: In function 'XS_Sys__CPU_cpu_type':
CPU.xs:389:5: error: unknown type name 'processor_info_t'
CPU.xs:391:16: error: request for member 'pi_processor_type' in something not a
structure or union
Makefile:329: recipe for target `CPU.o' failed
make: *** [CPU.o] Error 1
  MZSANFORD/Sys-CPU-0.54.tar.gz
  /usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

Am I having too old Perl?

Regards,
Tuyen



>________________________________
> From: Eric Eide <[email protected]>
>To: Tuyen Hoang <[email protected]> 
>Cc: "[email protected]" <[email protected]> 
>Sent: Wednesday, July 3, 2013 6:23 PM
>Subject: Re: [creduce-dev] building C-reduce with cygwin
> 
>
>    Tuyen> Sorry, I probably mixed things up and remember wrong.  Anyway, I
>    Tuyen> re-installed clang, and successfully built LLVM, but 'configure'
>    Tuyen> failed on creduce-master.  Output from configure is in attached
>    Tuyen> TQHBuildLog.zip and config.log is also attached as zip file.
>
>Looking at the "config.log" you sent (thanks!), I see this error:
>
>  conftest.cpp:24:41: fatal error: llvm/IR/LLVMContext.h: No such file or
>  directory
>
>This suggests that you're trying to use an version of LLVM that is older than
>LLVM 3.3.
>
>Try this: /usr/local/bin/llvm-config --version
>
>What does it report?
>
>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
>
>
>

Reply via email to