Announcement

Collapse
No announcement yet.

mesa git compile error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • mesa git compile error

    Anyone else having trouble compiling mesa lately, last few week are so
    I've been getting the following error

    gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -O2 -march=native -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" glxcurrent.c -o glxcurrent.o
    gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -O2 -march=native -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" glxext.c -o glxext.o
    glxext.c: In function '__glXWireToEvent':
    glxext.c:166: error: 'xGLXBufferSwapComplete' undeclared (first use in this function)
    glxext.c:166: error: (Each undeclared identifier is reported only once
    glxext.c:166: error: for each function it appears in.)
    glxext.c:166: error: 'awire' undeclared (first use in this function)
    glxext.c:166: error: expected expression before ')' token
    make: *** [glxext.o] Error 1

  • #2
    Originally posted by Waltarro View Post
    Anyone else having trouble compiling mesa lately
    For what it's worth, no. I'm using mesa-9999 from the x11 overlay on Gentoo, which I recompile several times a week and I haven't gotten any error lately.

    Comment


    • #3
      You might need to upgrade your X or some other part of your system.

      Comment


      • #4
        The requirements for mesa were recently increased to glproto 1.4.11 and dri2proto 2.2

        Try doing a 'make distclean' and re-running autogen. You'll probably get errors unless you have recent enough versions of that stuff. I know that Debian sid/unstable doesn't even have recent enough versions yet.

        Comment


        • #5
          same here

          I upgraded to the dri2proto 2.2 and glproto (both from git) and get the same error.
          Mesa used to build OK until a few days ago.

          Any ideas?

          Comment


          • #6
            Have you tried a clean checkout?

            Comment


            • #7
              You expect a git bug?
              Just did the fresh checkout.
              No change.

              Comment


              • #8
                # find . -type f -exec grep -H xGLXBufferSwapComplete {} \;./src/glx/x11/glxext.c: xGLXBufferSwapComplete *awire = (xGLXBufferSwapComplete *)wire;

                So it is only missed once.

                Comment


                • #9
                  Even google finds xGLXBufferSwapComplete only once.

                  Comment


                  • #10
                    I have that definition in glxproto.h, coming from glproto 1.4.11.

                    Comment


                    • #11
                      Same here.
                      But why isn't it used?

                      I do
                      export PKG_CONFIG_PATH=/usr/src/dri2proto/:/usr/src/glproto/:${PKG_CONFIG_PATH}

                      then ./autogen.sh (in mesa dir)
                      then ./configure --prefix=/opt/xorg --with-dri-drivers=radeon,r600 --disable-gallium
                      and make

                      Comment


                      • #12
                        docs/fbdev-dri.html
                        section 2.1....
                        Copy it to the /mesa/include/GL/ directory

                        Then it gets farther on with the compilation but fails:
                        gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2_glx.c -o dri2_glx.o
                        dri2_glx.c: In function ‘dri2DrawableGetMSC’:
                        dri2_glx.c:208: warning: pointer targets in passing argument 3 of ‘DRI2GetMSC’ differ in signedness
                        dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:208: warning: pointer targets in passing argument 4 of ‘DRI2GetMSC’ differ in signedness
                        dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:208: warning: pointer targets in passing argument 5 of ‘DRI2GetMSC’ differ in signedness
                        dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c: In function ‘dri2WaitForMSC’:
                        dri2_glx.c:216: warning: pointer targets in passing argument 6 of ‘DRI2WaitMSC’ differ in signedness
                        dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:216: warning: pointer targets in passing argument 7 of ‘DRI2WaitMSC’ differ in signedness
                        dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:216: warning: pointer targets in passing argument 8 of ‘DRI2WaitMSC’ differ in signedness
                        dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c: In function ‘dri2WaitForSBC’:
                        dri2_glx.c:224: warning: pointer targets in passing argument 4 of ‘DRI2WaitSBC’ differ in signedness
                        dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:224: warning: pointer targets in passing argument 5 of ‘DRI2WaitSBC’ differ in signedness
                        dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c:224: warning: pointer targets in passing argument 6 of ‘DRI2WaitSBC’ differ in signedness
                        dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c: In function ‘dri2SwapBuffers’:
                        dri2_glx.c:385: warning: pointer targets in passing argument 6 of ‘DRI2SwapBuffers’ differ in signedness
                        dri2.h:89: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
                        dri2_glx.c: In function ‘dri2CreateScreen’:
                        dri2_glx.c:583: warning: assignment from incompatible pointer type
                        gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2.c -o dri2.o
                        dri2.c: In function ‘DRI2WireToEvent’:
                        dri2.c:94: error: ‘DRI2_BufferSwapComplete’ undeclared (first use in this function)
                        dri2.c:94: error: (Each undeclared identifier is reported only once
                        dri2.c:94: error: for each function it appears in.)
                        dri2.c:97: error: ‘xDRI2BufferSwapComplete’ undeclared (first use in this function)
                        dri2.c:97: error: ‘awire’ undeclared (first use in this function)
                        dri2.c:97: error: expected expression before ‘)’ token
                        dri2.c:99: error: ‘DRI2_EXCHANGE_COMPLETE’ undeclared (first use in this function)
                        dri2.c:102: error: ‘DRI2_BLIT_COMPLETE’ undeclared (first use in this function)
                        dri2.c:105: error: ‘DRI2_FLIP_COMPLETE’ undeclared (first use in this function)
                        dri2.c: In function ‘load_swap_req’:
                        dri2.c:454: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_hi’
                        dri2.c:455: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_lo’
                        dri2.c:456: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_hi’
                        dri2.c:457: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_lo’
                        dri2.c:458: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_hi’
                        dri2.c:459: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_lo’
                        dri2.c: In function ‘DRI2SwapBuffers’:
                        dri2.c:473: error: ‘xDRI2SwapBuffersReply’ undeclared (first use in this function)
                        dri2.c:473: error: expected ‘;’ before ‘rep’
                        dri2.c:484: error: ‘rep’ undeclared (first use in this function)
                        dri2.c: In function ‘DRI2GetMSC’:
                        dri2.c:496: error: ‘xDRI2GetMSCReq’ undeclared (first use in this function)
                        dri2.c:496: error: ‘req’ undeclared (first use in this function)
                        dri2.c:497: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
                        dri2.c:497: error: expected ‘;’ before ‘rep’
                        dri2.c:502: error: ‘sz_xDRI2GetMSCReq’ undeclared (first use in this function)
                        dri2.c:502: error: expected expression before ‘)’ token
                        dri2.c:502: error: ‘X_DRI2GetMSC’ undeclared (first use in this function)
                        dri2.c:507: error: ‘rep’ undeclared (first use in this function)
                        dri2.c: At top level:
                        dri2.c:524: error: expected ‘)’ before ‘*’ token
                        dri2.c: In function ‘DRI2WaitMSC’:
                        dri2.c:539: error: ‘xDRI2WaitMSCReq’ undeclared (first use in this function)
                        dri2.c:539: error: ‘req’ undeclared (first use in this function)
                        dri2.c:540: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
                        dri2.c:540: error: expected ‘;’ before ‘rep’
                        dri2.c:545: error: ‘sz_xDRI2WaitMSCReq’ undeclared (first use in this function)
                        dri2.c:545: error: expected expression before ‘)’ token
                        dri2.c:545: error: ‘X_DRI2WaitMSC’ undeclared (first use in this function)
                        dri2.c:549: warning: implicit declaration of function ‘load_msc_req’
                        dri2.c:551: error: ‘rep’ undeclared (first use in this function)
                        dri2.c: At top level:
                        dri2.c:568: error: expected ‘)’ before ‘*’ token
                        dri2.c: In function ‘DRI2WaitSBC’:
                        dri2.c:578: error: ‘xDRI2WaitSBCReq’ undeclared (first use in this function)
                        dri2.c:578: error: ‘req’ undeclared (first use in this function)
                        dri2.c:579: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
                        dri2.c:579: error: expected ‘;’ before ‘rep’
                        dri2.c:584: error: ‘sz_xDRI2WaitSBCReq’ undeclared (first use in this function)
                        dri2.c:584: error: expected expression before ‘)’ token
                        dri2.c:584: error: ‘X_DRI2WaitSBC’ undeclared (first use in this function)
                        dri2.c:588: warning: implicit declaration of function ‘load_sbc_req’
                        dri2.c:590: error: ‘rep’ undeclared (first use in this function)
                        dri2.c: In function ‘DRI2SwapInterval’:
                        dri2.c:609: error: ‘xDRI2SwapIntervalReq’ undeclared (first use in this function)
                        dri2.c:609: error: ‘req’ undeclared (first use in this function)
                        dri2.c:614: error: ‘sz_xDRI2SwapIntervalReq’ undeclared (first use in this function)
                        dri2.c:614: error: expected expression before ‘)’ token
                        dri2.c:614: error: ‘X_DRI2SwapInterval’ undeclared (first use in this function)
                        gmake[2]: *** [dri2.o] Error 1
                        gmake[2]: Leaving directory `/usr/src/mesa/src/glx/x11'
                        make[1]: *** [subdirs] Error 1
                        make[1]: Leaving directory `/usr/src/mesa/src'
                        make: *** [default] Error 1

                        Comment


                        • #13
                          mesa]# mkdir -p include/X11/extensions
                          mesa]# cp ../dri2proto/dri2proto.h include/X11/extensions/
                          mesa]# cp ../dri2proto/dri2tokens.h include/X11/extensions/
                          make...

                          and it builds.

                          isn't this a task for autogen/config to fix?

                          Comment


                          • #14
                            I upgraded the two protos a couple of days ago and everything worked fine. I just recompiled libdrm, mesa, xf...ati, and xf...radeonhd. No problems.

                            I still use in the configure
                            Code:
                             --disable-gallium \
                             --with-dri-drivers=swrast,radeon,r600
                            Could this be difference?

                            Is gallium ready to try?

                            By the way, since I copy new code to directory each time I use autogen vs configure.

                            Comment


                            • #15
                              The culprit was glproto-1.4.11 and dri2proto-2.2 packages.
                              I run mostly a gentoo stable amd64 system, so just
                              those 2 needed to be put in package.keywords

                              Thanks for the help.

                              Comment

                              Working...
                              X