Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build Toolchain #4

Open
loglux opened this issue Feb 4, 2021 · 1 comment
Open

Unable to build Toolchain #4

loglux opened this issue Feb 4, 2021 · 1 comment

Comments

@loglux
Copy link

loglux commented Feb 4, 2021

Ubuntu 16.04

vagrant@ubuntu-xenial:~$ git clone https://github.com/crosstool-ng/crosstool-ng.git
Cloning into 'crosstool-ng'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 38938 (delta 0), reused 0 (delta 0), pack-reused 38936
Receiving objects: 100% (38938/38938), 14.49 MiB | 4.94 MiB/s, done.
Resolving deltas: 100% (25000/25000), done.
Checking connectivity... done.
vagrant@ubuntu-xenial:~$ cd crosstool-ng
vagrant@ubuntu-xenial:~/crosstool-ng$ git checkout crosstool-ng-1.22.0
Note: checking out 'crosstool-ng-1.22.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at ced321f... Merge pull request #279 from bhundven/mingw-w64-experimental
vagrant@ubuntu-xenial:~/crosstool-ng$ ./bootstrap
Running autoconf...
Done. You may now run:
    ./configure
vagrant@ubuntu-xenial:~/crosstool-ng$ ./configure --enable-local
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gobjcopy... no
checking for objcopy... objcopy
checking for absolute path to objcopy... /usr/bin/objcopy
checking for gobjdump... no
checking for objdump... objdump
checking for absolute path to objdump... /usr/bin/objdump
checking for greadelf... no
checking for readelf... readelf
checking for absolute path to readelf... /usr/bin/readelf
checking for gperf... gperf
checking for absolute path to gperf... /usr/bin/gperf
checking for bison... bison
checking for flex... flex
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for help2man... help2man
checking for gpatch... no
checking for patch... patch
checking for absolute path to patch... /usr/bin/patch
checking for bash >= 3.1... /bin/bash
checking for GNU awk... /usr/bin/gawk
checking for GNU make >= 3.80... /usr/bin/make
checking whether /usr/bin/make sets $(MAKE)... yes
checking for make 3.81... no
checking for GNU libtool >= 1.5.26... /usr/bin/libtool
checking for GNU libtoolize >= 1.5.26... /usr/bin/libtoolize
checking for GNU automake >= 1.10... /usr/bin/automake
checking for xz... xz
checking for cvs... no
checking for svn... no
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether gettext is declared... yes
checking for library containing bindtextdomain... none required
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing initscr... -lncurses
checking for library containing tgetent... none required
configure: overiding all of --prefix and the likes, because --enable-local was set
configure: creating ./config.status
config.status: creating Makefile
vagrant@ubuntu-xenial:~/crosstool-ng$ make
  SED    'ct-ng'
  SED    'scripts/crosstool-NG.sh'
  SED    'scripts/saveSample.sh'
  SED    'scripts/showTuple.sh'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  DEP    'nconf.gui.dep'
  DEP    'nconf.dep'
  DEP    'lxdialog/yesno.dep'
  DEP    'lxdialog/util.dep'
  DEP    'lxdialog/textbox.dep'
  DEP    'lxdialog/menubox.dep'
  DEP    'lxdialog/inputbox.dep'
  DEP    'lxdialog/checklist.dep'
  DEP    'mconf.dep'
  DEP    'conf.dep'
  BISON  'zconf.tab.c'
  GPERF  'zconf.hash.c'
  LEX    'zconf.lex.c'
  DEP    'zconf.tab.dep'
  CC     'zconf.tab.o'
  CC     'conf.o'
  LD     'conf'
  CC     'lxdialog/checklist.o'
  CC     'lxdialog/inputbox.o'
  CC     'lxdialog/menubox.o'
  CC     'lxdialog/textbox.o'
  CC     'lxdialog/util.o'
  CC     'lxdialog/yesno.o'
  CC     'mconf.o'
  LD     'mconf'
  CC     'nconf.o'
  CC     'nconf.gui.o'
  LD     'nconf'
  SED    'docs/ct-ng.1'
  GZIP   'docs/ct-ng.1.gz'
vagrant@ubuntu-xenial:~/crosstool-ng$ make install
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng show-arm-cortex_a8-linux-gnueabi
  MKDIR config.gen
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
  IN    config.gen/debug.in
[L..]   arm-cortex_a8-linux-gnueabi
    OS             : linux-4.3
    Companion libs : gmp-6.0.0a mpfr-3.1.3 mpc-1.0.3 libelf-0.8.13 expat-2.1.0 ncurses-6.0
    binutils       : binutils-2.25.1
    C compilers    : gcc  |  5.2.0
    Languages      : C,C++
    C library      : glibc-2.22 (threads: nptl)
    Tools          : dmalloc-5.5.2 duma-2_5_15 gdb-7.10 ltrace-0.7.3 strace-4.10
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng arm-cortex_a8-linux-gnueabi
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
  CONF  config/config.in
