[Cygwin] llvm 'make install' build errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

[Cygwin] llvm 'make install' build errors

AaronNGray
Am back to the same llvm 'make install' errors as I had before :-
 
Two trivial ones, of uncreated directories :-
 
llvm[2]: Installing Debug /usr/llvm/bin/llvm-ranlib
/usr/bin/install: target `/usr/llvm/bin/llvm-ranlib' is not a directory
make[2]: *** [/usr/llvm/bin/llvm-ranlib] Error 1
make[2]: Leaving directory `/usr/build/llvm/tools/llvm-ranlib'
make[1]: *** [llvm-ranlib/.makeinstall] Error 2
make[1]: Leaving directory `/usr/build/llvm/tools'
make: *** [install] Error 1
 
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

Making the directories and rerunning 'make install' bypasses those for now.
 
And a more indepth one :-
 
/usr/bin/groff -Tps -man /usr/build/llvm/docs/CommandGuide/analyze.1 > /usr/buil
d/llvm/docs/CommandGuide/analyze.ps
troff: fatal error: can't open `/usr/build/llvm/docs/CommandGuide/analyze.1': No
 such file or directory
make[2]: *** [/usr/build/llvm/docs/CommandGuide/analyze.ps] Error 1
make[2]: Leaving directory `/usr/build/llvm/docs/CommandGuide'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/build/llvm/docs'
make: *** [install] Error 1
 
This is where I was with llvm pre version 1.5.
 
help,
 
Aaron
 

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
Aaron,

That looks to me like the "install" program on your platform isn't quite
up to snuff. It should be doing a command like:

/usr/bin/install -c  -m 0755  \
/proj/llvm/build/Debug/bin/llvm-ranlib /proj/install/bin/llvm-ranlib

Its not supposed to create an llvm-ranlib directory, the second argument
is the name of the file to create.  This works fine on linux.

Can you "make TOOL_VERBOSE=1 -C tools install" and send me some of the
output. I'd like to know what install is doing on Cygwin.

Thanks,

Reid.

On Thu, 2005-05-19 at 18:29 +0100, Aaron Gray wrote:

> Am back to the same llvm 'make install' errors as I had before :-
>  
> Two trivial ones, of uncreated directories :-
>  
> llvm[2]: Installing Debug /usr/llvm/bin/llvm-ranlib
> /usr/bin/install: target `/usr/llvm/bin/llvm-ranlib' is not a
> directory
> make[2]: *** [/usr/llvm/bin/llvm-ranlib] Error 1
> make[2]: Leaving directory `/usr/build/llvm/tools/llvm-ranlib'
> make[1]: *** [llvm-ranlib/.makeinstall] Error 2
> make[1]: Leaving directory `/usr/build/llvm/tools'
> make: *** [install] Error 1
>  
> 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
>
> Making the directories and rerunning 'make install' bypasses those for
> now.
>  
> And a more indepth one :-
>  
> /usr/bin/groff -Tps -man /usr/build/llvm/docs/CommandGuide/analyze.1
> > /usr/buil
> d/llvm/docs/CommandGuide/analyze.ps
> troff: fatal error: can't open
> `/usr/build/llvm/docs/CommandGuide/analyze.1': No
>  such file or directory
> make[2]: *** [/usr/build/llvm/docs/CommandGuide/analyze.ps] Error 1
> make[2]: Leaving directory `/usr/build/llvm/docs/CommandGuide'
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/usr/build/llvm/docs'
> make: *** [install] Error 1
>  
> This is where I was with llvm pre version 1.5.
>  
> help,
>  
> Aaron
>  
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
>Can you "make TOOL_VERBOSE=1 -C tools install" and send me some of the
>output. I'd like to know what install is doing on Cygwin.

Okay, hope this helps.

Where do I get an uptodate install script ?

Cheers,

Aaron

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

