[LLVMdev] Build problem, in com.h
Reid Spencer
reid at x10sys.com
Fri Jun 16 13:56:38 PDT 2006
Hi James,
You might find this document of help:
http://llvm.org/docs/CFEBuildInstrs.html
gccas is part of llvm, not llvm-gcc. It needs to exist and be in your
path before building llvm-gcc. As the CFEBuildInstrs.html indicate, you
need to
1. build llvm with "tools-only"
2. make sure $LLVM_OBJ_ROOT/Debug/bin is in your PATH
3. build llvm-gcc
4. build llvm with "install-bytecode"
Reid.
On Fri, 2006-06-16 at 13:26 -0700, James Supancic wrote:
> I am trying to compile the cfrontend for gcc3, not gcc4.
>
> I did ./configure --prefix=/opt/llvmgcc --enable-languages=c,c++
>
> After adding the --enable-languages flag I get
> "xgcc: installation problem, cannot exec `gccas': No such file or
> directory"
>
> It is true, I don't have gccas in my PATH, nor does the file gccas
> appear in my cfrontend directory.
>
> Is my configuration wrong, yet again, or do I need to get a copy of
> gccas?
>
> Thank you for your time,
> James Supancic
>
>
> On 6/16/06, Chris Lattner <sabre at nondot.org> wrote:
> On Fri, 16 Jun 2006, James Supancic wrote:
> > I am having some trouble getting llvm to build.
> > I found some strange stuff going on in gcc/f/com.*
>
> This sounds like you enabled the fortran frontend, which isn't
> supported.
> Please read the README.LLVM file in the root directory of the
> llvmgcc4
> source distro.
>
> -Chris
>
> > In com.h I find
> > ffeinfoKindType ffecom_gfrt_basictype ( ffecomGfrt ix);
> > yet, in com.c I see
> > ffeinfoBasicType ffecom_gfrt_basictype ( ffecomGfrt gfrt)
> >
> > I tried changing the line in com.h to
> > ffeinfoBasicType ffecom_gfrt_basictype ( ffecomGfrt ix);
> >
> > and then doing make clean && make
> > but I got a horde of link errors.
> >
> > In desperation I attempted the other obvious solution to the
> error....
> > I undid the change to com.h and changed the line in com.c to
> > ffeinfoKindtype ffecom_gfrt_basictype ( ffecomGfrt gfrt)
> >
> > This leads to more link errors. The errors appear to be the
> same as those I
> > got before. Therefor I think the link errors are unrelated
> to the problems
> > in com.*
> >
> > What is the proper definition of ffecom_gfrt_basictype?
> >
> > Is this a mistake, or is something wrong with my build
> system?
> >
> > http://llvm.org/docs/CFEBuildInstrs.html
> > tells me to do
> > make tools-only
> > (gmake=make on my host), but when I attempt to do so I
> receive an error
> > informing me that the target tools-only does not exist, the
> above problems
> > occur with a simple "make". Did someone update the Makefile
> but not the
> > documentation, did I download a corrupt version of
> cfrontend, is my "make"
> > broken, or something else entirely?
> >
> > Thank you for your time,
> > James Supancic
> >
> > On 6/16/06, James Supancic < arrummzen at gmail.com> wrote:
> >>
> >> Which version of gcc should be used to compile the
> cfrontend version 1.7?
> >>
> >> Thank you for your time,
> >> James Supancic
> >>
> >
>
> -Chris
>
> --
> http://nondot.org/sabre/
> http://llvm.org/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060616/ae0d3623/attachment.sig>
More information about the llvm-dev
mailing list