You are not logged in.

#1 2009-07-06 02:29:24

Daemonjax
Member
Registered: 2009-07-02
Posts: 48

makedepend: command not found

What package is this in?  I can't find it...  I have everything I can think of installed onto this computer I'm using for compiling.... first time I ran into a makedepend program... never heard of it before big_smile


Anyways, I spent some time googling, and for other distributions it's part of make or x11-devel packages... 

No such luck in Arch.  So where is it?  Googling it results in posts dating from 1999 to 2002 era.  Is this something that's so old it's no supported?  If so... why is it required to build the latest mesa build from source?

Last edited by Daemonjax (2009-07-06 02:37:46)

Offline

#2 2009-07-06 02:49:23

Zerathidune
Member
Registered: 2007-02-25
Posts: 102

Re: makedepend: command not found

I've never heard of an executable called makedepend (sounds like it's from before my time,) but I just built mesa successfully without it for testing purposes. How are you attempting to compile it and why?

Offline

#3 2009-07-06 02:58:42

Daemonjax
Member
Registered: 2009-07-02
Posts: 48

Re: makedepend: command not found

Thanks for the reply!

I'm trying to get DRI working with my mach64 video card (http://bbs.archlinux.org/viewtopic.php? … 32#p580232)...  It's not working, and I think it's mesa.  So, I used:

git clone git://git.freedesktop.org/git/mesa/mesa
cd mesa
./autogen.sh --prefix=/opt/gfx-test --with-driver=dri --disable-glut
./configure (maybe not necessary after autogen, but whatever)
vi /configs/linux-dri-x86 (so I can target the mach64 drivers and not have to make all of them)
make realclean (it forces me to)
make linux-dri-x86

.
.
.
makedepend: Command not found

.
.
.
make[1]: Leaving directory '/root/mesa'
make: *** [linux-dr-x86] Error 2

<back to prompt>

It really appears to be some binary executable that I'm supposed to have... haha.  Locate confirms I do not have a makedepend file on my system.

Last edited by Daemonjax (2009-07-06 03:05:04)

Offline

#4 2009-07-06 03:09:48

Zerathidune
Member
Registered: 2007-02-25
Posts: 102

Re: makedepend: command not found

You shouldn't need the git version of mesa to get dri working; mach64 has been supported for some time. more likely the problem is with the kernel. see this:

http://wiki.archlinux.org/index.php/Mach64

Offline

#5 2009-07-06 03:16:49

Daemonjax
Member
Registered: 2009-07-02
Posts: 48

Re: makedepend: command not found

Zerathidune wrote:

You shouldn't need the git version of mesa to get dri working; mach64 has been supported for some time. more likely the problem is with the kernel. see this:

http://wiki.archlinux.org/index.php/Mach64

Yep... that's outdated... no reason to recompile the kernel to disable drm module support (you can just replace them)... Perhaps when that was written, drm was compiled in.

But, of course I did recompile and disabled modular drm support (just incase).

That's not the problem...  hohum.


Well... if I'm stuck at this point, I may as well start over on my target machine... perhaps some library got corrupted... can't trust the filesystems these days wink Sometimes I feel like running with ext2.

Last edited by Daemonjax (2009-07-06 03:25:08)

Offline

#6 2009-07-06 03:34:45

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: makedepend: command not found

If you really need mesa-git, try the package in the AUR. From your post it seems that you're trying to install it manually which is a big no-no on Arch. There is almost never any good reason to do that and it will just lead to system clutter and problems with conflicting and leftover files.

As for "makedepend", your first post made me think that you were confusing a PKGBUILD's makedepends with an actual program called "makedepend", but your second post seems like whatever you're building really is trying to call "makedepend". Where did you get those commands from? What line is actually calling "makedepend"? (use "grep -r --color makedepend *" in the directory to find the line)

Take some time to read up on the following too:
http://wiki.archlinux.org/index.php/Makepkg
http://wiki.archlinux.org/index.php/Bui … Arch_Linux
http://wiki.archlinux.org/index.php/PKGBUILD
http://wiki.archlinux.org/index.php/AUR


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2009-07-06 04:03:02

Daemonjax
Member
Registered: 2009-07-02
Posts: 48

Re: makedepend: command not found

Thanks for the reply, Xyne!

Yeah... I know I shouldn't have to compile from git, but when it's broken I can't help but try and fix it.  Regarding the clutter and leftover files, I have a seperate development PC for the dirty work... kinda like cross-compiling... but not wink  Then I just use what I need on the target machine.

The make commands are from x.org and freedesktop.org... AFAIK those really are the commands used to build mesa with dri support.

http://www.x.org/wiki/Development/git
http://dri.freedesktop.org/wiki/Buildin … 5fae2545f6

