Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: evbarm,armeb: distribution build fails with error "non-terminated string echo armcp... at source line 37"



On Fri, Jun 05, 2015 at 01:04:51AM +0300, Eddy Petri?or wrote:
> > This is from a here document AWK program in src/distrib/sets/sets.subr:
> >
> >                      if ("machine_cpu" in wanted)
> >                              wanted["machine_cpu=" "'"${MACHINE_CPU}"'"]
> = 1
> >
> > so the "echo arm" is ... wrong - something strange in your environment?
> 
> I'm building on Linux and I am using a script to make sure everything is in
> clean order.

I don't see what is wrong in the script and the quoting, still nbawk is
obviously passed something wrong:

non-terminated string echo armcp... at source line 37
 context is
                    wanted["machine_cpu=" "echo arm >>>
 <<<

MACHINE_CPU is set (in makeflist) by:

        a)
                MACHINE_ARCH="${OPTARG}"
                MACHINE_CPU="$(arch_to_cpu "${OPTARG}")"
                ;;

and arch_to_cpu comes from sets.subr:

# Print the ${MACHINE_CPU} for ${MACHINE_ARCH}=mach,
# as determined by <bsd.own.mk>.
#
arch_to_cpu()
{
        MACHINE_ARCH=${1} ${MAKE} -B -f- all <<EOMAKE
.include <bsd.own.mk>
all:
        @echo \${MACHINE_CPU}
EOMAKE
}


I don't see anything wrong here, so my wild guess would be a shell bug.
This all is run with HOST_SH, so probably bash in your build environment?

Martin


Home | Main Index | Thread Index | Old Index