Closed Bug 314976 Opened 19 years ago Closed 19 years ago

HOST_OPTIMIZE_FLAGS kills the debug flags

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mmokrejs, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051103 SeaMonkey/1.1a Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051103 SeaMonkey/1.1a I configured mozilla-source-2005110105-trunk with ./configure --disable-optimize --enable-debug='-g3 -O0 -ggdb' --enable-debug-modules=all --enable-debugger-info-modules --enable-detect-webshell-leaks --enable-svg --enable-svg-renderer-libart --enable-image-decoders=all --with-qtdir=/usr/qt/3 --enable-application=suite --disable-freetype2 --enable-jprof --enable-default-toolkit=gtk2 --enable-xft --disable-gssapi but the build is without debug symbols. The MOZ_DEBUG_FLAGS is set correctly but the HOST_OPTIMIZE_FLAGS interferes with them and overrides with -O3 on my linux box. I propose the HOST_OPTIMIZE_FLAGS be unset when MOZ_DEBUG_FLAGS are non-empty. I think someone had objections against this and that should be in those older bugreports. Please look at old patches in bugs #268292, #232748, #284767. The patches I've submitted some time ago were not that good, but this part of the former bugreport is still unsolved. Reproducible: Always
As I explained in bug 284767 comment 5, HOST_OPTIMIZE_FLAGS is only used for a handful of targets that are only used during the build process. Also, I believe the variable is only used when cross-compiling (see config/config.mk) and can be easily overridden by setting HOST_OPTIMIZE_FLAGS in your mozconfig file. My non-cross-compiled debug build log doesn't show anything being built with the default HOST_OPTIMIZE_FLAGS. Can you point out which part of your build is using HOST_OPTIMIZE_FLAGS or why you think you're missing debug symbols?
Product: Mozilla Application Suite → Core
Summary: HOST_OPTIMIZE_FLAGS kills the debugs flags → HOST_OPTIMIZE_FLAGS kills the debug flags
Version: unspecified → Trunk
Attached file config.status
The symbols in gdb are unavailable, mostly. I have seamonkey crashing on some attachment, but the stacktrace is not much useful. I can however confirm there is no -O3/-O2 optimization in the nohup.out file gathered while compiling sources. I cannot find even a 'strip' substring ... Any clues where are the symbiols then? I compile with -O0 and -ggdb.
Ok, whatever the problem is that you're seeing, it's not due to HOST_OPTIMIZE_FLAGS. If you are packaging up the build, be aware that the installer Makefiles strip the binaries before creating the tarballs. Othewrise, the binaries under dist/ should have the full debugging info available.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: