questions about installing llvm

Hi,

I tried to install LLVM in our server, but after successfully compiling it, the installation failed. The reported error is:

llvm[1]: Installing HTML documentation

/usr/dcs/software/supported/bin/ginstall: invalid option – C

Try `/usr/dcs/software/supported/bin/ginstall --help’ for more information.

gmake[1]: *** [install-html] Error 1

gmake[1]: Leaving directory `/home/software/llvm/docs’

gmake: *** [install] Error 1

I am wondering if some specific version of the install program is required. Please help me to check out what is going wrong here. Thanks!

Feng

/usr/dcs/software/supported/bin/ginstall is version 4.0, whereas Fedora
Core 1 (which is QUITE old) has /usr/bin/install version 5.0 .

Even install-4.5.3 has the -C switch. For now, manually change your
Makefile.config in your build directory to have the line

INSTALL := /usr/bin/install -c

instead of

INSTALL := /usr/dcs/software/supported/bin/ginstall -c

and you should be fine, assuming your /usr/bin/install is more recent.

In the future, we should allow a configure switch choose the install
program, and it might already do that with --with-install=[path], but I
am not sure and haven't checked.

Actually, Misha, that won't work.

The -C option is used directly in docs/Makefile. So the change will have
to go into docs/Makefile. Either that or upgrade install to version 5.

Reid.

Actually, Misha, that won't work.

Sorry, Reid, but I think it will, for the following reason:

I don't really know what the -c (lowercase) option does, but install
says it's ignored anyway, so that's irrelevant for GNU install. We're
talking about the -C option (uppercase).

The -C option is used directly in docs/Makefile. So the change will have
to go into docs/Makefile. Either that or upgrade install to version 5.

docs/Makefile uses $(INSTALL) -C (uppercase).

My point is that /usr/dcs/..../ginstall doesn't accept -C but
/usr/bin/install does.

Changing it in Makefile.config will do the trick.

You were advocating changing the INSTALL variable to use -c instead of
-C, so in docs/Makefile the command:

$(INSTALL) -C ...

would be expanded as:

/usr/bin/install -c -C ...

which still won't work.

Reid.

Okay, my bad. I didn't realize that /usr/bin/install was the *new*
version of install and would accept -C as an option.

Reid.

It works. Thanks!

However, although the configuration and installation process doesn't report
any error/warning, the llvmc cannot work. It just says: Unexpected unknown
exception occurred :frowning:

Do you have any clue about that?

Feng

Have you compiled and installed llvm-gcc/llvm-g++? llvmc is not a
compiler, it's just a compiler driver, so it expects all the tools to be
in the path (llvm-gcc, gccas, gccld, opt, etc.)

Furthermore, if llvmc does not work for you, just use llvm-gcc directly,
assuming the rest of llvm tools are in your path.

It works. Thanks!

However, although the configuration and installation process doesn't report
any error/warning, the llvmc cannot work. It just says: Unexpected unknown
exception occurred :frowning:

Do you have any clue about that?

Can you send us information on how to reproduce the bug? We'd like to get it fixed if possible. Are you using mainline CVS?

-Chris

Yes. I forgot to mention that the frontend (llvm-gcc, llvm-g++) works well
:slight_smile: I will try other tools later. Thanks!

Feng