Results 1 to 3 of 3

Thread: Can't Build mesa git

  1. #1
    Join Date
    Oct 2007
    Posts
    1,323

    Default Can't Build mesa git

    I use libdrm from git, too, and that builds/installs fine. This error is preventing me from building mesa git on my Debian sid amd64 system with RadeonHD 4550. I've tried doing a git clean, and even cloning a fresh copy, but it still gives the same error. It's been happening for weeks, and I'm finally breaking down and asking for help:

    make[3]: *** No rule to make target `../../../../src/gallium/auxiliary/libgallium.a', needed by `r600_dri.so'. Stop.

    Here is the configure process (I made a few minor edits to avoid legal controversy ;P ):
    Code:
    # ./autogen.sh --prefix=/usr/local --with-gallium-drivers=r600,swrast --disable-egl --enable-vdpau --with-dri-drivers=radeon
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal -I m4
    autoreconf: configure.ac: tracing
    autoreconf: running: libtoolize --copy
    autoreconf: running: /usr/bin/autoconf
    autoreconf: configure.ac: not using Autoheader
    autoreconf: running: automake --add-missing --copy --no-force
    autoreconf: Leaving directory `.'
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for style of include used by make... 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 dependency style of gcc... gcc3
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    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 dependency style of gcc... (cached) gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for ld used by g++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether gcc and cc understand -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for gmake... no
    checking for make... make
    checking for python2... no
    checking for python... python
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking for makedepend... /usr/bin/makedepend
    checking for bison... bison -y
    checking for bison... /usr/bin/bison
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for perl... /usr/bin/perl
    checking for indent... cat
    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 -Werror=missing-prototypes... yes
    checking whether gcc supports -fvisibility=hidden... yes
    checking whether g++ supports -fvisibility=hidden... yes
    checking whether to enable assembly... yes, x86_64
    checking for gcc option to produce PIC... -fPIC
    checking for dlopen... no
    checking for dlopen in -ldl... yes
    checking for posix_memalign... yes
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for PTHREAD_PRIO_INHERIT... no
    checking for LIBDRM... yes
    checking for X11... yes
    checking for GLPROTO... yes
    checking for DRI2PROTO... yes
    checking for XF86VIDMODE... yes
    checking for DRIGL... yes
    checking expat.h usability... yes
    checking expat.h presence... yes
    checking for expat.h... yes
    checking for XML_ParserCreate in -lexpat... yes
    checking for RADEON... yes
    checking for VDPAU... yes
    checking for llvm-config... /usr/bin/llvm-config
    checking for RADEON... yes
    configure: creating ./config.status
    config.status: creating configs/current
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/egl/Makefile
    config.status: creating src/egl/drivers/Makefile
    config.status: creating src/egl/drivers/dri2/Makefile
    config.status: creating src/egl/drivers/glx/Makefile
    config.status: creating src/egl/main/Makefile
    config.status: creating src/egl/main/egl.pc
    config.status: creating src/egl/wayland/Makefile
    config.status: creating src/egl/wayland/wayland-drm/Makefile
    config.status: creating src/egl/wayland/wayland-egl/Makefile
    config.status: creating src/egl/wayland/wayland-egl/wayland-egl.pc
    config.status: creating src/gallium/Makefile
    config.status: creating src/gallium/auxiliary/pipe-loader/Makefile
    config.status: creating src/gallium/drivers/Makefile
    config.status: creating src/gallium/drivers/r300/Makefile
    config.status: creating src/gallium/drivers/r600/Makefile
    config.status: creating src/gallium/state_trackers/clover/Makefile
    config.status: creating src/gallium/targets/opencl/Makefile
    config.status: creating src/gbm/Makefile
    config.status: creating src/gbm/main/gbm.pc
    config.status: creating src/glsl/Makefile
    config.status: creating src/glsl/glcpp/Makefile
    config.status: creating src/glsl/tests/Makefile
    config.status: creating src/glx/Makefile
    config.status: creating src/glx/tests/Makefile
    config.status: creating src/gtest/Makefile
    config.status: creating src/mapi/es1api/Makefile
    config.status: creating src/mapi/es1api/glesv1_cm.pc
    config.status: creating src/mapi/es2api/Makefile
    config.status: creating src/mapi/es2api/glesv2.pc
    config.status: creating src/mapi/glapi/Makefile
    config.status: creating src/mapi/glapi/gen/Makefile
    config.status: creating src/mapi/glapi/tests/Makefile
    config.status: creating src/mapi/shared-glapi/Makefile
    config.status: creating src/mapi/shared-glapi/tests/Makefile
    config.status: creating src/mapi/vgapi/Makefile
    config.status: creating src/mapi/vgapi/vg.pc
    config.status: creating src/mesa/Makefile
    config.status: creating src/mesa/gl.pc
    config.status: creating src/mesa/drivers/Makefile
    config.status: creating src/mesa/drivers/dri/dri.pc
    config.status: creating src/mesa/drivers/dri/common/Makefile
    config.status: creating src/mesa/drivers/dri/i915/Makefile
    config.status: creating src/mesa/drivers/dri/i965/Makefile
    config.status: creating src/mesa/drivers/dri/Makefile
    config.status: creating src/mesa/drivers/dri/nouveau/Makefile
    config.status: creating src/mesa/drivers/dri/r200/Makefile
    config.status: creating src/mesa/drivers/dri/radeon/Makefile
    config.status: creating src/mesa/drivers/dri/swrast/Makefile
    config.status: creating src/mesa/drivers/osmesa/Makefile
    config.status: creating src/mesa/drivers/osmesa/osmesa.pc
    config.status: creating src/mesa/drivers/x11/Makefile
    config.status: creating src/mesa/libdricore/Makefile
    config.status: creating src/mesa/main/tests/Makefile
    config.status: creating src/mesa/x86-64/Makefile
    config.status: creating src/mesa/x86/Makefile
    config.status: executing depfiles commands
    config.status: executing libtool commands
    
            prefix:          /usr/local
            exec_prefix:     ${prefix}
            libdir:          ${exec_prefix}/lib
            includedir:      ${prefix}/include
    
            OpenGL:          yes (ES1: no ES2: no)
            OpenVG:          no
    
            OSMesa:          no
            DRI drivers:     radeon
            DRI driver dir:  ${libdir}/dri
            GLX:             DRI-based
    
            EGL:             no
    
            llvm:            yes
            llvm-config:     /usr/bin/llvm-config
            llvm-version:    3.1
    
            Gallium:         yes
            Gallium dirs:    auxiliary drivers state_trackers
            Target dirs:     dri-r600 dri-swrast vdpau-r600 vdpau-softpipe 
            Winsys dirs:     radeon/drm sw sw/dri sw/xlib 
            Driver dirs:     galahad identity llvmpipe noop r600 rbug softpipe trace 
            Trackers dirs:   dri vdpau 
    
            Shared libs:     yes
            Static libs:     no
            Shared-glapi:    yes
    
            CFLAGS:          -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -fPIC
            CXXFLAGS:        -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -fPIC
            Macros:          -D_GNU_SOURCE -DUSE_X86_64_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_LLVM=0x0301
    
            PYTHON2:         python
    
            Run 'make' to build Mesa

  2. #2
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,333

    Default

    Wrong place, go to #dri-devel on freenode.

  3. #3
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    1,052

    Default

    Well, on Archlinux I built it today with this, so you can try with a config that is known to work...

    Code:
       ./autogen.sh --prefix=/usr \
       --with-dri-driverdir=/usr/lib/xorg/modules/dri \
       --with-gallium-drivers=r600 \
       --with-dri-drivers= \
       --with-egl-platforms=x11,drm \
       --enable-texture-float \
       --enable-gles1 \
       --enable-gles2 \
       --enable-egl \
       --enable-xa \
       --enable-vdpau \
       --enable-gallium-g3dvl \
       --enable-glx-tls \
       --enable-glu \
       --enable-gbm \
       --enable-gallium-gbm \
       --enable-shared-glapi \
       --enable-gallium-llvm \
       --enable-openvg \
       --enable-gallium-egl \
       --enable-osmesa \
       --enable-r600-llvm-compiler
    But the xorg state tracker didn't compile with the latest x.org git.
    Last edited by ChrisXY; 10-05-2012 at 11:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •