[Intel-gfx] Error building Mesa 3D GL driver on FreeBSD 8.1
Станислав Носырев
jools333 at gmail.com
Sun Oct 17 08:01:45 CEST 2010
1. I download the source
$: git clone git://anongit.freedesktop.org/git/mesa/mesa
2. Go into mesa
$: cd mesa
3. Try build
$: make freebsd
Got error:
In file included from ../mesa/main/version.h:31,
from ../mesa/main/core.h:49,
from glcpp/glcpp-parse.y:32:
../mesa/main/mtypes.h:92: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'GLbitfield64'
../mesa/main/mtypes.h:1761: error: expected specifier-qualifier-list
before 'GLbitfield64'
../mesa/main/mtypes.h:2592: error: expected specifier-qualifier-list
before 'GLuint64'
In file included from ../mesa/main/mtypes.h:2943,
from ../mesa/main/version.h:31,
from ../mesa/main/core.h:49,
from glcpp/glcpp-parse.y:32:
../mesa/main/dd.h:970: error: expected declaration specifiers or '...'
before 'GLuint64'
../mesa/main/dd.h:972: error: expected declaration specifiers or '...'
before 'GLuint64'
glcpp/glcpp-parse.y:36:41: warning: anonymous variadic macros were
introduced in C99
glcpp/glcpp-parse.y:323:77: warning: ISO C99 requires rest arguments to be used
glcpp/glcpp-parse.y: In function 'yyparse':
glcpp/glcpp-parse.y:419: warning: ISO C forbids braced-groups within expressions
glcpp/glcpp-parse.y:424: warning: ISO C forbids braced-groups within expressions
glcpp/glcpp-parse.y: In function '_token_create_str':
glcpp/glcpp-parse.y:719: warning: ISO C forbids braced-groups within expressions
glcpp/glcpp-parse.y:879:40: warning: ISO C99 requires rest arguments to be used
glcpp/glcpp-parse.y:885:53: warning: ISO C99 requires rest arguments to be used
glcpp/glcpp-parse.y: In function '_define_object_macro':
glcpp/glcpp-parse.y:1653: warning: ISO C forbids braced-groups within
expressions
glcpp/glcpp-parse.y: In function '_define_function_macro':
glcpp/glcpp-parse.y:1682: warning: ISO C forbids braced-groups within
expressions
glcpp/glcpp-parse.y:1684: warning: ISO C forbids braced-groups within
expressions
gmake: *** [glcpp/glcpp-parse.o] Ошибка 1
*** Error code 1
Stop in /usr/home/jools/mesa2/src.
*** Error code 1
Stop in /usr/home/jools/mesa2.
*** Error code 1
Stop in /usr/home/jools/mesa2.
4. Try build freebsd-dri
$: make realclean
$: make freebsd-dr
Got error:
makedepend -fdepend -I. -I../../../../src/gallium/include
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers
-I../../../../include -I../../../../src/mapi api.c api_context.c
api_filters.c api_images.c api_masks.c api_misc.c api_paint.c
api_params.c api_path.c api_text.c api_transform.c vgu.c vg_context.c
vg_manager.c vg_state.c vg_translate.c polygon.c bezier.c path.c
paint.c arc.c image.c renderer.c stroker.c mask.c shader.c
shaders_cache.c 2> /dev/null
gmake[2]: Leaving directory
`/usr/home/jools/mesa2/src/gallium/state_trackers/vega'
gmake[2]: Entering directory
`/usr/home/jools/mesa2/src/gallium/state_trackers/vega'
gcc -c -I. -I../../../../src/gallium/include
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers
-I../../../../include -I../../../../src/mapi -Wall -O -g -fPIC
-Wmissing-prototypes -std=c99 -Wundef -ffast-math
-I/usr/local/include -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING
-DHAVE_ALIAS -fno-strict-aliasing api.c -o api.o
In file included from api.c:31:
api.h:39:29: error: vgapi/vgapi_tmp.h: No such file or directory
api.c:35:1: warning: "MAPI_ABI_ENTRY" redefined
api.h:37:1: warning: this is the location of the previous definition
api.c:43:1: warning: "MAPI_ABI_ENTRY" redefined
api.c:35:1: warning: this is the location of the previous definition
gmake[2]: *** [api.o] Ошибка 1
gmake[2]: Leaving directory
`/usr/home/jools/mesa2/src/gallium/state_trackers/vega'
gmake[1]: *** [subdirs] Ошибка 1
gmake[1]: Leaving directory `/usr/home/jools/mesa2/src/gallium/state_trackers'
gmake: *** [default] Ошибка 1
*** Error code 1
Stop in /usr/home/jools/mesa2/src.
*** Error code 1
Stop in /usr/home/jools/mesa2.
*** Error code 1
Stop in /usr/home/jools/mesa2.
5. Try copy file and build again
$: cp /usr/home/jools/mesa2/src/gallium/state_trackers/vega/vg_api.h
/usr/home/jools/mesa2/src/mapi/vgapi/vgapi_tmp.h
$: make realclean
$: make freebsd-dri
Got error:
g++ -c -o program/sampler.o program/sampler.cpp -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -I../../include -I../../src/glsl
-I../../src/mesa -I../../src/mapi -I../../src/gallium/include
-I../../src/gallium/auxiliary -Wall -O -g -fPIC -Wall -ansi -pedantic
-I/usr/local/include -fno-strict-aliasing
gmake: *** No rule to make target `../../src/glsl/libglsl.a', required
for `libmesa.a'. Stop.
*** Error code 1
Stop in /usr/home/jools/mesa2/src.
*** Error code 1
Stop in /usr/home/jools/mesa2.
*** Error code 1
Stop in /usr/home/jools/mesa2.
P.S.
Notebook Dell 1525
Video from xorg.conf:
"Mobile GM965/GL960 Integrated Graphics Controller"
$: uname -a
FreeBSD jools_book.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sat Oct 16
12:00:35 UTC 2010
root at jools_book.net:/usr/obj/usr/src/sys/JOOLS_WK i386
$: pkg_info | grep libdrm
libdrm-2.4.22_1 Userspace interface to kernel Direct Rendering Module servi
$: pkg_info | grep make
automake-1.11.1 GNU Standards-compliant Makefile generator (1.11)
automake-1.4.6_6 GNU Standards-compliant Makefile generator (1.4)
automake-wrapper-20071109 Wrapper script for GNU automake
cmake-2.8.2 A cross-platform Makefile generator
gccmakedep-1.0.2 Create dependencies in makefiles using 'gcc -M'
gmake-3.81_4 GNU version of 'make' utility
gpgme-1.3.0 A library to make access to GnuPG easier
imake-1.0.3,1 Imake and other utilities from X.Org
libxklavier-5.0,1 An utility library to make XKB stuff easier
makedepend-1.0.2,1 A dependency generator for makefiles
qt4-makeqpf-4.6.3 Qt qtopia font creator
qt4-qmake-4.6.3 The build utility of the Qt project
tmake-1.7_5 Extremely portable perl-based make utility
xorg-cf-files-1.0.3 X.org cf files for use with imake builds
$: pkg_info | grep expat
expat-2.0.1_1 XML 1.0 parser written in C
p5-XML-Parser-2.40 Perl extension interface to James Clark's XML parser, expat
Thank you!
More information about the Intel-gfx
mailing list