Displaying 9 results from an estimated 9 matches for "dragonegg_plugin".
2011 Sep 12
3
[LLVMdev] llvm-gfortran problems
...Sorry for the late reply. Using dragonegg worked well, thanks all!
Just as a note... I had to use llvm-ld during the link step because gfortran
could not link bitcode. Here's an example of the error shown when using
gfortran instead of llvm-ld:
$ ${GCC_4_5_0}/bin/gfortran hw.f -c -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so
-o hw.o -flto -emit-llvm -S
$ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
$ ${GCC_4_5_0}/bin/gfortran
-fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortran.a
hw.o -o hw
hw.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
$ file h...
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
...ll, thanks all!
> > Just as a note... I had to use llvm-ld during the link step because
> gfortran
> > could not link bitcode. Here's an example of the error shown when using
> > gfortran instead of llvm-ld:
> > $ ${GCC_4_5_0}/bin/gfortran hw.f -c
> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm -S
> > $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
> > $ ${GCC_4_5_0}/bin/gfortran
> >
> -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortran.a
> > hw.o -o hw
> > hw.o: file not recognized: File format not r...
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
...ply. Using dragonegg worked well, thanks all!
> Just as a note... I had to use llvm-ld during the link step because gfortran
> could not link bitcode. Here's an example of the error shown when using
> gfortran instead of llvm-ld:
> $ ${GCC_4_5_0}/bin/gfortran hw.f -c
> -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm -S
> $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
> $ ${GCC_4_5_0}/bin/gfortran
> -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortran.a
> hw.o -o hw
> hw.o: file not recognized: File format not recognized
> collect2: ld re...
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
...Just as a note... I had to use llvm-ld during the link step because
>> > gfortran
>> > could not link bitcode. Here's an example of the error shown when using
>> > gfortran instead of llvm-ld:
>> > $ ${GCC_4_5_0}/bin/gfortran hw.f -c
>> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm -S
>> > $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
>> > $ ${GCC_4_5_0}/bin/gfortran
>> >
>> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortran.a
>> > hw.o -o hw
>> > hw.o: file not...
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
...e llvm-ld during the link step because
> >> > gfortran
> >> > could not link bitcode. Here's an example of the error shown when
> using
> >> > gfortran instead of llvm-ld:
> >> > $ ${GCC_4_5_0}/bin/gfortran hw.f -c
> >> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm -S
> >> > $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
> >> > $ ${GCC_4_5_0}/bin/gfortran
> >> >
> >> >
> -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortran.a
> >> > hw.o -o hw...
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
...>> >> > gfortran
>> >> > could not link bitcode. Here's an example of the error shown when
>> >> > using
>> >> > gfortran instead of llvm-ld:
>> >> > $ ${GCC_4_5_0}/bin/gfortran hw.f -c
>> >> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm -S
>> >> > $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
>> >> > $ ${GCC_4_5_0}/bin/gfortran
>> >> >
>> >> >
>> >> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so ${GCC_4_5_0}/lib64/libgfortr...
2011 Sep 12
1
[LLVMdev] llvm-gfortran problems
...fortran
> >> >> > could not link bitcode. Here's an example of the error shown when
> >> >> > using
> >> >> > gfortran instead of llvm-ld:
> >> >> > $ ${GCC_4_5_0}/bin/gfortran hw.f -c
> >> >> > -fplugin=${DRAGONEGG_PLUGIN}/dragonegg.so -o hw.o -flto -emit-llvm
> -S
> >> >> > $ ${LLVM_2_9}/bin/opt -mem2reg hw.o -o hw.o
> >> >> > $ ${GCC_4_5_0}/bin/gfortran
> >> >> >
> >> >> >
> >> >> >
> -fplugin=${DRAGONEGG_PLUGIN}/dragon...
2011 Aug 31
0
[LLVMdev] llvm-gfortran problems
Hello
> I am not very familiar with Fortran programs. I saw a few programs that had
> a "MAIN" subroutine defined, some others that did not. Am I missing
> something while compiling the code? Is there a different way to compile
> bitcode (from Fortran programs) to a native binary?
For Fortran MAIN is indeed something similar to C main, but not
exactly the same.
You have to
2011 Aug 31
4
[LLVMdev] llvm-gfortran problems
Hello,
I have been trying to compile a few small programs [
http://www.esm.psu.edu/~ajm138/fortranexamples.html] using llvm-gfortran.
Since I run my own pass on the generated bitcode, I have had to split the
compilation process into using llvm-gfortran, opt and then llvm-ld (for
linking, as I do with C/C++ programs). For now, I'll drop the `opt'
statement. Here's what I see while