GithubHelp home page GithubHelp logo

koxtoolchain's Introduction

KOReader Cross Compile ToolChains

Build scripts to help generate cross ToolChains for various platforms supported by KOReader.

Dependencies

  • git
  • ncurses
  • gperf
  • help2man
  • bison
  • texinfo
  • flex
  • gawk
  • unzip

For Arch users:

sudo pacman -S base-devel curl git gperf help2man unzip wget

For Debian/Ubuntu users:

sudo apt-get install build-essential autoconf automake bison flex gawk libtool libtool-bin libncurses-dev curl file git gperf help2man texinfo unzip wget

Usage

The build script takes a platform name as its first argument. For example, to build a cross toolchain for legacy non-touch kindle devices, type:

./gen-tc.sh kindle

You can use ./gen-tc.sh -h to get a list of supported platforms.

After the build is finished, you should be able to find your cross ToolChains under the ~/x-tools directory.

The reference script can be used to automatically setup a cross-compilation environment (PATH, *FLAGS & all that jazz), as mentioned at the end of a TC build.
For example, for a Kobo TC:

source refs/x-compile.sh kobo env

Container image

You can also use a container with the precompiled toolchain. Pull the relevant image from the GitHub Container Registry. Alternatively, build the image locally using the source script (requires Buildah, run ./buildah-koxtoolchain.sh -h for instructions).

To use the containerized toolchain (for example, Kobo):

podman pull ghcr.io/koreader/koxtoolchain:kobo-latest
podman run --rm -it -v <source_folder>:/home/kox/build koxtoolchain:kobo-latest
  
kox@containerID$ <build_command>

For systems with SELinux enforcing (ex. Fedora), use this launch command instead:

podman run --rm -it -v <source_folder>:/home/kox/build:z koxtoolchain:kobo-latest

Notes

Due to a whole lot of legacy baggage, the names of the various Kindle TCs may be slightly confusing (especially compared to KOReader's target names), so, let's disambiguate that:

TC Supported Devices Target
kindle Kindle 2, DX, DXg, 3 kindle-legacy
kindle5 Kindle 4, Touch, PW1 kindle
kindlepw2 Kindle PW2 & everything since kindlepw2

No such worries on Kobo & Cervantes, though ;).

The nickel TC is a Kobo variant that mimics Kobo's own TC (as of FW >= 4.6). It is not recommended for general purpose stuff, only use it if you have a specific need for it (which should essentially be limited to working with Kobo's nickel, or Kobo's kernels).

The pocketbook TC aims for maximum backward compatibility while still keeping inkview support.

The remarkable TC aims for FW >= 2.x compatibility.

The bookeen TC has only been tested on AWA13 devices, but should theoretically handle OMAP3611 ones, too.

Known Issues

Only actively tested on Linux hosts.
May work on macOS with some efforts, if you follow crosstool-ng's recommendations on the subject. This is only bound to get worse.
May work on Windows with even more efforts, but I wouldn't bother.
When in doubt, use a Debian VM.

koxtoolchain's People

Contributors

cam-rod avatar houqp avatar niluje avatar pazos avatar pgaskin avatar roker2 avatar tcrs avatar yparitcher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

koxtoolchain's Issues

Container build script fails to compile GCC

Hello! When running ./buildah-koxtoolchain.sh kobo, it fails at the step [INFO ] Installing C library with the following error logs:

