xfs
[Top] [All Lists]

Re: More on failing build of cmd/*

To: james rich <james.rich@xxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Subject: Re: More on failing build of cmd/*
From: "Nathan Scott" <nathans@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Feb 2001 09:30:45 -0400
In-reply-to: james rich <james.rich@m.cc.utah.edu> "More on failing build of cmd/*" (Feb 13, 10:08am)
References: <Pine.GSO.4.05.10102130953090.27116-100000@pipt.oz.cc.utah.edu>
Sender: owner-linux-xfs@xxxxxxxxxxx
hi,

On Feb 13, 10:08am, james rich wrote:
> Subject: More on failing build of cmd/*
> First I apologize for not keeping the same thread going here.  I'm on
> different machines today and can't use reply.
> 
> I wrote earlier:
> 
> > When I try to build anything in cmd/* the build fails.  I do:
> > 
> > autoconf
> > configure --prefix=/usr
> > make
> 
> I know 'make' should do all this but I wanted to specify --prefix (wasn't
> sure what the default is).
> 

/usr is the default for most things (not mkfs.xfs and xfs_repair).

> > Make dies with:
> > 
> > root@growler:/usr/src/linux-2.4-xfs/cmd/xfsprogs# make
> > === include ===
> > gcc: default: No such file or directory
> > make: *** [default] Error 1
> 

do you have an environment variable "MAKE" set to "gcc"?
I can reproduce your problem if I do this ...

xfsprogs 40> setenv MAKE gcc
xfsprogs 41> autoconf 
xfsprogs 42> ./configure 
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for tar... /bin/tar
checking for gzip... /bin/gzip
checking for rpm... /bin/rpm
checking for makedepend... /usr/X11R6/bin/makedepend
checking whether ln -s works... yes
checking for awk... /bin/awk
checking for sed... /bin/sed
checking for echo... /bin/echo
checking how to run the C preprocessor... gcc -E
checking for uuid/uuid.h... yes
checking for uuid_generate in -luuid... yes
checking for liblvm.a... no
checking for __psint_t ... no
checking for __psunsigned_t ... no
checking sizeof long... 4
checking sizeof pointer... 4
updating cache ./config.cache
creating ./config.status
creating include/builddefs
creating include/platform_defs.h
xfsprogs 43> perl -ne '/^MAKE\b/ && print' < include/builddefs
MAKE    = /usr/bin/gcc
xfsprogs 44> make
=== include ===
gcc: default: No such file or directory
make: *** [default] Error 1
xfsprogs 45> 


> I am using Slackware 7.1.  make --version = GNU Make version 3.79.  I had
> to link kgcc to gcc (egcs-2.91.66) to build the kernel (which built fine).

These versions should all (still) build fine.  If it turns
out that the above is what is biting you, then you'll need
to: (rm include/builddefs config.*; unsetenv MAKE; make)

> 
> The first rule in cmd/xfsprogs/Makefile is
> ...
> It looks like make is trying to build a file called 'default' which in

"default" is a make target not a file.

> cmd/xfsprogs/include/Makefile is the first rule:
> 
> default install :
> 
> the above line looks wrong?
> 

no, it looks OK to me.

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>