-----Original Message-----
From: Philip Nienhuis [mailto:address@hidden
Sent: Friday, June 21, 2013 8:49 AM
To: John D
Cc: John W. Eaton; Octave Maintainers List
Subject: Building Octave w MXE-built dependencies (2)
John D, did I read you correctly that:
Also, just for info, I created a script in tools/set_mxe_env.sh you
can
run as source tools/set_mxe_env.sh, that sets all the bin/lib/config
paths that may help.
I created it for compiling the octave_hg versions of code in mingw
after having a working mxe-octave.
It isn't much use for anything except for native mingw builds.
... that script is meant to aid exactly that purpose?
Yes the script is for that - I have successfully built octave checked
out from octave hg a few times now.
All you need to do is check out the sources, source the set_mxe_env.sh
script, and then run run bootstrap, configure, make like you normally
would have to on a unix system.
It will build octave, but fail at generating all the documentation,
but the ./run-octave script in the build directory will run the latest
and greatest from the octave hg repo!
Here a fresh clone (parent: 16793:cc1657be1ee7 tip) fails while building the
parser:
:
/bin/sh ../../octave/build-aux/ylwrap
../../octave/libinterp/parse-tree/lex.ll lex.octave_.c parse-tree/lex.cc
-- flex -I -I
gperf -t -C -D -G -L C++ -Z octave_kw_hash
../../octave/libinterp/parse-tree/octave.gperf> parse-tree/oct-gperf.h-t1
/bin/sed 's,lookup\[,gperf_lookup[,'< parse-tree/oct-gperf.h-t1>
parse-tree/oct-gperf.h-t mv parse-tree/oct-gperf.h-t parse-tree/oct-gperf.h
rm -f parse-tree/oct-gperf.h-t1 case "" in \
*quote*) quote='"' ;; \
*) quote="" ;; \
esac; \
case "" in \
*dash*) decl="%define api.push-pull ${quote}both${quote}"; ;; \
*underscore*) decl="%define api.push_pull ${quote}both${quote}";
;; \
esac; \
/bin/sed "s/%PUSH_PULL_DECL%/$decl/"
../../octave/libinterp/parse-tree/oct-parse.in.yy>
parse-tree/oct-parse.yy-t mv parse-tree/oct-parse.yy-t
parse-tree/oct-parse.yy /bin/sh ../../octave/build-aux/ylwrap
parse-tree/oct-parse.yy y.tab.c parse-tree/oct-parse.cc y.tab.
h parse-tree/oct-parse.h y.output parse-tree/oct-parse.output -- -dv
../../octave/build-aux/ylwrap: line 108: -dv: command not found
make[2]: *** [parse-tree/oct-parse.cc] Error 1
I've experimented a bit but I couldn't spot where the offending "-dv"
came from.
The isolated "--" comes from libinterp/Makefile (L. 9053).
Any suggestions?
Philip
-------------
Not sure if it has anything to do with it, but when running each of the
following, what versions are they?
bison --version
flex --version
gperf --version