[INFO ]  =================================================================
[INFO ]  Installing C library                                                                           
[INFO ]    =================================================================
[INFO ]    Building for multilib 1/1: ''                                                                                                                                                                        
[EXTRA]      Cleaning up start files      
[EXTRA]      Configuring C library                                                                      
[EXTRA]      Building C library                                                                         
[EXTRA]      Installing C library                                                                                                                                                                               
[ERROR]      make[3]: *** [Makefile:200: /home/kox/x-tools/arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/sysroot/usr/share/info/libc.info] Error 1                                                         
[ERROR]      make[2]: *** [Makefile:221: manual/subdir_install] Error 2
[ERROR]      make[1]: *** [Makefile:10: install] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Building for multilib 1/1: '''
[ERROR]  >>        called in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@376]
[ERROR]  >>        called from: glibc_backend_once[scripts/build/libc/glibc.sh@466]
[ERROR]  >>        called from: CT_IterateMultilibs[scripts/functions@1608]
[ERROR]  >>        called from: glibc_backend[scripts/build/libc/glibc.sh@122]
[ERROR]  >>        called from: glibc_main[scripts/build/libc/glibc.sh@92]
[ERROR]  >>        called from: do_libc_main[scripts/build/libc.sh@33]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@707]
[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]  >>      https://crosstool-ng.github.io/docs/known-issues/
[ERROR]  >>
[ERROR]  >> NOTE: Your configuration includes features marked EXPERIMENTAL.
[ERROR]  >> Before submitting a bug report, try to reproduce it without enabling
[ERROR]  >> any experimental features. Otherwise, you'll need to debug it
[ERROR]  >> and present an explanation why it is a bug in crosstool-NG - or
[ERROR]  >> preferably, a fix.
[ERROR]  >>
[ERROR]  >>  If you feel this is a bug in crosstool-NG, report it at:
[ERROR]  >>      https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR]  >>
[ERROR]  >>  Make sure your report includes all the information pertinent to this issue.
[ERROR]  >>  Read the bug reporting guidelines here:
[ERROR]  >>      http://crosstool-ng.github.io/support/
[ERROR]   
[ERROR]  (elapsed: 21:37.63)
[21:39] / gmake: *** [/home/kox/koxtoolchain/build/CT_NG_BUILD/bin/ct-ng:261: build] Error 2

After this, the container is built and can be ran with the command podman run --rm -it -v .:/home/kox/build koxtoolchain:kobo-latest, however gcc and some of the other tools are missing. The contents of the /home/kox/x-tools/ directory is as follows:

arm-kobo-linux-gnueabihf/
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/ar
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/as
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/ld
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/ld.bfd
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/ld.gold
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/nm
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/objcopy
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/objdump
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/ranlib
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/readelf
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/bin/strip
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/debug-root/
arm-kobo-linux-gnueabihf/arm-kobo-linux-gnueabihf/sysroot/
arm-kobo-linux-gnueabihf/bin/
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-addr2line
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ar
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-as
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-c++filt
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ct-ng.config
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-dwp
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-elfedit
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-gprof
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ld
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ld.bfd
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ld.gold
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-nm
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-objcopy
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-objdump
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-ranlib
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-readelf
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-size
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-strings
arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-strip
arm-kobo-linux-gnueabihf/lib/
arm-kobo-linux-gnueabihf/lib/bfd-plugins/
arm-kobo-linux-gnueabihf/lib/bfd-plugins/libdep.so
arm-kobo-linux-gnueabihf/lib/ldscripts/
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.x
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xbn
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xd
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xdc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xdce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xde
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xdw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xdwe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xn
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xr
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xs
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xsc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xsce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xse
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xsw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xswe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xu
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelf_linux_eabi.xwe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.x
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xbn
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xd
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xdc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xdce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xde
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xdw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xdwe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xn
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xr
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xs
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xsc
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xsce
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xse
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xsw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xswe
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xu
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xw
arm-kobo-linux-gnueabihf/lib/ldscripts/armelfb_linux_eabi.xwe
arm-kobo-linux-gnueabihf/share/

I am building on Arch Linux, with buildah version 1.35.3 (image-spec 1.1.0, runtime-spec 1.1.0) and podman version 5.0.1. I installed the dependencies listed in the readme even though this is building inside a container, not sure if it makes a difference or not.

No toolchain that corresponds to koreader's "kindle" release target

Overview

This comes from a discussion I started on Gitter.

The toolchain built by gen-tc.sh kindle corresponds with koreader's kodev release kindle-legacy build. From what I can tell, koxtoolchain doesn't have a toolchain for kodev release kindle builds.

Discussion

The toolchains built by koxtoolchain all supply executables of the form arm-<target>-linux-* which works for all koreader release builds except "kindle". This latter looks like it expects executables without the target in the filename, i.e. like arm-linux-*.

That means that "kindle" releases will pick up gcc toolchains with standard names, as provided by typical package managers and such. However, as documented in koreader's repo README and in my case, using a distro's standard tools can end up producing non-functional builds.

Proposal

For these reasons as well as for documentation, reproducibility and consistency purposes, I think it might be worthwhile to have koxtoolchain produce a toolchain capable of building "kindle" releases as well.

Due to the naming conventions defined by koreader-base, perhaps something like gen-tc.sh generic would make the most sense?

Seemingly fails to build on aarch64 Linux

Hello,
I'm trying to build this on an Apple Silicon Mac with a Linux VM virtualized on it (Arch Linux ARM).
I get the following error:

Error
[build@inkbox koxtoolchain]$ ./gen-tc.sh kobo
[*] Building CrossTool-NG . . .
[-] ct-ng git repo: https://github.com/NiLuJe/crosstool-ng.git
[-] ct-ng commit hash: 3e2d99d030cbecc0119aa08bd06d062f59669d45
[-] compiling with 9 parallel jobs
[-] toolchain target: arm-kobo-linux-gnueabihf
~/inkbox/compiled-binaries/koxtoolchain/build ~/inkbox/compiled-binaries/koxtoolchain
Cloning into 'CT-NG'...
remote: Enumerating objects: 43642, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 43642 (delta 5), reused 10 (delta 4), pack-reused 43626
Receiving objects: 100% (43642/43642), 15.79 MiB | 2.27 MiB/s, done.
Resolving deltas: 100% (27855/27855), done.
~/inkbox/compiled-binaries/koxtoolchain/build/CT-NG ~/inkbox/compiled-binaries/koxtoolchain/build ~/inkbox/compiled-binaries/koxtoolchain
From https://github.com/NiLuJe/crosstool-ng
 * [new branch]        1.1           -> origin/1.1
 * [new branch]        1.10          -> origin/1.10
 * [new branch]        1.11          -> origin/1.11
 * [new branch]        1.12          -> origin/1.12
 * [new branch]        1.13          -> origin/1.13
 * [new branch]        1.14          -> origin/1.14
 * [new branch]        1.15          -> origin/1.15
 * [new branch]        1.16          -> origin/1.16
 * [new branch]        1.17          -> origin/1.17
 * [new branch]        1.18          -> origin/1.18
 * [new branch]        1.19          -> origin/1.19
 * [new branch]        1.2           -> origin/1.2
 * [new branch]        1.20          -> origin/1.20
 * [new branch]        1.21          -> origin/1.21
 * [new branch]        1.22          -> origin/1.22
 * [new branch]        1.23-kindle   -> origin/1.23-kindle
 * [new branch]        1.24-kindle   -> origin/1.24-kindle
 * [new branch]        1.25-koreader -> origin/1.25-koreader
 * [new branch]        1.3           -> origin/1.3
 * [new branch]        1.4           -> origin/1.4
 * [new branch]        1.5           -> origin/1.5
 * [new branch]        1.6           -> origin/1.6
 * [new branch]        1.7           -> origin/1.7
 * [new branch]        1.8           -> origin/1.8
 * [new branch]        1.9           -> origin/1.9
 * [new branch]        kindle        -> origin/kindle
 * [new branch]        master        -> origin/master
Note: switching to '3e2d99d030cbecc0119aa08bd06d062f59669d45'.

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 switching back to a branch.

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

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3e2d99d0 *sigh*
INFO  :: *** Generating package version descriptions
INFO  :: Master packages: android-ndk autoconf automake avr-libc binutils bison cloog dtc duma elf2flt expat gcc gdb gettext glibc-ports glibc gmp gnuprumcu isl libelf libiconv libtool linux ltrace m4 make mingw-w64 moxiebox mpc mpfr musl ncurses newlib-nano newlib picolibc strace uClibc zlib
INFO  :: Generating 'config/versions/android-ndk.in'
INFO  :: Generating 'config/versions/autoconf.in'
INFO  :: Generating 'config/versions/automake.in'
INFO  :: Generating 'config/versions/avr-libc.in'
INFO  :: Generating 'config/versions/binutils.in'
INFO  :: Generating 'config/versions/bison.in'
INFO  :: Generating 'config/versions/cloog.in'
INFO  :: Generating 'config/versions/dtc.in'
INFO  :: Generating 'config/versions/duma.in'
INFO  :: Generating 'config/versions/elf2flt.in'
INFO  :: Generating 'config/versions/expat.in'
INFO  :: Generating 'config/versions/gcc.in'
INFO  :: Generating 'config/versions/gdb.in'
INFO  :: Generating 'config/versions/gettext.in'
INFO  :: Generating 'config/versions/glibc-ports.in'
INFO  :: Generating 'config/versions/glibc.in'
INFO  :: Generating 'config/versions/gmp.in'
INFO  :: Generating 'config/versions/gnuprumcu.in'
INFO  :: Generating 'config/versions/isl.in'
INFO  :: Generating 'config/versions/libelf.in'
INFO  :: Generating 'config/versions/libiconv.in'
INFO  :: Generating 'config/versions/libtool.in'
INFO  :: Generating 'config/versions/linux.in'
INFO  :: Generating 'config/versions/ltrace.in'
INFO  :: Generating 'config/versions/m4.in'
INFO  :: Generating 'config/versions/make.in'
INFO  :: Generating 'config/versions/mingw-w64.in'
INFO  :: Generating 'config/versions/moxiebox.in'
INFO  :: Generating 'config/versions/mpc.in'
INFO  :: Generating 'config/versions/mpfr.in'
INFO  :: Generating 'config/versions/musl.in'
INFO  :: Generating 'config/versions/ncurses.in'
INFO  :: Generating 'config/versions/newlib-nano.in'
INFO  :: Generating 'config/versions/newlib.in'
INFO  :: Generating 'config/versions/picolibc.in'
INFO  :: Generating 'config/versions/strace.in'
INFO  :: Generating 'config/versions/uClibc.in'
INFO  :: Generating 'config/versions/zlib.in'
INFO  :: *** Generating menu/choice selections
INFO  :: Generating arch.in (choice)
INFO  :: Generating kernel.in (choice)
INFO  :: Generating cc.in (choice)
INFO  :: Generating binutils.in (choice)
INFO  :: Generating libc.in (choice)
INFO  :: Generating debug.in (menu)
INFO  :: Generating comp_tools.in (menu)
INFO  :: Generating comp_libs.in (menu)
INFO  :: *** Gathering the list of data files to install
INFO  :: *** Running autoreconf
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
configure.ac:96: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
configure.ac:96: the top level
configure.ac:293: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:293: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:293: the top level
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
INFO  :: *** Done!
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking whether ln -s works... yes
checking whether install takes --strip-program option... yes
checking for ggrep... no
checking for grep... grep
checking for absolute path to grep... /usr/bin/grep
checking for gegrep... no
checking for egrep... egrep
checking for absolute path to egrep... /usr/bin/egrep
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for sed... /usr/bin/sed
checking for GNU sed >= 4.0... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG':
configure: error: C compiler cannot create executables
See `config.log' for more details  
[build@inkbox koxtoolchain]$ cat build/CT-NG/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by crosstool-NG configure 1.24.0.519_3e2d99d, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --prefix=/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT_NG_BUILD

## --------- ##
## Platform. ##
## --------- ##

hostname = inkbox
uname -m = aarch64
uname -r = 6.2.10-1-aarch64-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Fri Apr  7 10:32:52 MDT 2023

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/build/x-tools/arm-kobo-linux-gnueabihf/bin/
PATH: /usr/lib/code-server/lib/vscode/bin/remote-cli/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /usr/bin/site_perl/
PATH: /usr/bin/vendor_perl/
PATH: /usr/bin/core_perl/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2876: looking for aux files: config.rpath compile config.guess config.sub missing install-sh
configure:2889:  trying ./scripts/
configure:2918:   ./scripts/config.rpath found
configure:2918:   ./scripts/compile found
configure:2918:   ./scripts/config.guess found
configure:2918:   ./scripts/config.sub found
configure:2918:   ./scripts/missing found
configure:2900:   ./scripts/install-sh found
configure:3055: checking for a BSD-compatible install
configure:3128: result: /usr/bin/install -c
configure:3139: checking whether build environment is sane
configure:3194: result: yes
configure:3353: checking for a race-free mkdir -p
configure:3397: result: /usr/bin/mkdir -p
configure:3404: checking for gawk
configure:3425: found /usr/bin/gawk
configure:3436: result: gawk
configure:3447: checking whether make sets $(MAKE)
configure:3470: result: yes
configure:3500: checking whether make supports nested variables
configure:3518: result: yes
configure:3593: checking how to create a pax tar archive
configure:3604: tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3607: $? = 0
configure:3647: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar
configure:3650: $? = 0
configure:3654: tar -xf - <conftest.tar
configure:3657: $? = 0
configure:3659: cat conftest.dir/file
GrepMe
configure:3662: $? = 0
configure:3676: result: gnutar
configure:3752: checking whether make supports nested variables
configure:3770: result: yes
configure:3784: checking whether to enable maintainer-specific portions of Makefiles
configure:3794: result: yes
configure:3864: checking build system type
configure:3879: result: aarch64-unknown-linux-gnu
configure:3899: checking host system type
configure:3913: result: aarch64-unknown-linux-gnu
configure:3943: checking whether ln -s works
configure:3947: result: yes
configure:3965: checking whether install takes --strip-program option
configure:3983: result: yes
configure:4076: checking for ggrep
configure:4111: result: no
configure:4076: checking for grep
configure:4097: found /usr/bin/grep
configure:4108: result: grep
configure:4141: must determine absolute path for '$GREP':
| grep
configure:4161: checking for absolute path to grep
configure:4164: result: /usr/bin/grep
configure:4224: checking for gegrep
configure:4259: result: no
configure:4224: checking for egrep
configure:4245: found /usr/bin/egrep
configure:4256: result: egrep
configure:4289: must determine absolute path for '$EGREP':
| egrep
configure:4309: checking for absolute path to egrep
configure:4312: result: /usr/bin/egrep
configure:4317: checking for grep that handles long lines and -e
configure:4381: result: /usr/bin/grep
configure:4386: checking for egrep
configure:4454: result: /usr/bin/grep -E
configure:4559: checking for sed
configure:4586: checking SED at:
| /usr/bin/sed
configure:4601: looking for 'GNU sed[^0-9]* [4-9]\.' regexp in
configure:4606: version info:
| /usr/bin/sed (GNU sed) 4.9
| Copyright (C) 2022 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by Jay Fenlason, Tom Lord, Ken Pizzini,
| Paolo Bonzini, Jim Meyering, and Assaf Gordon.
| 
| This sed program was built without SELinux support.
| 
| GNU sed home page: <https://www.gnu.org/software/sed/>.
| General help using GNU software: <https://www.gnu.org/gethelp/>.
| E-mail bug reports to: <[email protected]>.
configure:4636: result: /usr/bin/sed
configure:4639: checking for GNU sed >= 4.0
configure:4643: result: yes
configure:4743: checking for gcc
configure:4764: found /usr/bin/gcc
configure:4775: result: gcc
configure:5128: checking for C compiler version
configure:5137: gcc --version >&5
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5148: $? = 0
configure:5137: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-multilib --disable-werror --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.0 (GCC) 
configure:5148: $? = 0
configure:5137: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5148: $? = 1
configure:5137: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5148: $? = 1
configure:5137: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:5148: $? = 1
configure:5168: checking whether the C compiler works
configure:5190: gcc -O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin -isystem/home/build/Kindle/CrossTool/Build_KOBO/include -L/home/build/Kindle/CrossTool/Build_KOBO/lib -Wl,-O1 -Wl,--as-needed conftest.c  >&5
gcc: error: unrecognized command-line option '-mfpu=neon'
gcc: error: unrecognized command-line option '-mfloat-abi=hard'
gcc: error: unrecognized command-line option '-mthumb'
configure:5194: $? = 1
configure:5234: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "crosstool-NG"
| #define PACKAGE_TARNAME "crosstool-ng"
| #define PACKAGE_VERSION "1.24.0.519_3e2d99d"
| #define PACKAGE_STRING "crosstool-NG 1.24.0.519_3e2d99d"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "http://crosstool-ng.org"
| #define PACKAGE "crosstool-ng"
| #define VERSION "1.24.0.519_3e2d99d"
| /* end confdefs.h.  */
| 
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:5239: error: in `/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG':
configure:5241: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=aarch64-unknown-linux-gnu
ac_cv_env_AUTOCONF_set=
ac_cv_env_AUTOCONF_value=
ac_cv_env_AUTOMAKE_set=
ac_cv_env_AUTOMAKE_value=
ac_cv_env_AUTORECONF_set=
ac_cv_env_AUTORECONF_value=
ac_cv_env_AWK_set=
ac_cv_env_AWK_value=
ac_cv_env_BASH_SHELL_set=
ac_cv_env_BASH_SHELL_value=
ac_cv_env_BISON_set=
ac_cv_env_BISON_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-isystem/home/build/Kindle/CrossTool/Build_KOBO/include
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CURSES_CFLAGS_set=
ac_cv_env_CURSES_CFLAGS_value=
ac_cv_env_CURSES_LIBS_set=
ac_cv_env_CURSES_LIBS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_EGREP_set=
ac_cv_env_EGREP_value=
ac_cv_env_GREP_set=
ac_cv_env_GREP_value=
ac_cv_env_INSTALL_set=
ac_cv_env_INSTALL_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/build/Kindle/CrossTool/Build_KOBO/lib -Wl,-O1 -Wl,--as-needed'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBTOOLIZE_set=
ac_cv_env_LIBTOOLIZE_value=
ac_cv_env_LIBTOOL_set=
ac_cv_env_LIBTOOL_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_MAKE_set=
ac_cv_env_MAKE_value=
ac_cv_env_MENU_LIBS_set=
ac_cv_env_MENU_LIBS_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_PANEL_LIBS_set=
ac_cv_env_PANEL_LIBS_value=
ac_cv_env_PATCH_set=
ac_cv_env_PATCH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=set
ac_cv_env_PKG_CONFIG_LIBDIR_value=/home/build/Kindle/CrossTool/Build_KOBO/lib/pkgconfig
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=pkg-config
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_SED_set=
ac_cv_env_SED_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_mmap_fixed_mapped=yes
ac_cv_host=aarch64-unknown-linux-gnu
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_EGREP=egrep
ac_cv_prog_ac_ct_GREP=grep
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_pax=gnutar
ctng_cv_install_with_strip_program=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/missing'\'' aclocal-1.16'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AUTOCONF='${SHELL} '\''/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/missing'\'' automake-1.16'
AUTORECONF=''
AWK='gawk'
BASH_COMPLETION_DIR='${datadir}/bash-completion/completions'
BASH_SHELL=''
BISON=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin'
CPP=''
CPPFLAGS='-isystem/home/build/Kindle/CrossTool/Build_KOBO/include'
CPU_COUNT=''
CSCOPE='cscope'
CTAGS='ctags'
CURSES_CFLAGS=''
CURSES_LIBS=''
CXX=''
CXXDEPMODE=''
CXXFLAGS='-O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin'
CYGPATH_W='echo'
DATE=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
ETAGS='etags'
EXEEXT=''
GREP='/usr/bin/grep'
HAVE_CXX11=''
INSTALL='/usr/bin/install -c'
INSTALL_BASH_COMPLETION_FALSE='#'
INSTALL_BASH_COMPLETION_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTALL_USER_MANUAL_FALSE=''
INSTALL_USER_MANUAL_TRUE=''
INTLLIBS=''
INTL_MACOSX_LIBS=''
KCONFIG_=''
KCONFIG_autoconf_2_65_or_newer=''
KCONFIG_automake_1_15_or_newer=''
KCONFIG_autoreconf_2_65_or_newer=''
KCONFIG_bison_2_7_or_newer=''
KCONFIG_curl=''
KCONFIG_cvs=''
KCONFIG_dtc=''
KCONFIG_git=''
KCONFIG_gnu_m4_1_4_12_or_newer=''
KCONFIG_has_cxx11=''
KCONFIG_install_with_strip_program='def_bool y'
KCONFIG_libtool_2_4_or_newer=''
KCONFIG_libtoolize_2_4_or_newer=''
KCONFIG_lzip=''
KCONFIG_make_3_81_or_newer=''
KCONFIG_make_4_0_or_newer=''
KCONFIG_md5sum=''
KCONFIG_meson=''
KCONFIG_ninja=''
KCONFIG_python=''
KCONFIG_python_3_4_or_newer=''
KCONFIG_sha1sum=''
KCONFIG_sha256sum=''
KCONFIG_sha512sum=''
KCONFIG_static_link=''
KCONFIG_svn=''
KCONFIG_wget=''
LDFLAGS='-L/home/build/Kindle/CrossTool/Build_KOBO/lib -Wl,-O1 -Wl,--as-needed'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBTOOLIZE=''
LN_S='ln -s'
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKE=''
MAKEINFO='${SHELL} '\''/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/missing'\'' makeinfo'
MENU_LIBS=''
MKDIR_P='/usr/bin/mkdir -p'
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
PACKAGE='crosstool-ng'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='crosstool-NG'
PACKAGE_STRING='crosstool-NG 1.24.0.519_3e2d99d'
PACKAGE_TARNAME='crosstool-ng'
PACKAGE_URL='http://crosstool-ng.org'
PACKAGE_VERSION='1.24.0.519_3e2d99d'
PANEL_LIBS=''
PATCH=''
PATH_SEPARATOR=':'
PKG_CONFIG='pkg-config'
PKG_CONFIG_LIBDIR='/home/build/Kindle/CrossTool/Build_KOBO/lib/pkgconfig'
PKG_CONFIG_PATH=''
POSUB=''
PYTHON=''
RANLIB='arm-kobo-linux-gnueabihf-gcc-ranlib'
READELF=''
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='1.24.0.519_3e2d99d'
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_EGREP='egrep'
ac_ct_GREP='grep'
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
ac_ct_PATCH=''
ac_ct_READELF=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='tar --format=posix -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='aarch64-unknown-linux-gnu'
build_alias=''
build_cpu='aarch64'
build_os='linux-gnu'
build_vendor='unknown'
bzip2=''
curl=''
cut=''
cvs=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dtc=''
dvidir='${docdir}'
enable_local='no'
exec_prefix='NONE'
file=''
flex=''
git=''
gzip=''
help2man=''
host='aarch64-unknown-linux-gnu'
host_alias=''
host_cpu='aarch64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/build/inkbox/compiled-binaries/koxtoolchain/build/CT-NG/scripts/install-sh'
kconfig_options=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lzip=''
makeinfo=''
mandir='${datarootdir}/man'
md5sum=''
meson=''
mkdir_p='$(MKDIR_P)'
ninja=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/build/inkbox/compiled-binaries/koxtoolchain/build/CT_NG_BUILD'
program_transform_name='s,x,x,'
psdir='${docdir}'
readlink=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sha1sum=''
sha256sum=''
sha512sum=''
sharedstatedir='${prefix}/com'
svn=''
sysconfdir='${prefix}/etc'
tar=''
target_alias=''
unzip=''
wget=''
which=''
xz=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "crosstool-NG"
#define PACKAGE_TARNAME "crosstool-ng"
#define PACKAGE_VERSION "1.24.0.519_3e2d99d"
#define PACKAGE_STRING "crosstool-NG 1.24.0.519_3e2d99d"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL "http://crosstool-ng.org"
#define PACKAGE "crosstool-ng"
#define VERSION "1.24.0.519_3e2d99d"

configure: exit 77
[build@inkbox koxtoolchain]$

Relevant lines seem to be the following:

configure:5168: checking whether the C compiler works
configure:5190: gcc -O3 -ffast-math -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb  -pipe -fomit-frame-pointer -frename-registers -fweb -flto=9 -fuse-linker-plugin -isystem/home/build/Kindle/CrossTool/Build_KOBO/include -L/home/build/Kindle/CrossTool/Build_KOBO/lib -Wl,-O1 -Wl,--as-needed conftest.c  >&5
gcc: error: unrecognized command-line option '-mfpu=neon'
gcc: error: unrecognized command-line option '-mfloat-abi=hard'
gcc: error: unrecognized command-line option '-mthumb'

GCC and kernel versions:

[build@inkbox koxtoolchain]$ gcc --version
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[build@inkbox koxtoolchain]$ uname -a
Linux inkbox 6.2.10-1-aarch64-ARCH #1 SMP PREEMPT_DYNAMIC Fri Apr  7 10:32:52 MDT 2023 aarch64 GNU/Linux
[build@inkbox koxtoolchain]$

Any ideas ?
Thanks a lot !

PocketBook issue

@NiLuJe
Using ca4481e


Initially reported by: NiLuJe
URL: https://github.com/NiLuJe/crosstool-ng

Comment:
PocketBook
i.MX5 & up. Based on the awfully old original SDK, hence the oldies.
Possibly prefer the new, upstream Clang SDKs if possible:
https://github.com/pocketbook/SDK_6.3.0
it's for i.MX6 & up, a BR GCC 6.3.0 + Clang 7 TC, on glibc 2.23 / Linux 3.0.35

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

WARNING! This sample may enable experimental features.
         Please be sure to review the configuration prior
         to building and using your toolchain!
Now, you have been warned!

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

Now configured for "arm-pocketbook-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
make: *** No rule to make target 'upgradeconfig'.  Stop.
The command '/bin/sh -c ./build_pb_tc.sh' returned a non-zero code: 2
make: *** [Makefile:6: build] Error 2

Fails to build (gcc-linaro-4.8-2015.06 missing)

2 problems as of a few weeks ago and still today:

a few minutes wasted retrying download of binutils-2.25.1.tar

[DEBUG]    Trying 'ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-2.25.1.tar.xz'
[ALL  ]    Resolving ftp.kernel.org (ftp.kernel.org)... 198.145.20.140, 149.20.4.69, 199.204.44.194
[ALL  ]    Connecting to ftp.kernel.org (ftp.kernel.org)|198.145.20.140|:21... failed: Connection timed out.

to finally get it:
[DEBUG] Got it from: "http://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.bz2"

But it can not get:

[EXTRA]    Retrieving 'gcc-linaro-4.8-2015.06'
[DEBUG]    Trying 'https://releases.linaro.org/components/toolchain/gcc-linaro/4.8-2015.06/gcc-linaro-4.8-2015.06.tar.xz'

that it can not find anywhere.

[DEBUG]    Not at this location: "http://cbuild.validation.linaro.org/snapshots/gcc-linaro-4.8-2015.06"
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'

There is indeed no 4.8-2015.06 anymore at http://snapshots.linaro.org/components/toolchain/gcc-linaro/ .

Syntax error in libc-final/multilib/shlib.lds

[ALL ] /home/dmitry/koxtoolchain/build/kindlepw2/.build/arm-kindlepw2-linux-gnueabi/buildtools/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd:/home/dmitry/koxtoolchain/build/kindlepw2/.build/arm-kindlepw2-linux-gnueabi/build/build-libc-final/multilib/shlib.lds:160: syntax error
[ERROR] collect2: error: ld returned 1 exit status
[ERROR] make[2]: *** [/home/dmitry/koxtoolchain/build/kindlepw2/.build/arm-kindlepw2-linux-gnueabi/build/build-libc-final/multilib/libc.so] Error 1
[ALL ] make[2]: Leaving directory /home/dmitry/koxtoolchain/build/kindlepw2/.build/src/glibc-2.12.2' [ERROR] make[1]: *** [all] Error 2 [ALL ] make[1]: Leaving directory /home/dmitry/koxtoolchain/build/kindlepw2/.build/arm-kindlepw2-linux-gnueabi/build/build-libc-final/multilib'

OS: Manjaro Cinnamon

on mac (high sierra)

usage: ./gen-tc.sh PLATFORM

Supported platforms:

	kindle
	kindle5
	kindlepw2
	kobo

MacBook:koxtoolchain sebastien$ ./gen-tc.sh kobo
[*] Building CrossTool-NG . . .
grep: /proc/cpuinfo: No such file or directory
expr: syntax error
MacBook:koxtoolchain sebastien$ 

any lead ?

[Not at this location]: "https://releases.linaro.org/archive/17.11/components/toolchain/gcc-linaro/gcc-linaro-7.2-2017.11"

Trying to build a kindlepw2 toolchain:

[ALL  ]    Resolving releases.linaro.org (releases.linaro.org)... 64.28.99.46
[ALL  ]    Connecting to releases.linaro.org (releases.linaro.org)|64.28.99.46|:443... connected.
[ALL  ]    HTTP request sent, awaiting response... 404 Not Found
[ALL  ]    2018-10-13 22:30:14 ERROR 404: Not Found.
[ALL  ]    
[DEBUG]    Not at this location: "https://releases.linaro.org/archive/17.11/components/toolchain/gcc-linaro/gcc-linaro-7.2-2017.11"
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_GetLinaro[scripts/functions@900]
[ERROR]  >>        called from: do_gcc_get[scripts/build/cc/100-gcc.sh@16]
[ERROR]  >>        called from: do_cc_get[scripts/build/cc.sh@21]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@609]
[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]  >>      '/home/pazos/Escritorio/koxtoolchain/build/CT_NG_BUILD/share/doc/crosstool-ng/crosstool-ng-1.22.0-779-g390464e7/B - Known issues.txt'
[ERROR]  >>
[ERROR]  >>  If you feel this is a bug in crosstool-NG, report it at:
[ERROR]  >>      https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR]  >>
[ERROR]  >>  Make sure your report includes all the information pertinent to this issue.
[ERROR]  >>  Read the bug reporting guidelines here:
[ERROR]  >>      http://crosstool-ng.github.io/support/
[ERROR]  
[ERROR]  (elapsed: 12:18.30)

pinging @NiLuJe @Frenzie, sorry for the work guys :d

It seems that the new location is under https://releases.linaro.org/components/toolchain/gcc-linaro/7.2-2017.11/. This may affect other target/components as too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.