This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb build error under msys+mingw: strip can't handle gdb-add-index.exe


When I run the command 

make install INSTALL_PROGRAM='install -s' -C gdb DESTDIR=/d/code/build_gdb/bin2017 

under msys, I see this error log message:


make: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb'
CONFIG_HEADERS=config.h:config.in \
          CONFIG_COMMANDS="default depdir" \
          CONFIG_FILES= \
          CONFIG_LINKS= \
          /bin/sh config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
config.status: executing depdir commands
make[1]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb'
make[2]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[3]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make  all-recursive
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make[6]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[3]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[2]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[1]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb'
make[1]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb'
make[2]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/doc'
make[2]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[3]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver'
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver'
make[6]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make  all-recursive
make[7]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make[8]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make[8]: Nothing to be done for `all-am'.
make[8]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[7]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[6]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-l
ibiberty-gdbserver'
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-l
ibiberty-gdbserver/testsuite'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-li
biberty-gdbserver/testsuite'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-li
biberty-gdbserver'
make[3]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[3]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver'
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver'
make[6]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make  all-recursive
make[7]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make[8]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-g
nulib-gdbserver/import'
make[8]: Nothing to be done for `all-am'.
make[8]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[7]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[6]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver/import'
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-gn
ulib-gdbserver'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-l
ibiberty-gdbserver'
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-l
ibiberty-gdbserver/testsuite'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-li
biberty-gdbserver/testsuite'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver/build-li
biberty-gdbserver'
make[3]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[2]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/gdbserver'
make[2]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/data-directory'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/data-directory'
make[2]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[3]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[4]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make  all-recursive
make[5]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make[6]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impo
rt'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[5]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[4]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib/impor
t'
make[3]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[2]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb/build-gnulib'
make[1]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb'
make[1]: Entering directory `/d/code/build_gdb/mybuildcpp2/gdb'
/bin/sh ../../binutils-gdb/gdb/../mkinstalldirs /d/code/build_gdb/bin2017/mingw/
share/gdb/python/gdb
transformed_name=`t='s,y,y,'; \
                          echo gdb | sed -e "$t"` ; \
                if test "x$transformed_name" = x; then \
                  transformed_name=gdb ; \
                else \
                  true ; \
                fi ; \
                /bin/sh ../../binutils-gdb/gdb/../mkinstalldirs /d/code/build_gd
b/bin2017/mingw/bin ; \
                install -s gdb.exe \
                        /d/code/build_gdb/bin2017/mingw/bin/$transformed_name.ex
e ; \
                /bin/sh ../../binutils-gdb/gdb/../mkinstalldirs /d/code/build_gd
b/bin2017/mingw/include/gdb ; \
                /bin/install -c -m 644 jit-reader.h /d/code/build_gdb/bin2017/mi
ngw/include/gdb/jit-reader.h
if test "x" != x; \
        then \
          transformed_name=`t='s,y,y,'; \
                            echo gcore | sed -e "$t"` ; \
                  if test "x$transformed_name" = x; then \
                    transformed_name=gcore ; \
                  else \
                    true ; \
                  fi ; \
                  /bin/sh ../../binutils-gdb/gdb/../mkinstalldirs /d/code/build_
gdb/bin2017/mingw/bin ; \
                  /bin/install -c gcore \
                          /d/code/build_gdb/bin2017/mingw/bin/$transformed_name;
 \
        fi
transformed_name=`t='s,y,y,'; \
                          echo gdb-add-index | sed -e "$t"` ; \
        if test "x$transformed_name" = x; then \
          transformed_name=gdb-add-index ; \
        else \
          true ; \
        fi ; \
        install -s ../../binutils-gdb/gdb/contrib/gdb-add-index.sh \
                /d/code/build_gdb/bin2017/mingw/bin/$transformed_name.exe
D:\code\i686-5.4.0-release-posix-dwarf-rt_v5-rev0\mingw32\bin\strip.exe:d:/code/
build_gdb/bin2017/mingw/bin/gdb-add-index.exe: File format not recognized
install: strip failed
make[1]: *** [install-only] Error 1
make[1]: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb'
make: *** [install] Error 2
make: Leaving directory `/d/code/build_gdb/mybuildcpp2/gdb'


Where does the file gdb-add-index.exe come from? How to solve this issue?
Any ideas? Thanks.

Asmwarrior


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]