tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: nbawk: non-terminated string echo x86_6... at source line 73
On 21 November 2017 at 20:22, Robert Elz <kre%munnari.oz.au@localhost> wrote:
> Date: Tue, 21 Nov 2017 20:01:01 -0500
> From: Andrew Cagney <andrew.cagney%gmail.com@localhost>
> Message-ID: <CAJeAr6sgeuNJx3O8ScBGtn0RQNk68nt0m8AyBy10GEXsZPdD=A%mail.gmail.com@localhost>
>
> | however, strangely, with #!/bin/sh, it results in:
> |
> | $ MAKE=nbmake PATH=/home/netbsd/hg/tools/bin:$PATH /bin/sh ./tst
> | ./tst: line 4: .: sets.subr: file not found
>
> Your earlier config showed /usr/bin/sh as the path to the shell (HOST_SH)
> it was using, so you'd probably want to try "#! /usr/bin/sh" instead
Ah, I did, same effect, yes everything is linked:
$ l$ ls -l /bin /usr/bin/sh /usr/bin/bash
lrwxrwxrwx 1 root root 7 Feb 10 2017 /bin -> usr/bin
-rwxr-xr-x 1 root root 1136624 Aug 8 07:03 /usr/bin/bash
lrwxrwxrwx 1 root root 4 Aug 8 07:03 /usr/bin/sh -> bash
and yes, typing ./script is so en-grained, I didn't notice it was
missing. With that fixed:
$ MAKE=/home/netbsd/hg/tools/bin/nbmake
PATH=/home/netbsd/hg/tools/bin:$PATH ./tst
mips
$ cat tst
#!/usr/bin/sh
rundir=.
. ./sets.subr
arch_to_cpu mipsel
> But that line also shows /bin/sh ? Do you have both, are they the same?
>
> | BASH_FUNC_module%%=
> | BASH_FUNC_scl%%=
>
> Is one (or both) of those sh's bash ?
>
> | For what its worth, forcing HOST_SH to /bin/bash didn't help.
>
> No, I don't think it is the shell (whichever shell) that is causing
> the problem - the "echo ..." line would be output from make if anything,
> almost as if the "@' prefix on the line (suppress output of the command)
> was being ignored for some reason.
Ah, true. Something in the environment affecting make.
(I'm getting all e-mail since it goes via the list)
Home |
Main Index |
Thread Index |
Old Index