[LLVMdev] compiling the full SPEC CPU2000 suite to LLVM bytecode
Chris Lattner
sabre at nondot.org
Wed Aug 30 14:04:10 PDT 2006
On Wed, 30 Aug 2006, Kenneth Hoste wrote:
>> I use NAG with llvm-gcc4. What sort of errors do you get? Did you
>> configure llvm-test with the appropriate flags to find it?
> Yes, I did. llvm-test is configured as follows: (in /work/LLVM/1.8/
> llvm/project/llvm-test):
> ./configure --with-spec2000=/work/SPEC_CPU2000_1.3_src/benchspec --
> without-f2c --with-f95-bin=/work/NAG_f95/bin --with-f95-lib=/work/NAG_f95/lib
> --with-f95-inc=/work/NAG_f95/lib --with-llvmsrc=/work/LLVM/1.8/llvm
> --with-llvmobj=/work/LLVM/1.8/llvm
What does this print?
$ grep F95 .../projects/llvm-test/Makefile.config
?
> I then cd into llvm-test/External/SPEC and run make to compile the benchmarks
> to LLVM bytecode. Make stops with the following error messages:
>
> /work/SPEC_CPU2000_1.3_src/benchspec/CFP2000/189.lucas/src/
> lucas_distrib_spec.f90:2995: error: syntax error before ‘(’ token
Very strange. Have you *looked* at the file? Does it looks reasonable?
What's going on on that line?
Have you tried to debug this at all?
> Any further suggestions what might be wrong are welcome... Especially the
> /lib/NAGWare/... part puzzles me.. I did show with configure where the
> NAGWare lib dir is located, so why this error?
I don't know, maybe your Makefile.config entries will shed light on this.
>> > Also, with the new gcc4 frontend, it seems the Fortran issue will
>> > disappear in the near future (with the use of gfortran). Is that
>> > correct? Or will there
>> > be other problems?
>> Someone needs to do the work to test gfortran and fix any problems it runs
>> into. I'm not aware of anyone doing this, though it's probably not hard.
>>
>
> So, in the future it will be possible to use gcc/g++/gfortran to generate
> LLVM bytecode?
Yes, if someone does the work.
> If you can give me more specific details on how to test gfortan to emit llvm
> bytecode, I'll be glad to try it. I'm not all that familiar with LLVM at all,
> but if I can find the time (which I won't in the next few weeks), I'll be
> glad to help.
I don't have any specific details to give you, as I haven't tried it
before. I would suggest getting LLVM CVS HEAD, llvm-gcc SVN head, and
then configuring llvm-gcc with gfortran enabled. See what works and what
doesn't, debug, fix, submit patch, repeat.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list