デバッグをオンにして binutils 2.21 ソース コードをビルドしようとしています。私の主な目的は、実際に objdump をデバッグすることです。しかし、それをビルドするには、パッケージ全体をビルドする必要があると思います。
残念ながら、構成ファイルにはデバッグ オプションがありません。設定する前に -g と -ggdb を CFLAGS に追加してみました。ただし、エラーは次のとおりです。
Configuring in ./intl
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: `-g -O2 -D__USE_MINGW_ACCESS'
configure: current value: `-g -D__USE_MINGW_ACCESS'
configure: error: in `/c/binutils-2.21/intl':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [configure-intl] Error 1
make[1]: Leaving directory `/c/binutils-2.21'
make: *** [all] Error 2
「make clean」と「make distclean」を試しましたが、同じエラーが発生します。実際、以前の CFLAGS によると、以前は -g オプションがオンになっていましたが、gdb で objdump.exe を開こうとすると、
Reading symbols from c:\binutils-2.21\binutils/objdump.exe...
(no debugging symbols found)...done.
前もって感謝します。