[Mesa-users] Make error in Mesa 7.9.2

Amy maskov amy.maskov at gmail.com
Tue Sep 6 03:08:39 PDT 2011


Hi
    Jose
           You are right, though libdrm was installed with radeon
options, mesa configure could not find it until set it through
LIBDRM_RAEDON_CFLAG AND LIBDRM_RAEDON_LIB. but now the make command is
giving an syntax error in ->

   ../../../src/mapi/mapi/mapi_abi.py \
                -i vgapi/vgapi_defines.h vgapi.csv > vgapi_tmp.h
  File "../../../src/mapi/mapi/mapi_abi.py", line 63
    sep = '' if t.endswith('*') else ' '

now this syntax error is nothing to do with any config options etc. i
think its a python error , i have python 2 which it checked during
configure options.

Can anyone suggests the core of the problem.
Thanks in advance

Amy.

On 9/5/11, Jose Ramon Muñoz Pekkarinen <koalinux at gmail.com> wrote:
>
> 	It seems your problem is here.
>
>> configure: WARNING: libdrm_radeon is missing, not building gallium-radeon
>
> 	Did you build drm first?
>
> 	These links will help you in case you're lost:
>
> 	http://pkg-xorg.alioth.debian.org/howto/build-mesa.html
>
> 	http://dri.freedesktop.org/wiki/Building
> 	
> 	http://www.x.org/wiki/radeonBuildHowTo
>
> 	Greetings
>
> On Monday 05 September 2011 12:26:14 Amy maskov wrote:
>> Hi
>>    List Users
>>                    I am trying to compile Mesa 7.9.2 on centos 5.6
>> [Linux localhost.localdomain 2.6.39-4.el5.elrepo #1 SMP PREEMPT Thu
>> Aug 4 19:58:19 EDT 2011 i686 i686 i386 GNU/Linux] When i run
>> ./configure as shown next, it confgures successfully, and then makes
>> gives an error which is given at last section of the mail. I could not
>> figure it out where is the problem?
>>
>> Can anyone guide me
>> Thanks in advance.
>> Amy
>>
>> ***************************************************************************
>> *******************************
>>
>> [root at localhost Mesa-7.9.2]# ./configure
>> LIBDRM_CFLAGS="-I/usr/local/libdrm/iclude/libdrm
>> -I/usr/local/libdrm/include"
>> LIBDRM_LIBS="/usr/local/libdrm/lib/libdrm.so.2"
>> GLPROTO_CFLAGS="-I/usr/local/glproto/include/GL/internal
>> -I/usr/local/glproto/include/GL"
>> GLPROTO_LIBS="/usr/lib/nvidia/libGL.so" --prefix=/usr/local/Mesa-7.9.2
>> checking build system type... i686-pc-linux-gnu
>> checking host system type... i686-pc-linux-gnu
>> checking for gcc... gcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking how to run the C preprocessor... gcc -E
>> checking for gcc... (cached) gcc
>> checking whether we are using the GNU C compiler... (cached) yes
>> checking whether gcc accepts -g... (cached) yes
>> checking for gcc option to accept ISO C89... (cached) none needed
>> checking for g++... g++
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether g++ accepts -g... yes
>> checking for gmake... gmake
>> checking for python2... python2
>> checking for makedepend... /usr/bin/makedepend
>> checking for sed... /bin/sed
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking if compiling with clang... no
>> checking whether gcc version is sufficient... yes
>> checking for pkg-config... /usr/bin/pkg-config
>> checking pkg-config is at least version 0.9.0... yes
>> checking whether gcc supports -fvisibility=hidden... yes
>> checking whether g++ supports -fvisibility=hidden... yes
>> checking whether to enable assembly... yes, x86
>> checking for gcc option to produce PIC... -fPIC
>> checking for dlopen... no
>> checking for dlopen in -ldl... yes
>> checking for posix_memalign... yes
>> checking pkg-config files for X11 are available... yes
>> checking for X11... yes
>> checking for LIBDRM... yes
>> checking for DRI2PROTO... yes
>> checking for GLPROTO... yes
>> checking for XF86VIDMODE... yes
>> checking for DRIGL... yes
>> checking for LIBDRM_RADEON... no
>> checking expat.h usability... yes
>> checking expat.h presence... yes
>> checking for expat.h... yes
>> checking for XML_ParserCreate in -lexpat... yes
>> checking for INTEL... yes
>> checking for XCB_DRI2... no
>> checking for LIBUDEV... no
>> checking for GLW... yes
>> checking udis86.h usability... no
>> checking udis86.h presence... no
>> checking for udis86.h... no
>> checking for llvm-config... no
>> checking for XORG... no
>> configure: WARNING: libdrm_radeon is missing, not building gallium-radeon
>> (r300) configure: creating ./config.status
>> config.status: creating configs/autoconf
>> config.status: executing configs commands
>>
>>         prefix:          /usr/local/Mesa-7.9.2
>>         exec_prefix:     ${prefix}
>>         libdir:          ${exec_prefix}/lib
>>         includedir:      ${prefix}/include
>>
>>         Driver:          dri
>>         OSMesa:          no
>>         DRI drivers:     i810 i915 i965 mach64 mga r128 r200 r300 r600
>> radeon savage sis tdfx unichrome swrast
>>         DRI driver dir:  ${libdir}/dri
>>         Use XCB:         no
>>
>>         llvm:            no
>>
>>         Gallium:         yes
>>         Gallium dirs:    auxiliary drivers state_trackers
>>         Target dirs:      egl dri-swrast
>>         Winsys dirs:     sw sw/xlib sw/dri i915/sw
>>         Driver dirs:     softpipe failover galahad trace rbug identity
>> svga i915 i965
>>         Trackers dirs:   dri egl
>>         EGL client APIs: $(GL_LIB)
>>
>>         Shared libs:     yes
>>         Static libs:     no
>>         EGL:             glx
>>         EGL platforms:   x11 drm
>>         GLU:             yes
>>         GLw:             yes (Motif: no)
>>         glut:            no
>>
>>         CFLAGS:          -g -O2 -Wall -Wmissing-prototypes -std=c99
>> -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC
>>         CXXFLAGS:        -g -O2 -Wall -fvisibility=hidden
>> -fno-strict-aliasing -fPIC
>>         Macros:          -D_GNU_SOURCE -DPTHREADS
>> -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
>> -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
>> -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
>>
>>         PYTHON2:         python2
>>
>>         Run 'gmake' to build Mesa
>> ***************************************************************************
>> ****************************** make error->
>>
>> ............................
>> ...........................
>> gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
>> -I../../../../../include -I../../../../../src/mapi
>> -I../../../../../src/mesa -I../../../../../src/egl/main
>> -I../../../../../src/egl/drivers/dri -I/usr/local/libdrm/iclude/libdrm
>> -I/usr/local/libdrm/iclude  -g -O2 -Wall -Wmissing-prototypes -std=c99
>> -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC
>> -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
>> -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN
>> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
>> -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DFEATURE_GL=1
>> ../common/utils.c -o ../common/utils.o
>> In file included from ../common/utils.h:32,
>>                  from ../common/utils.c:37:
>> ../../../../../include/GL/internal/dri_interface.h:51:17: error:
>> drm.h: No such file or directory
>> In file included from ../common/utils.h:32,
>>                  from ../common/utils.c:37:
>> ../../../../../include/GL/internal/dri_interface.h:317: error:
>> expected declaration specifiers or ‘...’ before ‘drm_clip_rect_t’
>> ../../../../../include/GL/internal/dri_interface.h:319: error:
>> expected declaration specifiers or ‘...’ before ‘drm_clip_rect_t’
>> ../../../../../include/GL/internal/dri_interface.h:373: error:
>> expected declaration specifiers or ‘...’ before ‘drm_clip_rect_t’
>> ../../../../../include/GL/internal/dri_interface.h:632: error:
>> expected declaration specifiers or ‘...’ before ‘drm_drawable_t’
>> ../../../../../include/GL/internal/dri_interface.h:640: error:
>> expected declaration specifiers or ‘...’ before ‘drm_context_t’
>> gmake[6]: *** [../common/utils.o] Error 1
>> gmake[6]: Leaving directory
>> `/root/Downloads/Mesa-7.9.2/src/mesa/drivers/dri/i810'
>> gmake[5]: *** [lib] Error 2
>> gmake[5]: Leaving directory
>> `/root/Downloads/Mesa-7.9.2/src/mesa/drivers/dri/i810'
>> gmake[4]: *** [subdirs] Error 1
>> gmake[4]: Leaving directory
>> `/root/Downloads/Mesa-7.9.2/src/mesa/drivers/dri' gmake[3]: *** [default]
>> Error 1
>> gmake[3]: Leaving directory `/root/Downloads/Mesa-7.9.2/src/mesa/drivers'
>> gmake[2]: *** [driver_subdirs] Error 2
>> gmake[2]: Leaving directory `/root/Downloads/Mesa-7.9.2/src/mesa'
>> make[1]: *** [subdirs] Error 1
>> make[1]: Leaving directory `/root/Downloads/Mesa-7.9.2/src'
>> make: *** [default] Error 1
>> ***************************************************************************
>> ********************************
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-users
>


More information about the mesa-users mailing list