We are aware of this issue and are working on a workaround (std::to_string() is missing on cygwin…). This should be available soon in both the master and the 5-34-00-patches branch.
./configure win32gcc --disable-xrootd --enable-roofit
make -j4
…and the compilation fails with this different error message:
In file included from /cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: error: forward declaration of ‘class FTGlyph’
class FTGlyph;
^
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘FTPoint FTGlyphContainer::Render(unsigned int, unsigned int, FTPoint)’:
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx:86:66: error: invalid use of incomplete type ‘class FTGlyph’
advance = glyphs[charMap->GlyphListIndex( characterCode)]->Render( penPosition);
^
In file included from /cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: error: forward declaration of ‘class FTGlyph’
class FTGlyph;
^
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘FTBBox FTGlyphContainer::BBox(unsigned int) const’:
/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTGlyphContainer.cxx:60:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:642: recipe for target ‘graf3d/ftgl/src/FTGlyphContainer.o’ failed
make: *** [graf3d/ftgl/src/FTGlyphContainer.o] Error 1
make: *** Waiting for unfinished jobs…
g++ -O2 -DNDEBUG -std=gnu++11 -pipe -Wall -Woverloaded-virtual -Iinclude -I/usr/X11R6/include -I/usr/include/freetype2 -I/cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/inc -o graf3d/ftgl/src/FTFace.o -c /cygdrive/c/ROOT/root_v5-34-00-patches/graf3d/ftgl/src/FTFace.cxx
Did I make a mistake in my usage of git to get the branch? How do you advice that I tackle this new problem?
/src/FTGlyphContainer.o -c /cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx: In destructor ‘FTGlyphContainer::~FTGlyphContainer()’:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:21:17: warning: possible problem detected in invocation of delete operator: [enabled by default]
delete *glyphIterator;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:21:17: warning: invalid use of incomplete type ‘class FTGlyph’ [enabled by default]
In file included from /cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: warning: forward declaration of ‘class FTGlyph’ [enabled by default]
class FTGlyph;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:21:17: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
delete *glyphIterator;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘FTBBox FTGlyphContainer::BBox(unsigned int) const’:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:59:59: error: invalid use of incomplete type ‘class FTGlyph’
return glyphs[charMap->GlyphListIndex( characterCode)]->BBox();
^
In file included from /cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: error: forward declaration of ‘class FTGlyph’
class FTGlyph;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘float FTGlyphContainer::Advance(unsigned int, unsigned int)’:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:69:61: error: invalid use of incomplete type ‘class FTGlyph’
width += glyphs[charMap->GlyphListIndex( characterCode)]->Advance().X();
^
In file included from /cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: error: forward declaration of ‘class FTGlyph’
class FTGlyph;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘FTPoint FTGlyphContainer::Render(unsigned int, unsigned int, FTPoint)’:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:86:66: error: invalid use of incomplete type ‘class FTGlyph’
advance = glyphs[charMap->GlyphListIndex( characterCode)]->Render( penPosition);
^
In file included from /cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:1:0:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/inc/FTGlyphContainer.h:14:7: error: forward declaration of ‘class FTGlyph’
class FTGlyph;
^
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx: In member function ‘FTBBox FTGlyphContainer::BBox(unsigned int) const’:
/cygdrive/c/ROOT/root_trunk/graf3d/ftgl/src/FTGlyphContainer.cxx:60:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:642: recipe for target ‘graf3d/ftgl/src/FTGlyphContainer.o’ failed
make: *** [graf3d/ftgl/src/FTGlyphContainer.o] Error 1
Thanks for your expert suggestion. However, as far as I can tell from cygwin’s setup.exe, I do have libGL-devel and libGLU-devel installed and up-to-date. I (should) have libGL-devel 8.0.5 and libGLU-devel 9.0.0.
I tried to re-install them today, but I get the same result.
Do you know how to double-check from my cygwin terminal that these libraries are actually installed, and with which version? And do you know what versions are installed on lxplus?
[quote=“cote”]Do you know how to double-check from my cygwin terminal that these libraries are actually installed, and with which version? And do you know what versions are installed on lxplus?[/quote]You can try “locate libGL”. Here is the result on lxplus:[bellenot@lxplus0050 ~]$ locate libGL
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2.0
/usr/lib/libGLU.so
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3.1
/usr/lib64/libGL.so
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2.0
/usr/lib64/libGLU.so
/usr/lib64/libGLU.so.1
/usr/lib64/libGLU.so.1.3.1
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/checksum_data
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/checksum_type
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/from_repo
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/installed_by
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/reason
/var/lib/yum/yumdb/m/0aa72711324e0d4138e221c84c979b9a23ed9041-mesa-libGLU-devel-9.2-0.5.el6_5.2-x86_64/releasever
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/checksum_data
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/checksum_type
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/from_repo
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/installed_by
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/reason
/var/lib/yum/yumdb/m/50294855d48a13501057ba05ef2a96974fef3a9f-mesa-libGL-devel-9.2-0.5.el6_5.2-x86_64/releasever
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/checksum_data
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/checksum_type
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/from_repo
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/from_repo_revision
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/from_repo_timestamp
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/installed_by
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/reason
/var/lib/yum/yumdb/m/63c18d0e263292987edaac87de87a77f03630c9d-mesa-libGL-9.2-0.5.el6_5.2-i686/releasever
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/checksum_data
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/checksum_type
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/from_repo
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/from_repo_revision
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/from_repo_timestamp
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/installed_by
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/reason
/var/lib/yum/yumdb/m/9b6c89971df9f70985060e4af5c71fa904a7b101-mesa-libGLU-9.2-0.5.el6_5.2-i686/releasever
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/checksum_data
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/checksum_type
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/from_repo
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/from_repo_revision
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/from_repo_timestamp
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/installed_by
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/reason
/var/lib/yum/yumdb/m/9db98ed5583bbcbccfa11543f378cee495fddc8e-mesa-libGL-devel-9.2-0.5.el6_5.2-i686/releasever
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/checksum_data
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/checksum_type
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/from_repo
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/installed_by
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/reason
/var/lib/yum/yumdb/m/9e6d7ad27088e7d3f8c907cb87f1695ac74d694b-mesa-libGLU-9.2-0.5.el6_5.2-x86_64/releasever
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/checksum_data
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/checksum_type
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/from_repo
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/from_repo_revision
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/from_repo_timestamp
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/installed_by
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/reason
/var/lib/yum/yumdb/m/a756e4738881852dae6351579d797f09f8c523a6-mesa-libGLU-devel-9.2-0.5.el6_5.2-i686/releasever
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/checksum_data
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/checksum_type
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/from_repo
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/installed_by
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/reason
/var/lib/yum/yumdb/m/b50b86697a1b810496adab8b683cd81f07e8274b-mesa-libGL-9.2-0.5.el6_5.2-x86_64/releasever
And I don’t know the result on cygwin, I don’t have access to the machine right now. BTW, why do you care about lxplus? Don’t you build on cygwin?
I guess this confirms that lib GL and libGLU are installed on my machine, as they should. However, I do not see libGLU-devel and libGL-devel (appearing under /var/lib/yum/… on lxplus).
I was thinking that looking at lxplus could be useful just to compare with a setup that is known to work. That said, I don’t really know how translate the observed difference between lxplus and my local cygwin into a concrete action item. I’m actually running out of ideas… Do you have a suggestion?
Well, I don’t know. Note you can try to disable gl if you don’t need it. And note also that you can build natively on Windows, without cygwin. BTW, why are you using cygwin?