[Mesa-dev] [Bug 33374] New: [bisect] FTBFS on commit 9767d3b5 (glapi: Fix OpenGL ES 1.1 and 2.0 interop)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 22 19:18:34 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33374

           Summary: [bisect] FTBFS on commit 9767d3b5 (glapi: Fix OpenGL
                    ES 1.1 and 2.0 interop)
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: dawitbro at sbcglobal.net


I have been testing r600g lately, having seen all of the excitement on Phoronix
about how well it is performing.  As a Debian user, I cannot get r600g builds
of Mesa from the Debian repos so I have been forced to build my own DEBs to be
able to use r600g at all.

Since I am not a developer, it is possible that I have goofed up the build
process.  However, I have been using my current build procedure without
problems for nearly a month... until today.

Retrieving the latest 7.11-devel version of Mesa using git, I found that
/usr/bin/makedepend was failing with a backtrace early in the build. 
Bisecting, I found that commits up to and including 

    97185bf2654f7e72d8bfcc216f905492655d4c77

still worked fine.  The next commit,

    9767d3b5ad08640737e9d8dd4feb046478ae1f4b

was broken.  Here is most of the output from the build:

options for configure: --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--infodir=${prefix}/share/info --mandir=${prefix}/share/man
--build=x86_64-linux-gnu --enable-asm --enable-opengl --enable-gles1
--enable-gles2 --enable-openvg --enable-xcb --enable-glx-tls
--enable-driglx-direct --enable-egl --enable-glu --enable-glw --disable-glut
--enable-gallium --enable-gallium-swrast --enable-gallium-egl
--enable-gallium-radeon --enable-gallium-r600 --with-driver=dri
--with-dri-driverdir=/usr/lib/dri --with-dri-drivers=swrast,r300,r600
--with-state-trackers=egl,glx,dri,vega --with-egl-platforms=x11,drm

mkdir -p debian/stamp
> debian/stamp/stamp1
QUILT_PATCHES=debian/patches \
        quilt --quiltrc /dev/null push -a || test $? = 2
No patches in series
touch debian/stamp/qstamp
autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:15: warning: AC_INIT: not a literal:
https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Autoheader
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
dh_testdir
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--infodir=\${prefix}/share/info --mandir=\${prefix}/share/man
--build=x86_64-linux-gnu --enable-asm --enable-opengl --enable-gles1
--enable-gles2 --enable-openvg --enable-xcb --enable-glx-tls
--enable-driglx-direct --enable-egl --enable-glu --enable-glw --disable-glut
--enable-gallium --enable-gallium-swrast --enable-gallium-egl
--enable-gallium-radeon --enable-gallium-r600 --with-driver=dri
--with-dri-driverdir=/usr/lib/dri --with-dri-drivers=swrast,r300,r600
--with-state-trackers=egl,glx,dri,vega --with-egl-platforms=x11,drm
CFLAGS="-Wall -g -O2"
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-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... no
checking for make... make
checking for python2... no
checking for python... python
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_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 TALLOC... 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... 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 XCB_DRI2... yes
checking for LIBUDEV... yes
checking for GLW... yes
checking udis86.h usability... no
checking udis86.h presence... no
checking for udis86.h... no
checking for llvm-config... no
configure: creating ./config.status
config.status: creating configs/autoconf
config.status: executing configs commands

        prefix:          /usr
        exec_prefix:     ${prefix}
        libdir:          ${exec_prefix}/lib
        includedir:      ${prefix}/include

        OpenGL:          yes (ES1: yes ES2: yes)
        OpenVG:          yes

        Driver:          dri
        OSMesa:          no
        DRI drivers:     swrast r300 r600
        DRI driver dir:  /usr/lib/dri
        Use XCB:         yes

        GLU:             yes
        GLw:             yes (Motif: no)
        glut:            no

        EGL:             yes
        EGL platforms:   x11 drm
        EGL drivers:     builtin:egl_glx builtin:egl_dri2 egl_gallium
        EGL Gallium STs: $(GL_LIB) $(VG_LIB)

        llvm:            no

        Gallium:         yes
        Gallium dirs:    auxiliary drivers state_trackers
        Target dirs:      egl dri-r300 dri-r600 dri-swrast
        Winsys dirs:     sw sw/xlib sw/dri i915/sw radeon/drm r600/drm
        Driver dirs:     softpipe failover galahad trace rbug noop identity
svga i915 i965 r300 r600
        Trackers dirs:   egl glx dri vega

        Shared libs:     yes
        Static libs:     no

        CFLAGS:          -Wall -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_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2
