tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
GCC 5.x and ia64 and MKMAINTAINERTOOLS failing
I am trying to build ia64 with the newer tools:
build.sh -V HAVE_GCC=53 -V HAVE_BINUTILS=226 -V HAVE_GDB=710
It eventually errors out looking for BITS_PER_UNIT
--- unwind-ia64.d ---
In file included from /home/scole/nbsd/src/external/gpl3/gcc/usr.bin/gcc/arch/ia64/tm.h:36:0,
from /home/scole/nbsd/src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:32:
/home/scole/nbsd/src/external/gpl3/gcc/dist/libgcc/../gcc/defaults.h:484:2: error: #error Unknown BITS_PER_UNIT
#error Unknown BITS_PER_UNIT
That #define I believe is in insn-modes.h but which appears to be
missing for ia64, and should be in here:
src/external/gpl3/gcc/usr.bin/gcc/arch/ia64/
But the files in the above dir are relatively old compared to other
archs/ and it seems like mknative needs to be run. I tried to do so
following the instructions in:
src/tools/gcc/README.mknative
but setting MKMAINTAINERTOOLS=yes causes the tools target to fail. It
looks like it is dying in strtoi().
I can build ia64 tools with my local mods fine
./build.sh -m ia64 -U tools
without MKMAINTAINERTOOLS.
Am I going down the right path?
Thanks for any suggestions.
[snipped...]
Making all in autoscan
echo '# Automatically Generated: do not edit this file' >autoscan.list
sed '/^[#]/!q' /home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/lib/autoscan/autoscan.pre >>autoscan.list
( sed -n '/^[^#]/p' /home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/lib/autoscan/autoscan.pre; autom4te_perllibdir='/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib AUTOM4TE_CFG='../../lib/autom4te.cfg' ../../bin/autom4te -B '../..'/lib -B '/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib --cache '' -M -l autoconf -t'AN_OUTPUT:$1: $2 $3' ) | LC_ALL=C sort >>autoscan.list
Making all in emacs
WARNING: Warnings can be ignored. :-)
if test "emacs" != no; then set x; list='autoconf-mode.el autotest-mode.el'; for p in $list; do if test -f "$p"; then d=; else d="/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/lib/emacs/"; fi; set x "$@" "$d$p"; shift; done; shift; EMACS="emacs" /bin/sh /home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/build-aux/elisp-comp "$@" || exit 1; else : ; fi
Wrote /home/scole/nbsd/src/tools/autoconf/obj/build/lib/emacs/elc.11091/autoconf-mode.elc
Wrote /home/scole/nbsd/src/tools/autoconf/obj/build/lib/emacs/elc.11091/autotest-mode.elc
Making all in doc
Making all in tests
autom4te_perllibdir='/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib --language=M4sh /home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/tests/wrapper.as -o wrapper.in
[1] Segmentation fault (core dumped) /home/scole/nbsd...
autom4te: /home/scole/nbsd/src/obj/tooldir.NetBSD-7.0.1_PATCH-i386/bin/nbm4 failed with exit status: 139
*** Failed target: wrapper.in
*** Failed command: autom4te_perllibdir='/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '/home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist'/lib --language=M4sh /home/scole/nbsd/src/tools/autoconf/../../external/gpl3/autoconf/dist/tests/wrapper.as -o wrapper.in
*** Error code 139
Stop.
nbmake[6]: stopped in /home/scole/nbsd/src/tools/autoconf/obj/build/tests
shell> gdb ~/nbsd/src/obj/tooldir.NetBSD-7.0.1_PATCH-i386/bin/nbm4 obj/build/bin/nbm4.core
...
[New process 1]
Core was generated by `nbm4'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x08055485 in strtoi ()
(gdb) bt
#0 0x08055485 in strtoi ()
#1 0x0804bd20 in eval ()
#2 0x0804d316 in macro ()
#3 0x0804db0b in main ()
Home |
Main Index |
Thread Index |
Old Index