Bug#368366: no line number info even with DEB_BUILD_OPTIONS="nostrip noopt debug"

Timo Juhani Lindfors timo.lindfors at iki.fi
Sun May 21 15:36:24 UTC 2006


Package: libgl1-mesa-swx11
Version: 6.4.1-0.4
Severity: normal

Steps to reproduce:
1) DEB_BUILD_OPTIONS="nostrip noopt debug" fakeroot apt-get --build source libgl1-mesa-swx11

Expected results:
1) libgl1-mesa-swx11 should be built with debugging symbols.

Actual results:
1) libgl1-mesa-swx11 builds but the resulting binaries don't contain
line number information. This happens because 'cc' is called without
the '-g' option:

cc -c -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -ansi -pedantic -Wall -fPIC -std=c99 -O2 main/api_arrayelt.c -o main/api_arrayelt.o


Currently debian/rules tries to set CFLAGS so that it includes "-g" to
comply with policy 10.1 but for some reason it has no effect on the
build process.

I tried to look around but couldn't figure out any obvious way to
force "-g" everywhere except by using a wrapper script for 'cc'.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29sauna
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)

Versions of packages libgl1-mesa-swx11 depends on:
ii  libc6                         2.3.6-9    GNU C Library: Shared libraries
ii  libglu1-mesa [libglu1]        6.4.1-0.4  The OpenGL utility library (GLU)
ii  libx11-6                      2:1.0.0-6  X11 client-side library
ii  libxext6                      1:1.0.0-4  X11 miscellaneous extension librar

libgl1-mesa-swx11 recommends no packages.

-- no debconf information




More information about the Pkg-mesa-devel mailing list