Thomas
August 28, 2008, 10:34am
1
Hello,
Sorry for this very basic question but I did not find any hints in the previous posts of this forum.
Here is my problem encountered with a macosX PPC (10.4.11) and gcc4.0.1.
I tried to compile root 5.14 (downloaded via http), 5.18 (downloaded via svn) and 5.20 (svn) and I have systematically the same compilation error:
[quote]bin/rmkdepend -R -fgl/src/TGLFaceSet.d -Y -w 1000 – -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -D__cplusplus – gl/src/TGLFaceSet.cxx
bin/rmkdepend -R -fgl/src/TGLFormat.d -Y -w 1000 – -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -D__cplusplus – gl/src/TGLFormat.cxx
g++ -O2 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -o gl/src/TGLFaceSet.o -c gl/src/TGLFaceSet.cxx
g++ -O2 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -o gl/src/TGLFormat.o -c gl/src/TGLFormat.cxx
bin/rmkdepend -R -fgl/src/TGLHistPainter.d -Y -w 1000 – -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -D__cplusplus – gl/src/TGLHistPainter.cxx
g++ -O2 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -o gl/src/TGLHistPainter.o -c gl/src/TGLHistPainter.cxx
gl/src/TGLFaceSet.cxx: In constructor ‘GetTesselator()::Init::Init()’:
gl/src/TGLFaceSet.cxx:42: error: invalid conversion from 'void ()()’ to 'GLvoid ( )(…)'
gl/src/TGLFaceSet.cxx:42: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, GLvoid ()(…))'
gl/src/TGLFaceSet.cxx:43: error: invalid conversion from 'void ( )()’ to ‘GLvoid ()(…)'
gl/src/TGLFaceSet.cxx:43: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator , GLenum, GLvoid ()(…))'
gl/src/TGLFaceSet.cxx:44: error: invalid conversion from 'void ( )()’ to 'GLvoid ()(…)'
gl/src/TGLFaceSet.cxx:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator , GLenum, GLvoid (*)(…))'
make: *** [gl/src/TGLFaceSet.o] Error 1
make: *** Waiting for unfinished jobs…
[/quote]
I hope someone works with a mac PPC and succeedeed in compiling a version of root (later than 5.14) to help me to solve this problem…
Thanks a lot
Thomas
matevz
September 12, 2008, 1:26pm
2
Hi,
Sorry far a late reply … things are quite crazy at CERN.
Did you manage to fix the issue? Do you have glx package installed? I don’t have a mac so I’m not really sure what should be there.
Best,
Matevz
Thomas
October 27, 2008, 5:25pm
3
Thanks for your answer…
Yes, I have the glx installed => glu version 1.3
I succedeed in installing the ROOT version 5.10 but failed with the 5.14 and later…
Any ideas ??
Many thanks
Thomas
matevz
October 27, 2008, 6:26pm
4
Hi,
What is your compiler version? I just compiled root successfully with:
bash> gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
I think I remember Fons was advising somebody to update the compiler sometime ago.
This might help to somebody else looking into this … are you still using 10.4.11?
Cheers,
Matevz
Thomas
October 30, 2008, 2:11pm
5
Hi,
This is my gcc version (macOsX 10.4.11)
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5247.obj~4/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5247)
Do you think I need to update my gcc ??
Thanks a lot
Thomas[/quote]
matevz
October 30, 2008, 2:14pm
6
Yes, if you can, please do …
I’ll send a mail to Fons … he knows more abot the mac stuff.
Soon,
Matevz
rdm
October 30, 2008, 2:59pm
7
Hi,
please install the latest xcode for 10.4 on your machine. That should indeed fix this compilation problem.
Cheers, Fons.
Thomas
October 31, 2008, 3:16pm
8
Hi all,
Thanks for your answer…
I have updated to XCode 2.5 (last version for PPC 10.4) and the new version of my gcc leads
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
Unfortunately, I have exactly the same error…
If you have any ideas (except the one to update to PPC 10.5, of course !!)
Cheers
Thomas
rdm
October 31, 2008, 3:48pm
9
Could you try the svn trunk version. That one should compile fine.
Cheers, Fons.
Thomas
October 31, 2008, 5:07pm
10
I tried the 5.18 svn trunk version…
Same problem…
I will try the 5.20 svn but I’m not sure that the results will be different…
Cheers
Thomas
rdm
November 1, 2008, 12:37am
11
I meant the real trunk not a tagged version.
Cheers, Fons.
Thomas
November 3, 2008, 8:06am
12
I downloaded the svn trunk version and just try to compile it…
Once again, I have exactly the same error.
I don’t know how to solve this problem or if it is definitely impossible to compile under ppc ???
Cheers
Thomas
rdm
November 3, 2008, 9:25am
13
Ok, this should now be fixed. Do a:
svn up
and try to compile again.
Cheers, Fons.
Thomas
November 5, 2008, 3:48pm
14
Thanks Fons for trying fixing this problem !
Now, the compilation error takes place in a different class…
This is my compilation output :
bin/rmkdepend -R -fgraf3d/gl/src/TGLViewer.d -Y -w 1000 – -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -D__cplusplus – graf3d/gl/src/TGLViewer.cxx
g++ -O2 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -o graf3d/gl/src/TGLViewer.o -c graf3d/gl/src/TGLViewer.cxx
graf3d/gl/src/TGLUtil.cxx: In constructor ‘TGLUtil::GetDrawTesselator()::Init::Init()’:
graf3d/gl/src/TGLUtil.cxx:1024: error: invalid conversion from 'void ()()’ to 'GLvoid ( )(…)'
graf3d/gl/src/TGLUtil.cxx:1024: error: initializing argument 3 of ‘void gluTessCallback(GLUtesselator*, GLenum, GLvoid ()(…))'
graf3d/gl/src/TGLUtil.cxx:1025: error: invalid conversion from 'void ( )()’ to ‘GLvoid ()(…)'
graf3d/gl/src/TGLUtil.cxx:1025: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator , GLenum, GLvoid ()(…))'
graf3d/gl/src/TGLUtil.cxx:1026: error: invalid conversion from 'void ( )()’ to 'GLvoid ()(…)'
graf3d/gl/src/TGLUtil.cxx:1026: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator , GLenum, GLvoid (*)(…))'
make: *** [graf3d/gl/src/TGLUtil.o] Error 1
make: *** Waiting for unfinished jobs…
Have you got an idea ??
Cheers
Thomas
rdm
November 5, 2008, 3:52pm
15
This whole issue is a big mess as the behavior in Apple’s gcc changes in the middle of the 10.4 life cycle. On 10.5 there are no problems. I can only definitely fix it next week when I’m back in my office and have access to my sole 10.4 machine (which is turned off right now).
Cheers, Fons.
Hi,
I am also suffering from this problem. I thank you for taking the time to solve this for us.
rdm
December 15, 2008, 1:58pm
17
Hi,
first make sure you have gcc >= 5363 (get latest Xcode developer tools) and use the ROOT trunk. In that case I’ve no problems on my PPC 10.4.11 machine.
Cheers, Fons.