GNU bug report logs - #32866
cross-compiling grep and changing $PATH

Previous Next

Package: grep;

Reported by: Barret Rhoden <brho <at> cs.berkeley.edu>

Date: Fri, 28 Sep 2018 18:49:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barret Rhoden <brho <at> cs.berkeley.edu>
To: bug-grep <at> gnu.org
Subject: cross-compiling grep and changing $PATH
Date: Fri, 28 Sep 2018 14:37:27 -0400
Hi -

Not sure if this is a bug or something I'm doing wrong, but when I
cross-compile grep (3.1) for another system where the binaries do not
run on the host, the make output will have a couple of these:

/bin/sh: ./src/grep: No such file or directory

It looks like the newly built grep is being used, but it won't run on
the host.  This looks like it is from cfg.mk:

export PATH := $(builddir)/src$(PATH_SEPARATOR)$(PATH)

It doesn't seem particularly harmful, but maybe that PATH change should
depend on whether it's a cross build or not.

Thanks,

Barret




This bug report was last modified 6 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.