#
# configuration written to .config
#

***********************************************************

Initially reported by: Yann E. MORIN
URL: http://ymorin.is-a-geek.org/

***********************************************************

Now configured for "arm-cortex_a8-linux-gnueabi"
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng menuconfig
 .config - Crosstool-NG Configuration
 ────────────────────────────────────────────────────────────────────────────────────────────
  ┌───────────────────────────── Crosstool-NG Configuration ──────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus      │
  │  ----).  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M>   │
  │  modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.       │
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable                   │
  │ ┌───────────────────────────────────────────────────────────────────────────────────┐ │
  │ │          Paths and misc options  --->                                             │ │
  │ │          Target options  --->                                                     │ │
  │ │          Toolchain options  --->                                                  │ │
  │ │          Operating System  --->                                                   │ │
  │ │          Binary utilities  --->                                                   │ │
  │ │          C-library  --->                                                          │ │
  │ │          C compiler  --->                                                         │ │
  │ │          Debug facilities  --->                                                   │ │
  │ │          Companion libraries  --->                                                │ │
  │ │          Companion tools  --->                                                    │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ │                                                                                   │ │
  │ └───────────────────────────────────────────────────────────────────────────────────┘ │
  ├───────────────────────────────────────────────────────────────────────────────────────┤
  │               <Select>    < Exit >    < Help >    < Save >    < Load >                │
  └───────────────────────────────────────────────────────────────────────────────────────┘


  GEN    'paths.sh'
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng show-arm-cortex_a8-linux-gnueabi
  MKDIR config.gen
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
  IN    config.gen/debug.in
[L..]   arm-cortex_a8-linux-gnueabi
    OS             : linux-4.3
    Companion libs : gmp-6.0.0a mpfr-3.1.3 mpc-1.0.3 libelf-0.8.13 expat-2.1.0 ncurses-6.0
    binutils       : binutils-2.25.1
    C compilers    : gcc  |  5.2.0
    Languages      : C,C++
    C library      : glibc-2.22 (threads: nptl)
    Tools          : dmalloc-5.5.2 duma-2_5_15 gdb-7.10 ltrace-0.7.3 strace-4.10
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng arm-cortex_a8-linux-gnueabi
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
  CONF  config/config.in
#
# configuration written to .config
#

***********************************************************

Initially reported by: Yann E. MORIN
URL: http://ymorin.is-a-geek.org/

***********************************************************

Now configured for "arm-cortex_a8-linux-gnueabi"
vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng menuconfig
  CONF  config/config.in
.config:149:warning: override: reassigning to symbol ARCH_32
.config:149:warning: override: ARCH_32 changes choice state


*** End of the configuration.
*** Execute 'ct-ng build' to start the build or try 'ct-ng help'.

vagrant@ubuntu-xenial:~/crosstool-ng$ ./ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20210204.121110
[INFO ]  Building environment variables
[WARN ]  Directory '/home/vagrant/src' does not exist.
[WARN ]  Will not save downloaded tarballs to local storage.
[EXTRA]  Preparing working directories
[EXTRA]  Installing user-supplied crosstool-NG configuration
[EXTRA]  =================================================================
[EXTRA]  Dumping internal crosstool-NG configuration
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = x86_64-pc-linux-gnu
[EXTRA]      host   = x86_64-pc-linux-gnu
[EXTRA]      target = arm-cortex_a8-linux-gnueabihf
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.19s (at 00:03)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[EXTRA]    Retrieving 'linux-4.3'
[EXTRA]    Retrieving 'gmp-6.0.0a'
[EXTRA]    Retrieving 'mpfr-3.1.3'
[EXTRA]    Retrieving 'isl-0.14'
[EXTRA]    Retrieving 'mpc-1.0.3'
[EXTRA]    Retrieving 'libelf-0.8.13'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_libelf_get[scripts/build/companion_libs/200-libelf.sh@741]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@591]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'docs/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 0:12.62)
[00:13] / ct-ng:152: recipe for target 'build' failed
make: *** [build] Error 1
vagrant@ubuntu-xenial:~/crosstool-ng$

@BigSully
Copy link

You can tell from Build failed in step 'Retrieving needed toolchain components' tarballs' that crosstool-ng cannot download some tar files when building toolchain. It's probably your networking issue rather than resource unavailability. Slow networking condition might also lead to this type of failure. You might retry the build command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants