http://bugs.freedesktop.org/show_bug.cgi?id=22696

           Summary: Compiling Problem
           Product: Mesa
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: trivial
          Priority: medium
         Component: Drivers/DRI/r200
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: stevenward...@hotmail.com


Hi to all,
         I'm currently using Fedora Rawhide.I compile the
D.R.M,Mesa,xf86-video-nouveau and now the Linux-2.6 unamed repository to build
the drm and nouveau kernel modules from git.

When compiling the Mesa code,I use ./configure --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --mandir=/usr/share/man --docdir=/usr/share/doc
--enable-selinux --x-libraries=/usr/lib --enable-32-bit --enable-xcb
--enable-gallium-nouveau --with-x --with-dri-driverdir=/usr/lib/dri
--with-xorg-driver-dir=/usr/lib/xorg/modules/drivers
--with-state-trackers=dri,egl,xorg,glx --enable-motif --enable-gl-osmesa
--with-osmesa-bits=32 --disable-gallium-intel --disable-gallium-radeon
--with-expat=/usr/lib --with-demos=xdemos,demos,trivial,tests  and then gmake.
The mesa code ends with this error:

r200_pixel.c:106: warning: ‘clip_pixelrect’ defined but not used            
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_tex.c -o r200_tex.o                               
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_texstate.c -o r200_texstate.o                     
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_tcl.c -o r200_tcl.o                               
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_swtcl.c -o r200_swtcl.o                           
In file included from r200_swtcl.c:475:                                         
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h: In function ‘quadr_twoside’:  
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[3]’ may
be used uninitialized in this function                                          
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[2]’ may
be used uninitialized in this function                                          
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[3]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[2]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[1]’ may be
used uninitialized in this function
In file included from r200_swtcl.c:460:
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h: In function
‘unfilled_quad’:
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:125: warning: ‘color[2]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:125: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:125: warning: ‘spec[2]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:125: warning: ‘spec[1]’ may
be used uninitialized in this function
In file included from r200_swtcl.c:483:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h: In function
‘quadr_twoside_unfilled’:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[3]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[2]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[3]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[2]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:401: warning: ‘spec[1]’ may be
used uninitialized in this function
In file included from r200_swtcl.c:460:
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h: In function ‘unfilled_tri’:
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:49: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_unfilled.h:49: warning: ‘spec[1]’ may
be used uninitialized in this function
In file included from r200_swtcl.c:483:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h: In function
‘triangle_twoside_unfilled’:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘color[2]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘spec[2]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘spec[1]’ may be
used uninitialized in this function
In file included from r200_swtcl.c:475:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h: In function
‘triangle_twoside’:
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘color[2]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘color[1]’ may
be used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘spec[2]’ may be
used uninitialized in this function
../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:138: warning: ‘spec[1]’ may be
used uninitialized in this function
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_maos.c -o r200_maos.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_sanity.c -o r200_sanity.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_fragshader.c -o r200_fragshader.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 r200_vertprog.c -o r200_vertprog.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 radeon_screen.c -o radeon_screen.o
radeon_screen.c: In function ‘radeonGetParam’:
radeon_screen.c:256: warning: cast from pointer to integer of different size
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 radeon_texture.c -o radeon_texture.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 radeon_common_context.c -o radeon_common_context.o
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm   -I/usr/lib/include -g -O2 -Wall -Wmissing-prototypes
-std=c99 -ffast-math -fno-strict-aliasing -m32  -fPIC  -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_COMMON=1
-DRADEON_COMMON_FOR_R200 radeon_common.c -o radeon_common.o
radeon_common.c: In function ‘radeon_revalidate_bos’:
radeon_common.c:972: error: too few arguments to function
‘radeon_cs_space_check’
radeon_common.c: In function ‘rcommonInitCmdBuf’:
radeon_common.c:1191: warning: implicit declaration of function
‘radeon_cs_space_set_flush’
gmake[5]: *** [radeon_common.o] Error 1
gmake[5]: Leaving directory `/opt/mesa/src/mesa/drivers/dri/r200'
gmake[4]: *** [subdirs] Error 1
gmake[4]: Leaving directory `/opt/mesa/src/mesa/drivers/dri'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/opt/mesa/src/mesa/drivers'
gmake[2]: *** [driver_subdirs] Error 2
gmake[2]: Leaving directory `/opt/mesa/src/mesa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/opt/mesa/src'
gmake: *** [default] Error 1

I also have a question.Since I've discovered that the git version of D.R.M to
build the nouveau kernel module is now defunct,do I still need to build the drm
code from git to keep the mesa code happy? or is there a way to get the mesa
code to link-up with the code from the linux-2.6 unamed repository?

Regards,
       STEVE555


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to