Cygwin LLVM Install Errors

AFAICT these are valid errors.

Getting an error on the ‘make install’ for LLVM :-

make[2]: Entering directory /usr/build/llvm/tools/llvm-ar' llvm[2]: Installing Debug /usr/llvm/bin/llvm-ar /usr/bin/install: target /usr/llvm/bin/llvm-ar’ is not a directory
make[2]: *** [/usr/llvm/bin/llvm-ar] Error 1
make[2]: Leaving directory /usr/build/llvm/tools/llvm-ar' make[1]: *** [llvm-ar/.makeinstall] Error 2 make[1]: Leaving directory /usr/build/llvm/tools’
make: *** [install] Error 1

The directory ‘/usr/llvm/bin/llvm-ar’ does not exist.

Creating the llvm-ar directory and continuing I get another error :-

make[4]: Entering directory /usr/build/llvm/lib/Target/SparcV9/RegAlloc' llvm[4]: Installing Debug Object Library /usr/llvm/lib/LLVMSparcV9RegAlloc.o llvm[4]: Installing Debug Archive Library /usr/llvm/lib/libLLVMSparcV9RegAlloc.a ranlib: unable to rename '/usr/llvm/lib/libLLVMSparcV9RegAlloc.a' reason: Permission denied make[4]: *** [/usr/llvm/lib/libLLVMSparcV9RegAlloc.a] Error 1 make[4]: Leaving directory /usr/build/llvm/lib/Target/SparcV9/RegAlloc’
make[3]: *** [RegAlloc/.makeinstall] Error 2
make[3]: Leaving directory /usr/build/llvm/lib/Target/SparcV9' make[2]: *** [SparcV9/.makeinstall] Error 2 make[2]: Leaving directory /usr/build/llvm/lib/Target’
make[1]: *** [Target/.makeinstall] Error 2
make[1]: Leaving directory `/usr/build/llvm/lib’
make: *** [install] Error 1

Help !

Aaron

I can't reproduce these on GNU-Linux/x86. What platform are you on?

Reid.

Doh! Just read your subject line, you're on Cygwin.

Its probably due to a crappy version of the "install" program on Cygwin.
Could you do "make VERBOSE=1 install" in the tools directory and send me
the output?
Reid.

I think its my fault doing a 'make install' after 'make tools-only' rather than later after the 'make all' !

Aaron

Now I believe that I am getting the same error as I was getting last time I tried to build llvm-gcc.
It may possibly be my Cygwin instillation but am not sure.

makeinfo --split-size=5000000 -I ../../../src/llvm-gcc/gcc/doc -I ../../../src/
llvm-gcc/gcc/doc/include \
  -o ../../../src/llvm-gcc/gcc/doc/cpp.info ../../../src/llvm-gcc/gcc/doc/cpp.texi
' in @synindex.vm-gcc/gcc/doc/cpp.texi:49: Unknown index `vr' and/or `op
../../../src/llvm-gcc/gcc/doc/cpp.texi:4124: warning: @strong{Note...} produces
a spurious cross-reference in Info; reword to avoid that.
../../../src/llvm-gcc/gcc/doc//cppopts.texi:133: warning: @strong{Note...} produ
ces a spurious cross-reference in Info; reword to avoid that.
../../../src/llvm-gcc/gcc/doc//cppopts.texi:341: warning: @strong{Note...} produ
ces a spurious cross-reference in Info; reword to avoid that.
../../../src/llvm-gcc/gcc/doc/cpp.texi:3203: Cross reference to nonexistent node
Predefined Macros' (perhaps incorrect sectioning?).
../../../src/llvm-gcc/gcc/doc/cpp.texi:1405: Cross reference to nonexistent node
Prescan' (perhaps incorrect sectioning?).
../../../src/llvm-gcc/gcc/doc/cpp.texi:1063: Cross reference to nonexistent node
Headers' (perhaps incorrect sectioning?).
../../../src/llvm-gcc/gcc/doc/cpp.texi:577: Cross reference to nonexistent node
from previous versions' (perhaps incorrect sectioning?).
../../../src/llvm-gcc/gcc/doc/cpp.texi:572: Cross reference to nonexistent node
Operation' (perhaps incorrect sectioning?).
../../../src/llvm-gcc/gcc/doc/cpp.texi:230: Cross reference to nonexistent node
Mode' (perhaps incorrect sectioning?).
makeinfo: Removing output file `../../../src/llvm-gcc/gcc/doc/cpp.info' due to e
rrors; use --force to preserve.
make[1]: *** [../../../src/llvm-gcc/gcc/doc/cpp.info] Error 1
make[1]: Leaving directory `/usr/build/llvm-gcc/gcc'
make: *** [all-gcc] Error 2

Help again,

Aaron

Hi Aaron,

have you got any help on this?

Henrik

Hi Aaron,
have you got any help on this?

Henrik,

No. This is where I was stuck some months ago.

I do not know makeinfo so was not able to proceed any thurther than verifying the makeinfo statement did the same thing when done on the command line.

Basically I am stuck. I do not know whether it was my Cygwin configuration or something I have done or not done or whether it is a valid build error.

I did try MinGW several months ago but did not even get this far.

Aaron

Hi Aaron,

which version of makeinfo are you running?

Henrik.

which version of makeinfo are you running?

4.8

Hi Henrik,

The new release 1.5 has fixed that now. I am getting through to step 9 of the CFEBuildInst instructions.
But 'llvm-ranlib libiberty.a' is failing so is 'make check' :frowning:

Aaron

Hi,

But 'llvm-ranlib libiberty.a' is failing so is 'make check' :frowning:

'llvm-ranlib libiberty.a' is optional.

I don't know the status of make check on Cygwin. Perhaps Reid or Chris could tell us more about that?

Henrik

Unfortunately, I don't have a cygwin build environment any more. My disk
crashed on that laptop and it isn't worth the $ to fix it. So, I have no
idea about the "make check" issue. I have, however, in the past, had it
work for me.

Reid.