installoutput.txt (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
In reply to this post by Reid Spencer
Reid,

Looks like the "make TOOL_VERBOSE=1 -C tools install" was fine.

I have got :-

    install (GNU coreutils) 5.3.0

The copyright is 2005 so I would have thought it would be allright ???

Thanks,

Aaron



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
Okay, this is totally bizarre.

Your "make TOOL_VERBOSE=1 install" output was perfect, no errors and all
the commands look the way I'd expect them to look.

My version of install is 5.2.1, older than yours.But I'd expect 5.3
would not change such basic functionality.

When you do "make install" without the TOOL_VERBOSE=1, you get the
errors? I don't understand how that's possible. ALl that TOOL_VERBOSE=1
does is turn "$(Verb)" from @ to empty so that lines in the makefile
rules will print out.

Reid.

On Thu, 2005-05-19 at 19:17 +0100, Aaron Gray wrote:

> Reid,
>
> Looks like the "make TOOL_VERBOSE=1 -C tools install" was fine.
>
> I have got :-
>
>     install (GNU coreutils) 5.3.0
>
> The copyright is 2005 so I would have thought it would be allright ???
>
> Thanks,
>
> Aaron
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
Reid,

I think it is the first time it is run that the errors occcur !?

Not sure but that would seem logical.

Aaron


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
No, I don't think so. The "bin" directory definitely gets created first
as there is a rule for it in Makefile.rules and appropriate
dependencies. Also, the error message seems to indicate that "install"
wants to create a directory, not create a file as it should. There's no
such directory as <install_path>/bin/llvm-ar !

Reid.

On Thu, 2005-05-19 at 20:49 +0100, Aaron Gray wrote:

> Reid,
>
> I think it is the first time it is run that the errors occcur !?
>
> Not sure but that would seem logical.
>
> Aaron
>
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
In reply to this post by AaronNGray
Aaron,

Please give the attached Makefile.rules a shot. I changed the way the
install directories are built to match all the other kinds of
directories. Not sure this will help, but its worth a shot.

Reid.

On Thu, 2005-05-19 at 20:49 +0100, Aaron Gray wrote:

> Reid,
>
> I think it is the first time it is run that the errors occcur !?
>
> Not sure but that would seem logical.
>
> Aaron
>
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

Makefile.rules (60K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
In reply to this post by Reid Spencer
>No, I don't think so. The "bin" directory definitely gets created first
>as there is a rule for it in Makefile.rules and appropriate
>dependencies. Also, the error message seems to indicate that "install"
>wants to create a directory, not create a file as it should. There's no
>such directory as <install_path>/bin/llvm-ar !

Ah, I see. What I am getting is lli as lli without the .exe, same for
everything except llvm-ranlib and llvm-ar which both are directories with
.exe files in them !

Maybe I should look at the makefile and/or possibly use the same version of
install.sh as you are using ???

Thanks for the support,

Aaron


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
The rules for building llvm-ar and llvm-ranlib are identical to the
rules for building all other tools so I don't know why the makefiles
would single those two out.

Reid

On Thu, 2005-05-19 at 21:31 +0100, Aaron Gray wrote:

> >No, I don't think so. The "bin" directory definitely gets created first
> >as there is a rule for it in Makefile.rules and appropriate
> >dependencies. Also, the error message seems to indicate that "install"
> >wants to create a directory, not create a file as it should. There's no
> >such directory as <install_path>/bin/llvm-ar !
>
> Ah, I see. What I am getting is lli as lli without the .exe, same for
> everything except llvm-ranlib and llvm-ar which both are directories with
> .exe files in them !
>
> Maybe I should look at the makefile and/or possibly use the same version of
> install.sh as you are using ???
>
> Thanks for the support,
>
> Aaron
>
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
Actually, I just found out why. Remove the space from the end of the
TOOLNAME line in llvm-ar and llvm-ranlib Makefiles. This is what's
causing it, there's a space between "llvm-ar" and ".exe"

I'll patch the makefiles when UIUC's CVS server isn't so sluggish.

Reid

On Thu, 2005-05-19 at 13:45 -0700, Reid Spencer wrote:

> The rules for building llvm-ar and llvm-ranlib are identical to the
> rules for building all other tools so I don't know why the makefiles
> would single those two out.
>
> Reid
>
> On Thu, 2005-05-19 at 21:31 +0100, Aaron Gray wrote:
> > >No, I don't think so. The "bin" directory definitely gets created first
> > >as there is a rule for it in Makefile.rules and appropriate
> > >dependencies. Also, the error message seems to indicate that "install"
> > >wants to create a directory, not create a file as it should. There's no
> > >such directory as <install_path>/bin/llvm-ar !
> >
> > Ah, I see. What I am getting is lli as lli without the .exe, same for
> > everything except llvm-ranlib and llvm-ar which both are directories with
> > .exe files in them !
> >
> > Maybe I should look at the makefile and/or possibly use the same version of
> > install.sh as you are using ???
> >
> > Thanks for the support,
> >
> > Aaron
> >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > [hidden email]         http://llvm.cs.uiuc.edu
> > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
>Actually, I just found out why. Remove the space from the end of the
>TOOLNAME line in llvm-ar and llvm-ranlib Makefiles. This is what's
>causing it, there's a space between "llvm-ar" and ".exe"

Ahh, great, thanks alot.

I do not really feel upto looking into makefiles yet as I don't really know
automake, configure scripts, etc, etc

>I'll patch the makefiles when UIUC's CVS server isn't so sluggish.

Okay, I'm working from the 1.5 release at the moment. I will move to
checking the CVS Cygwin build once the groff error is solved. I believe I
found another error in the post 1.5 "fork" CVS before the 1.5 release :(

Thanks for solving that. I do not mind doing the Cygwin builds, although I
wish I had updated the RAM on this machine to 1GByte as the whole build
process takes over three hours. It would be good to workout how to do
non-debug builds as that would speed up the linking, which is particularly
slow.

I don't want to be a slave driver but any thoughts on the groff error ???:)

Aaron


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
On Thu, 2005-05-19 at 22:34 +0100, Aaron Gray wrote:

> I do not really feel upto looking into makefiles yet as I don't really know
> automake, configure scripts, etc, etc
>
Aaron, its trivial. Open up tools/llvm-ar/Makefile in an editor. Go to
the TOOLNAME line, delete the space at the end of the line, save the
file, rebuild.

> >I'll patch the makefiles when UIUC's CVS server isn't so sluggish.

The patches are committing right now, albeit slowly.

>
> Okay, I'm working from the 1.5 release at the moment. I will move to
> checking the CVS Cygwin build once the groff error is solved. I believe I
> found another error in the post 1.5 "fork" CVS before the 1.5 release :(

Not sure what you mean by that.

>
> Thanks for solving that. I do not mind doing the Cygwin builds, although I
> wish I had updated the RAM on this machine to 1GByte as the whole build
> process takes over three hours. It would be good to workout how to do
> non-debug builds as that would speed up the linking, which is particularly
> slow.

Yeah, cygwin's a bit of a pig. To do a release build, just do:

make ENABLE_RELEASE=1

that's all there is to it.

You might want to take a gander at

http://llvm.cs.uiuc.edu/docs/MakefileGuide.html

>
> I don't want to be a slave driver but any thoughts on the groff error ???:)

Nope, because I haven't seen it on the list. Can you repost?

Reid

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

AaronNGray
>Aaron, its trivial. Open up tools/llvm-ar/Makefile in an editor. Go to
>the TOOLNAME line, delete the space at the end of the line, save the
>file, rebuild.

okay, done that, just got to rebuild .... 2 hours later ... :)

>The patches are committing right now, albeit slowly.

Okay I will check the CVS build tomorrow.


>> Okay, I'm working from the 1.5 release at the moment. I will move to
>> checking the CVS Cygwin build once the groff error is solved. I believe I
>> found another error in the post 1.5 "fork" CVS before the 1.5 release :(
>
> Not sure what you mean by that.

The CVS post the 1.5 freeze has a possible cygwin build error I bumped in
to.

>> Thanks for solving that. I do not mind doing the Cygwin builds, although
>> I
>> wish I had updated the RAM on this machine to 1GByte as the whole build
>> process takes over three hours. It would be good to workout how to do
>> non-debug builds as that would speed up the linking, which is
>> particularly
>> slow.
>
>Yeah, cygwin's a bit of a pig.

Yep.

I should have my Linux laptop working but it is stuck with Fedora Core 1 386
build and is too damb slow with too little RAM (256MB), plus I have
forgotten the password !!! Have to get Core 3 and some hand me down RAM from
this machine when I update it.

>To do a release build, just do:
>   make ENABLE_RELEASE=1
>that's all there is to it.

Okay.

>You might want to take a gander at
>http://llvm.cs.uiuc.edu/docs/MakefileGuide.html

okay

>> I don't want to be a slave driver but any thoughts on the groff error
>> ???:)
>Nope, because I haven't seen it on the list. Can you repost?

I'll do it in a separate post ...

Aaron


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
On Thu, 2005-05-19 at 23:06 +0100, Aaron Gray wrote:

> okay, done that, just got to rebuild .... 2 hours later ... :)

In this case, you only need to rebuild the two tools. You can do that
from the top level build directory with:

make -C tools/llvm-ar
make -C tools/llvm-ranlib

That should cut the 2 hours down to minutes. :)

Reid

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Misha Brukman
In reply to this post by Reid Spencer
On Thu, May 19, 2005 at 02:50:54PM -0700, Reid Spencer wrote:
> Yeah, cygwin's a bit of a pig. To do a release build, just do:
> make ENABLE_RELEASE=1

Actually, it's "make ENABLE_OPTIMIZED=1".  Perhaps it should also allow
ENABLE_RELEASE=1 as a synonym.

Note that if you run ./configure the usual way, you *always* have to run
"make ENABLE_OPTIMIZED=1" to build, and if you ever run just "make" it
will happily do a debug build for you.  Note that the objdir can hold 3
separate build trees for the same source code: Debug, Release, and
Profile, with those subdirectory names.

To make life easier for yourself, run "configure --enable-optimized" and
it will then default to ALWAYS building release mode, assuming you don't
want debug mode at all.

This is documented here:
http://llvm.cs.uiuc.edu/docs/GettingStarted.html#config

Personally, I think --enable-optimized is a strange name, because why
would anyone want to "disable" optimization? :)  Maybe it should be
something like --build-optimized, --build-profile, and --build-debug, or
even --build={opt,prof,debug} since it's a 3-way switch, and you can't
pick and choose more than one of them at a time.

