All of lore.kernel.org
 help / color / mirror / Atom feed
* make install bug?
@ 2002-04-06 15:15 Dale Amon
  2002-04-06 15:34 ` Dale Amon
  2002-04-06 15:50 ` Keith Owens
  0 siblings, 2 replies; 6+ messages in thread
From: Dale Amon @ 2002-04-06 15:15 UTC (permalink / raw)
  To: linux-kernel

When building kernels for my servers I have always done this:

	make INSTALL_MOD_PATH=/usr/src/<target-hostname> modules_install

to dump all the modules into an easily tarballable directory 
to be scp'd to the target host.

However for some reason today it's tried to do a depmod on the 
kernel building machine:

make -C  arch/i386/lib modules_install
make[1]: Entering directory `/VNetLinux/linux-2.4.18/arch/i386/lib'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/VNetLinux/linux-2.4.18/arch/i386/lib'
cd /VNetLinux/scout/lib/modules/2.4.18; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /VNetLinux/scout -r 2.4.18; fi
depmod: *** Unresolved symbols in /VNetLinux/scout/lib/modules/2.4.18/pcmcia/3c575_cb.o
depmod:         pcibios_read_config_byte
depmod:         pcibios_write_config_word
depmod:         pcibios_read_config_dword
depmod:         pcibios_write_config_byte
depmod:         pcibios_write_config_dword
depmod:         pcibios_read_config_word
depmod: *** Unresolved symbols in /VNetLinux/scout/lib/modules/2.4.18/pcmcia/aha152x_cs.o
depmod:         print_msg
depmod:         scsi_command_size
depmod:         scsi_unregister_module
depmod:         scsicam_bios_param
	And so forth....


I'm not sure why this started happening, but it isn't nice
behavior at all. I'd call it a bug as I can't imagine why
I'd want a depmod to occur on the build machine.

Have I managed to tickle something that should not be 
happening?






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install bug?
  2002-04-06 15:15 make install bug? Dale Amon
@ 2002-04-06 15:34 ` Dale Amon
  2002-04-06 15:50 ` Keith Owens
  1 sibling, 0 replies; 6+ messages in thread
From: Dale Amon @ 2002-04-06 15:34 UTC (permalink / raw)
  To: linux-kernel

On Sat, Apr 06, 2002 at 04:15:31PM +0100, Dale Amon wrote:
> I'm not sure why this started happening, but it isn't nice
> behavior at all. I'd call it a bug as I can't imagine why
> I'd want a depmod to occur on the build machine.

Hmmm, I think I failed to engage brain before fingers. Sent
the files to a non-existant directory... which might be
the thing that tickled it to do the depmod?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install bug?
  2002-04-06 15:15 make install bug? Dale Amon
  2002-04-06 15:34 ` Dale Amon
@ 2002-04-06 15:50 ` Keith Owens
  1 sibling, 0 replies; 6+ messages in thread
From: Keith Owens @ 2002-04-06 15:50 UTC (permalink / raw)
  To: linux-kernel

On Sat, 6 Apr 2002 16:15:31 +0100, 
Dale Amon <amon@vnl.com> wrote:
>make[1]: Leaving directory `/VNetLinux/linux-2.4.18/arch/i386/lib'
>I'm not sure why this started happening, but it isn't nice
>behavior at all. I'd call it a bug as I can't imagine why
>I'd want a depmod to occur on the build machine.

depmod runs at build time as a courtesy, to build the modules.dep for
the initial boot, otherwise you get warning messages on the first boot
of a new kernel.  For cross compiling or building for a different
machine, you can turn depmod into a no-op with make DEPMOD=/bin/true.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* make install bug?
@ 2005-12-12 15:35 eschvoca
  2005-12-12 17:54 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: eschvoca @ 2005-12-12 15:35 UTC (permalink / raw)
  To: git

Using the latest git on "make prefix=/home/eschvoca/apps/git-0.99.9m
install" I get the following error:

make[1]: Entering directory `/home/eschvoca/downloads/git-0.99.9m/templates'
: no custom templates yet
install -d -m755 '/home/eschvoca/share/git-core/templates/'
(cd blt && tar cf - .) | \
(cd '/home/eschvoca/share/git-core/templates/' && tar xf -)
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
make[1]: *** [install] Error 2


I can fix the problem by changing templates/Makefile to the following:

install: all
    $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
    (cd blt && $(TAR) cf - . > /tmp/a.tar) | \
    (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install bug?
  2005-12-12 15:35 eschvoca
@ 2005-12-12 17:54 ` Junio C Hamano
  2005-12-16 15:06   ` eschvoca
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2005-12-12 17:54 UTC (permalink / raw)
  To: eschvoca; +Cc: git

eschvoca <eschvoca@gmail.com> writes:

> I can fix the problem by changing templates/Makefile to the following:
>
> install: all
>     $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
>     (cd blt && $(TAR) cf - . > /tmp/a.tar) | \
>     (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)

Here is my guess.  Could you try, from your interactive shell:

	$ (unset CDPATH; make install)

first without the above "fix" (your "fixed" pipe does not make
any sense --- what are the data passed between pipe upstream and
downstream?)?

If that makes the problem go away, then your environment is
broken --- my guess is that you are exporting CDPATH to
non-interactive scripts.  Don't do that.

I once googled for "CDPATH" and saw many "guide to unix" type
webpages talk about "CDPATH environment variable"; they are the
real culprit to cause this confusion in peoples' .bash_profile.
CDPATH might be a nice variable for interactive shells, but is a
horrible one if made environment.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install bug?
  2005-12-12 17:54 ` Junio C Hamano
@ 2005-12-16 15:06   ` eschvoca
  0 siblings, 0 replies; 6+ messages in thread
From: eschvoca @ 2005-12-16 15:06 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

You are right, CDPATH is the problem.  I am no longer exporting CDPATH.

e

On 12/12/05, Junio C Hamano <junkio@cox.net> wrote:
> eschvoca <eschvoca@gmail.com> writes:
>
> > I can fix the problem by changing templates/Makefile to the following:
> >
> > install: all
> >     $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
> >     (cd blt && $(TAR) cf - . > /tmp/a.tar) | \
> >     (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)
>
> Here is my guess.  Could you try, from your interactive shell:
>
>         $ (unset CDPATH; make install)
>
> first without the above "fix" (your "fixed" pipe does not make
> any sense --- what are the data passed between pipe upstream and
> downstream?)?
>
> If that makes the problem go away, then your environment is
> broken --- my guess is that you are exporting CDPATH to
> non-interactive scripts.  Don't do that.
>
> I once googled for "CDPATH" and saw many "guide to unix" type
> webpages talk about "CDPATH environment variable"; they are the
> real culprit to cause this confusion in peoples' .bash_profile.
> CDPATH might be a nice variable for interactive shells, but is a
> horrible one if made environment.
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-16 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-06 15:15 make install bug? Dale Amon
2002-04-06 15:34 ` Dale Amon
2002-04-06 15:50 ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2005-12-12 15:35 eschvoca
2005-12-12 17:54 ` Junio C Hamano
2005-12-16 15:06   ` eschvoca

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.