Now, regarding using AUS and PKGBUILD... I think they're great concepts, but I'm not running any script until I read it thoroughly and understand every line... sounds prudent, right?   You either understand what you're doing,  or you don't...

So, after reading and understanding the PKGBUILD script, exactly why do I need them anymore?  Or even run them directly? There's nothing magical about scripts, and they do have their uses.  So... it's great that it exists, I do download them and read them to see how it's done, but after that, I do my own research and just type out the needed commands myself.  I learn so much that way!  Sure, mistakes are made along the way, but oh wells.

That being said, I will check out the mesa-git PKGBUILD script!

And thanks so much for advising to grep for the line! Hahaha... there's a line in the output that clears things up (Google failed!):

You will need the makedepend utility which is part of the mesa project
git clone git://anongit.freedesktop.org/git/xorg/util/makedepend

!!!

Last edited by Daemonjax (2009-07-06 04:04:11)

Offline

#8 2009-07-06 04:46:36

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: makedepend: command not found

Aside from the BSD-like init system which they patch into the kernel, pacman is basically what defines Arch. I really can't understand why you would not want to use pacman to keep track of what's on your system and deal with dependencies. Sure, you can handle everything from dependency resolution to installation and beyond manually, but then you would probably be happier with Gentoo or even LFS.

As for not running scripts that you don't understand, I would say that it's context dependent. Also, if you haven't read and understood the full source files for everything from the kernel up, then it's an ultimately inconsistent ideal with completely arbitrary outlines. After all, according to what you've posted, you were running makefiles that you downloaded from some websites without having read them yourself (you would have seen the "makedepend" command etc) and obviously didn't understand what they were doing, so it clearly is a matter of trust. If you trust the Arch devs enough to install and run their system, then why would you not use the tools that they provide as part of that system? I find that very strange because I strongly doubt that you have read through all of the patches that they've applied to the kernel, let alone the millions of lines of code in the kernel itself.

In this case, and I'm sorry if I'm wrong, it doesn't seem that you have a real handle on what the AUR is or what makepkg and pacman do. It seems that you're trying to drive a nail in with a dirty rock while someone is offering you a hammer. If you really want to do it that way then that's completely up to you and I won't try to stop you, but if it's just because you don't see the full utility of the tool then that's something else. You should at least use those tools as guidelines for achieving the goal which they do. There are times when doing everything yourself from scratch is a great way to learn something and gain a deeper understanding of it and then there are times when all your doing is wasting your own time.

Anyway, I'm glad I could help and I hope you get everything working the way you want it to. Good luck!


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2009-07-06 05:35:59

Daemonjax
Member
Registered: 2009-07-02
Posts: 48

Re: makedepend: command not found

Oh, haha, I think pacman's great... and I do use pacman, of course!  I like it just as much as debian's apt-get.

It's ok if you find me strange.  Sure it's a matter of trust... Sure, I trust the maintainers of Arch... that doesn't that trust has to extend any further (i.e. AUS).  I try to keep my circle of trust as small as possible, and even then at arms length... I also carry a knife (just in case) tongue  And I don't think comparing a 100 line script to millions of lines of code is a fair analogy.  Gentoo and LFS are too hardcore for me right now big_smile Maybe one day when I'm old and gray!  Or, hopefully, I'll still be using Archlinux!

In any case, thanks for your help regarding using grep!  I was able to compile mesa from git and now I have DRI working! 

I'll try and be useful and pinpoint exactly which arch package needs to be updated (I'd say reversion, but that might not be the arch way big_smile)... my guess right now is... atleast whichever one has the mach64_dri.so file... since the one I compiled has a very different size than the arch version big_smile  So.... off the top of my head... that's the xf86-video-mach64 package (but it might not be... I'm not entirely sure exactly what files are in which packages).  So, I should have more information for those who care tomorrow.

UPDATE: It looks like it's the /usr/lib/libGL* files causing the problems... and those are in Arch's "mesa" package.  Of course, when you compile mesa, you also get the mach64_dri.so file (which is in the xf86-video-mach64 package)... I peeked inside that last one, and saw that it also includes the mach64_drv.so driver file... that one may be ok (it's not originally part of mesa)   I updated pretty much everything from git, and it works, but I'm sure there's some steps I could skip.

Last edited by Daemonjax (2009-07-06 06:34:11)

Offline

#10 2009-07-30 13:13:42

Synss
Member
From: Germany
Registered: 2009-04-14
Posts: 15

Re: makedepend: command not found

makedepend, you probably see it in a makefile.

http://en.wikipedia.org/wiki/Makedepend
http://www.xfree86.org/current/makedepend.1.html

what is the exact line? If it is something approaching
makedepend $(INC) -f makedep $(SRCS)
replace it with something similar to
$(CC) $(INC) -M $(SRCS) > makedep

good luck.

Offline

Board footer

Powered by FluxBB