--
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [Cygwin] llvm 'make install' build errors

Reid Spencer
On Thu, 2005-05-19 at 18:04 -0500, Misha Brukman wrote:
> On Thu, May 19, 2005 at 02:50:54PM -0700, Reid Spencer wrote:
> > Yeah, cygwin's a bit of a pig. To do a release build, just do:
> > make ENABLE_RELEASE=1
>
> Actually, it's "make ENABLE_OPTIMIZED=1".  Perhaps it should also allow
> ENABLE_RELEASE=1 as a synonym.

Shows you how long its been since I've done a release build :)

> Personally, I think --enable-optimized is a strange name, because why
> would anyone want to "disable" optimization? :)  Maybe it should be
> something like --build-optimized, --build-profile, and --build-debug, or
> even --build={opt,prof,debug} since it's a 3-way switch, and you can't
> pick and choose more than one of them at a time.

I'd recommend (and have long thought about):

--build-mode={opt,prof,debug,...}

There doesn't need to be only three. They really should be a set so that
you could do "optimized debug" or "profiled debug" or "profiled
optimized", etc. There might also be some other types of builds that
someone would want but I can't think of any right now. Anyhow, this is
in my notes for separating the makefile system to its own project.

Reid.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

signature.asc (196 bytes) Download Attachment