Compilation problem with macosX PPC: version>5.14

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

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

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

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

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]

Yes, if you can, please do …

I’ll send a mail to Fons … he knows more abot the mac stuff.

Soon,
Matevz

Hi,

please install the latest xcode for 10.4 on your machine. That should indeed fix this compilation problem.

Cheers, Fons.

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

Could you try the svn trunk version. That one should compile fine.

Cheers, Fons.

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

I meant the real trunk not a tagged version.

Cheers, Fons.

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

Ok, this should now be fixed. Do a:

svn up

and try to compile again.

Cheers, Fons.

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

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.

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.