----- Original Message -----
From: "David Kastrup" <[email protected]>
To: "Phil Holmes" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, July 24, 2016 12:15 PM
Subject: Re: Gub failure
Phil Holmes <[email protected]> writes:
Trying to build Gub today, I get the following failures:
/home/gub/NewGub/gub/target/mingw/src/lilypond-git.sv.gnu.org--lilypond.git-
release-unstable/lily/dynamic-performer.cc: In member function 'Real
Dynamic_performer::compute_departure_volume(Direction, Real, Real, Real,
Real)':
/home/gub/NewGub/gub/target/mingw/src/lilypond-git.sv.gnu.org--lilypond.git-
release-unstable/lily/dynamic-performer.cc:259:19: error: expected
unqualified-id before '=' token
const Real near = minmax (depart_dir, start_vol, end_vol)
^
/home/gub/NewGub/gub/target/mingw/src/lilypond-git.sv.gnu.org--lilypond.git-
release-unstable/lily/dynamic-performer.cc:261:18: error: expected
unqualified-id before '=' token
const Real far = minmax (-depart_dir, start_vol, end_vol)
^
There are further similar errors.
Anyone know what's going on?
"target/mingw" would be seminal here I think. I am surprised that we
are getting this even when crosscompiling with GCC but at any rate in
Microsoft compilers, "far"/"near" are keywords indicating
pointer/segmentation type. So when working with system headers, GCC is
likely to assign some sort of meaning to those words (via preprocessor
if not via core language).
Try replacing the occurences of the identifiers "far" and "near" with
"far_vol" and "near_vol" (I haven't looked at the actual code so this
name might or might not be appropriate) and see whether this makes Gub
happier.
--
David Kastrup
Looks like this was the problem. I had to edit the file and push it to
release/unstable since Gub always seems to pull its source files from there,
so editing locally doesn't work. My normal course would be to push this
change to staging once I've uploaded the new builds and docs. Does that
seem OK in this case?
--
Phil Holmes
_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel