Build problem, in com.h

I am having some trouble getting llvm to build.
I found some strange stuff going on in gcc/f/com.*

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

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

Which version of gcc should be used to compile the cfrontend version 1.7?

Thank you for your time,
James Supancic

-Chris

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

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.