embox / crosstool

Script to build toolchain for various architectures
0 stars 2 forks source link

Update to gcc-6.3.0 and other newest tools #4

Closed anton-bondarev closed 7 years ago

sikmir commented 7 years ago

Failed with:

config.status: executing libtool commands
../../readline/libreadline.a(display.o): In function `insert_some_chars':
display.c:(.text+0x4957): undefined reference to `tgoto'
../../readline/libreadline.a(display.o): In function `delete_chars':
display.c:(.text+0x4a92): undefined reference to `tgoto'
../../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
terminal.c:(.text+0x6c6): undefined reference to `BC'
terminal.c:(.text+0x6d4): undefined reference to `UP'
terminal.c:(.text+0x720): undefined reference to `BC'
terminal.c:(.text+0x72e): undefined reference to `UP'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:609: sis] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/sikmir/projects/crosstool/build-sparc/build-gdb/sim/erc32'
make[2]: *** [Makefile:129: all] Error 1
make[2]: Leaving directory '/home/sikmir/projects/crosstool/build-sparc/build-gdb/sim'
make[1]: *** [Makefile:9203: all-sim] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/sikmir/projects/crosstool/build-sparc/build-gdb'
make: *** [Makefile:856: all] Error 2
Building gdb failed

Host gcc 6.3.1.

AntonKozlov commented 7 years ago

Travis unable to build i386 by some reason (build is Killed, I can imagine some process exceed Travis memory quotes)

On my host (gcc 6.3.1 too) gcc built with success, but I also stopped on gdb, but with different error:

g++ -g -O2   -I. -I../../gdb-7.12/gdb -I../../gdb-7.12/gdb/common -I../../gdb-7.12/gdb/config -DLOCALEDIR="\"/home/anton/embox/crosstool/build-sparc/install-gdb/share/locale\"" -DHAVE_CONFIG_H -I../../gdb-7.12/gdb/../include/opcode -I../../gdb-7.12/gdb/../opcodes/.. -I../../gdb-7.12/gdb/../readline/.. -I../../gdb-7.12/gdb/../zlib -I../bfd -I../../gdb-7.12/gdb/../bfd -I../../gdb-7.12/gdb/../include -I../libdecnumber -I../../gdb-7.12/gdb/../libdecnumber  -I../../gdb-7.12/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1   -pthread -I/usr/include/guile/2.0 -I/usr/include/python3.6m -I/usr/include/python3.6m -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral  -c -o gdb.o -MT gdb.o -MMD -MP -MF .deps/gdb.Tpo ../../gdb-7.12/gdb/gdb.c
In file included from build-gnulib/import/stdio.h:53:0,
                 from ../../gdb-7.12/gdb/common/common-defs.h:31,
                 from ../../gdb-7.12/gdb/defs.h:28,
                 from ../../gdb-7.12/gdb/gdb.c:19:
build-gnulib/import/stddef.h:104:3: error: conflicting declaration 'typedef union max_align_t max_align_t'
 } max_align_t;
   ^~~~~~~~~~~
In file included from build-gnulib/import/stddef.h:55:0,
                 from build-gnulib/import/stdio.h:53,
                 from ../../gdb-7.12/gdb/common/common-defs.h:31,
                 from ../../gdb-7.12/gdb/defs.h:28,
                 from ../../gdb-7.12/gdb/gdb.c:19:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include/stddef.h:429:3: note: previous declaration as 'typedef struct max_align_t max_align_t'
 } max_align_t;
   ^~~~~~~~~~~
make[2]: *** [Makefile:1131: gdb.o] Error 1
make[2]: Leaving directory '/home/anton/embox/crosstool/build-sparc/build-gdb/gdb'
make[1]: *** [Makefile:10091: all-gdb] Error 2
make[1]: Leaving directory '/home/anton/embox/crosstool/build-sparc/build-gdb'
make: *** [Makefile:856: all] Error 2
Building gdb failed

I suppose this is good, but i386 travis build should be fixed somehow