Menu

#47 Build fails in Solaris 10 64 bit Sparc

1.12.0
open
1
2015-08-05
2015-02-05
Anonymous
No

In Solaris 10 64 bit Sparc I used gmake and got this:

# gmake
cc -DGLEW_NO_GLU -DGLEW_BUILD -xO2  -Iinclude -I/usr/openwin/include -Kpic  -o tmp/solaris/default/shared/glew.o -c src/glew.c
ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_2':
glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_3':
glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x938): additional relocation overflows omitted from the output
Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
gmake: *** [lib/libGLEW.so.1.12.0] Error 1

Then I tried make and got this:

# make
ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_2':
glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_3':
glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o
glew.c:(.text+0x938): additional relocation overflows omitted from the output
Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
make: *** [lib/libGLEW.so.1.12.0] Error 1
#

I have no idea what might be wrong. I'd really appreciate any help with this.

Discussion

  • Nigel Stewart

    Nigel Stewart - 2015-02-06

    Ticket moved from /p/glew/bugs/267/

     
  • Nigel Stewart

    Nigel Stewart - 2015-02-06
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,6 @@
     In Solaris 10 64 bit Sparc I used gmake and got this:
    
    +~~~~~~
     # gmake
     cc -DGLEW_NO_GLU -DGLEW_BUILD -xO2  -Iinclude -I/usr/openwin/include -Kpic  -o tmp/solaris/default/shared/glew.o -c src/glew.c
     ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
    @@ -18,9 +19,10 @@
     glew.c:(.text+0x938): additional relocation overflows omitted from the output
     Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
     gmake: *** [lib/libGLEW.so.1.12.0] Error 1
    -
    +~~~~~~
     Then I tried make and got this:
    
    +~~~~~~
     # make
     ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
     tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_2':
    @@ -39,5 +41,6 @@
     Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
     make: *** [lib/libGLEW.so.1.12.0] Error 1
     #
    +~~~~~~
    
     I have no idea what might be wrong.  I'd really appreciate any help with this.
    
    • Group: 1.12.0 --> unknown
     
  • Nigel Stewart

    Nigel Stewart - 2015-02-06

    The solaris make config was recently changed to use the -kPIC flag.
    Perhaps -fPIC would be better in this case?

    https://github.com/nigels-com/glew/blob/master/config/Makefile.solaris

    Please attach the complete build log, if possible.

     
    • Anonymous

      Anonymous - 2015-02-06

      "https://github.com/nigels-com/glew/blob/master/config/Makefile.solaris"

      Am I supposed to insert that code into the Makefile I already have?

      "Please attach the complete build log, if possible."

      That was all make said. Is there a log file somewhere else? I don't see one in the glew-1.12.0 directory.

            - Michele
      
       
    • Anonymous

      Anonymous - 2015-02-06

      "The solaris make config was recently changed to use the -kPIC flag.
      Perhaps -fPIC would be better in this case?"

      I changed -Kpic to -Fpic in Makefile.solaris and then got this:

      make

      ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
      tmp/solaris/default/shared/glew.o: In function _glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbolglewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      tmp/solaris/default/shared/glew.o: In function _glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbolglewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbolglewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x938): additional relocation overflows omitted from the output
      Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
      make: *** [lib/libGLEW.so.1.12.0] Error 1

                - Michele
      
       
    • Anonymous

      Anonymous - 2015-02-06

      "he solaris make config was recently changed to use the -kPIC flag.
      Perhaps -fPIC would be better in this case?"

      I changed -Kpic to -Fpic in Makefile.solaris and then got this:

      make

      ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
      tmp/solaris/default/shared/glew.o: In function _glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbolglewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      tmp/solaris/default/shared/glew.o: In function _glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbolglewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbolglewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol __glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol
      glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o
      glew.c:(.text+0x938): additional relocation overflows omitted from the output
      Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
      make: *** [lib/libGLEW.so.1.12.0] Error 1

      "Please attach the complete build log, if possible."

      That's all make said. Unless there's a log file somewhere else. I didn't see one in the glew-1.12.9 directory.

       
  • Nigel Stewart

    Nigel Stewart - 2015-02-06
     
  • Anonymous

    Anonymous - 2015-02-06

    Test - why are my posts not showing??

     
  • Nigel Stewart

    Nigel Stewart - 2015-08-05
    • assigned_to: Nigel Stewart
    • Group: unknown --> 1.12.0
     
  • Nigel Stewart

    Nigel Stewart - 2015-08-05

    Anyone else having issues on Solaris?

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.