-DHAVE_LIBUDEV -DUSE_X86_64_ASM

        PYTHON2:         python

        Run 'make' to build Mesa

/usr/bin/make
make[1]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5'
make[2]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src'
Making sources for autoconf
make[3]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/shared-glapi'
make[4]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/glapi/gen-es'
python -t -O -O ../../../../src/mapi/mapi/mapi_abi.py \
        --printer shared-glapi --mode lib ../gen/gl_and_es_API.xml >
../../../../src/mapi/shared-glapi/glapi_mapi_tmp.h
make[4]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/glapi/gen-es'
running /usr/bin/makedepend
*** glibc detected *** /usr/bin/makedepend: double free or corruption (!prev):
0x0000000000d37480 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71ad6)[0x2b1f64a93ad6]
/lib/libc.so.6(cfree+0x6c)[0x2b1f64a9884c]
/usr/bin/makedepend[0x401fcd]
/usr/bin/makedepend[0x403ae0]
/usr/bin/makedepend[0x403cef]
/usr/bin/makedepend[0x404026]
/usr/bin/makedepend[0x403ae0]
/usr/bin/makedepend[0x402664]
/lib/libc.so.6(__libc_start_main+0xfd)[0x2b1f64a40c4d]
/usr/bin/makedepend[0x401069]
======= Memory map: ========
00400000-00407000 r-xp 00000000 08:0a 70691                             
/usr/bin/makedepend
00606000-00607000 rw-p 00006000 08:0a 70691                             
/usr/bin/makedepend
00607000-0061c000 rw-p 00000000 00:00 0 
00d30000-00ed7000 rw-p 00000000 00:00 0                                  [heap]
2b1f64802000-2b1f64820000 r-xp 00000000 08:0a 537798                    
/lib/ld-2.11.2.so
2b1f64820000-2b1f64823000 rw-p 00000000 00:00 0 
2b1f64a1f000-2b1f64a20000 r--p 0001d000 08:0a 537798                    
/lib/ld-2.11.2.so
2b1f64a20000-2b1f64a21000 rw-p 0001e000 08:0a 537798                    
/lib/ld-2.11.2.so
2b1f64a21000-2b1f64a22000 rw-p 00000000 00:00 0 
2b1f64a22000-2b1f64b7a000 r-xp 00000000 08:0a 537753                    
/lib/libc-2.11.2.so
2b1f64b7a000-2b1f64d79000 ---p 00158000 08:0a 537753                    
/lib/libc-2.11.2.so
2b1f64d79000-2b1f64d7d000 r--p 00157000 08:0a 537753                    
/lib/libc-2.11.2.so
2b1f64d7d000-2b1f64d7e000 rw-p 0015b000 08:0a 537753                    
/lib/libc-2.11.2.so
2b1f64d7e000-2b1f64d85000 rw-p 00000000 00:00 0 
2b1f64d98000-2b1f64dae000 r-xp 00000000 08:0a 537528                    
/lib/libgcc_s.so.1
2b1f64dae000-2b1f64fad000 ---p 00016000 08:0a 537528                    
/lib/libgcc_s.so.1
2b1f64fad000-2b1f64fae000 rw-p 00015000 08:0a 537528                    
/lib/libgcc_s.so.1
2b1f68000000-2b1f68021000 rw-p 00000000 00:00 0 
2b1f68021000-2b1f6c000000 ---p 00000000 00:00 0 
7fff5ef42000-7fff5ef63000 rw-p 00000000 00:00 0                         
[stack]
7fff5eff2000-7fff5eff3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]
make[3]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/shared-glapi'
make[3]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/shared-glapi'
make[4]: Entering directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/glapi/gen-es'
make[4]: Nothing to be done for `shared-glapi'.
make[4]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/glapi/gen-es'
make[3]: *** No rule to make target `/usr/inc)', needed by `entry.o'.  Stop.
make[3]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src/mapi/shared-glapi'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory
`/home/dawitbro/sandbox/xorg-local/mesa/bisect/mesa-7.11.0+devel+git110120.9767d3b5'
make: *** [debian/stamp/stamp2] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Obviously, I'm building much more of Mesa than I probably need.  This is only
because I stuck very closely to the Debian build setup to get my DEB packages,
and they build many more packages than I do.  If this turns out to be a real
bug, instead of some error on my part, then I guess it was for the best that I
was building more than I need to and discovered the problem.

HTH.  If more info would be helpful, just let me know.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list