It turned out some old i915_drm.h files were in the complier's search path. I 
just removed those old files.

Thanks
Bertrand


From: eugeni.dodo...@gmail.com [mailto:eugeni.dodo...@gmail.com] On Behalf Of 
Eugeni Dodonov
Sent: Tuesday, May 15, 2012 6:48 PM
To: Kong, Bertrand C
Cc: Intel Graphics Development
Subject: Re: [Intel-gfx] mesa compile error

On Tue, May 15, 2012 at 3:50 PM, Kong, Bertrand C 
<bertrand.c.k...@intel.com<mailto:bertrand.c.k...@intel.com>> wrote:
Hi All,

I tried to compile mesa and got the follow errors. Can someone tell me what the 
problem is?

Thanks
Bertrand


intel_blit.c: In function \u2018intel_emit_linear_blit\u2019:
intel_blit.c:488:9: warning: variable \u2018ok\u2019 set but not used 
[-Wunused-but-set-variable]
intel_batchbuffer.c: In function \u2018intel_batchbuffer_save_state\u2019:
intel_batchbuffer.c:96:7: warning: implicit declaration of function 
\u2018drm_intel_gem_bo_get_reloc_count\u2019 [-Wimplicit-function-declaration]
intel_batchbuffer.c: In function \u2018intel_batchbuffer_reset_to_saved\u2019:
intel_batchbuffer.c:102:4: warning: implicit declaration of function 
\u2018drm_intel_gem_bo_clear_relocs\u2019 [-Wimplicit-function-declaration]
intel_batchbuffer.c: In function \u2018do_flush_locked\u2019:
intel_batchbuffer.c:148:12: error: \u2018I915_EXEC_GEN7_SOL_RESET\u2019 
undeclared (first use in this function)
intel_batchbuffer.c:148:12: note: each undeclared identifier is reported only 
once for each function it appears in

You need libdrm 2.4.30 or newer, could you check if your include path contains 
the right libdrm directory? I915_EXEC_GEN7_SOL_RESET should be defined in 
/usr/include/libdrm/i915_drm.h.

--
Eugeni Dodonov
<http://eugeni.dodonov.net/>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to