Solaris build error: Bad string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
While building qemu2.12.0 on a Sun Oracle Enterprise M3000 SPARC64 VII running Solaris 10U11, opencsw toolchain, gcc 7.3.0, and python 3.3.6 I get:
# gmake
mkdir -p dtc/libfdt
mkdir -p dtc/tests
Bad string
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP convert-
DEP /export/
DEP dtc-parser.tab.c
DEP dtc-lexer.lex.c
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
DEP /export/
Bad string
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_rw.o
CC libfdt/
CC libfdt/
CC libfdt/
CC libfdt/
AR libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/
a - libfdt/
a - libfdt/
a - libfdt/
ar: creating libfdt/libfdt.a
ar: writing libfdt/libfdt.a
...
gmake then completes, returning just a "#" prompt and no error messages. However, no executable is created. Apparently, "Bad string" is the problem, but it is unclear what that means and where the two instances of it are coming from. A web search for this problem returned nothing.
Changed in qemu: | |
status: | New → Invalid |
[Solved]
There's nothing like going public with a problem to find the answer yourself shortly after. In case it helps someone else in the future, it turns out that the Makefile in dtc/ contains the following line:
HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ |msys\) .*/\1/' )
sed -e 's/\(cygwin\
Apparently there's something in there that gmake doesn't like which causes it to emit "Bad string" so I just replaced that line with:
HOSTOS=SunOS
(a call to uname -s from the command line returns SunOS) and I'm no longer getting the "Bad string" from gmake. (I'm getting soemthing else now but that's a different matter).