aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* glibc: drop caddr_t patchChris Packham2023-02-081-17/+0
| | | | | | | | | | | | | | | | | | | | | | We've been carrying around this patch for ages. It was first added in commit 42e908c4 ("libc/glibc: workaround for autoconf'ed define of caddr_t") and ported to glibc-2.13 in commit de6b6733 ("libc/glibc: add patch to avoid caddr_t redefinition"). It has been ported to every new version of glibc ever since. It's not immediately obvious that the original problem still affects modern glibc versions. If there is a problem it hasn't been reported to the glibc maintainers in the 12 years since it was first seen. It could be that ct-ng is unique in the way we support canadian builds or that there was another fix for the same problem applied upstream sometime in the last 12 years. Drop the patch now to stop in being propagated blindly to new glibc versions. Doing it as a separate commit (as opposed to dropping it in the previous commit which bumped the version) allows the decision to be documented and if this turns out to be wrong it can be easily reverted. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* glibc: Add glibc-2.37Chris Packham2023-02-084-0/+102
| | | | | | | | | https://sourceware.org/pipermail/libc-announce/2023/000035.html Add the new version carry through 2 patches that are not upstream. Fixes #1885 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Add zstd to the companion libsQuentin Boswank2023-02-088-2/+124
| | | | | | | | Add zstd to the companion libs witch allows to use lto zstd compression in a canadian or cross-native enviroment Signed-off-by: QBos07 <62326551+QBos07@users.noreply.github.com> Signed-off-by: Quentin Boswank <62326551+QBos07@users.noreply.github.com>
* maintainer/manage-packages.sh: Fix typomid-kid2023-02-011-1/+1
| | | | Signed-off-by: mid-kid <esteve.varela@gmail.com>
* Update mingw-w64 to v10.0.0mid-kid2023-02-013-0/+38
| | | | Signed-off-by: mid-kid <esteve.varela@gmail.com>
* Merge pull request #1763 from cpackham/tarballBryan Hundven2023-01-162-0/+43
|\ | | | | Add option to build toolchain tarball
| * Add option to build toolchain tarballChris Packham2022-06-152-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add TARBALL_RESULT option that will produce a tarball of the final toolchain to make it easier to deploy the toolchain to other machines. The implementation uses `find | sort` instead of `tar --sort` because this was introduced in GNU Tar v1.28, which is not available in some LTS Linux distributions. This is a variation of the command recommended here: https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs Closes #1262 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | Merge pull request #1875 from keith-packard/picolibc-1.8Bryan Hundven2023-01-163-1/+5
|\ \ | | | | | | Update picolibc to 1.8
| * | Update picolibc to 1.8Keith Packard2022-12-233-1/+5
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | | glibc: Add fix for GNU make 4.4 compatibility to more versionsChris Packham2023-01-0910-0/+1050
| | | | | | | | | | | | | | | | | | | | | | | | Backport the upstream fix for GNU make 4.4 compatibility to more versions of glibc. Fixes #1878 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Add Oracle ol8u7 product to crosstool-ngCupertino Miranda2022-12-1814-4/+1099
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for the following Oracle products, targeting Oracle Linux 8.7: Binutils 2.30-117.0.1 GCC 8.5.0-15.0.2 glibc 2.28-211.1.0.1 UEK5/u4 4.14.35-2025.400.8 Sample configuration files are provided for the following triplets: aarch64-ol8u7-linux-gnu x86_64-ol8u7-linux-gnu i686-ol8u7-linux-gnu Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* | | Enable support for building libgccjitMarc Poulhiès2022-12-189-5/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libgccjit is still under development and, despite its name, may also be used for ahead-of-time compilation. Documentation can be found on the gcc website: https://gcc.gnu.org/onlinedocs/jit/internals/index.html https://gcc.gnu.org/wiki/JIT With this change it's possible to enable the building of the libgccjit. It's enabled as a language (with --enable-languages=jit) even if not a language frontend at all. The main changes are related to the requirement of having everything host side built as Position Independent Code (PIC) with --enable-host-shared. GCC has the needed logic for building its dependencies (mpc, gmp, mpfr, ...) correctly when built "in-tree", which is not the case with crosstool-ng (see https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=05048fc29f0) Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* | | linux: Add Linux 6.1 and bump LTSChris Packham2022-12-1423-56/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux 6.1 Update 6.0.2 -> 6.0.12 Update 5.15.74 -> 5.15.82 Update 5.10.148 -> 5.10.158 Update 5.4.218 -> 5.4.226 Update 4.19.261 -> 4.19.268 Update 4.14.295 -> 4.14.301 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | strace: Add 6.1 releaseChris Packham2022-12-143-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | https://lists.strace.io/pipermail/strace-devel/2022-December/011128.html Add strace 6.1. Remove 6.0. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | samples: Cosmetic improvements to powerpc-e500v2-linux-gnuspeChris Packham2022-12-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --enable-e500_double was valid but strange (the correct form is --enable-e500-double). -Wa,-me500x2 was also misleading, it is equivalent to Wa,-me500. --enable-e500x2 --with-e500x2 did nothing as they aren't used by the binutils configure script. Finally passing -mfloat-gprs=double in CFLAGS is unnecessary because this is the default when using -mcpu=8548. Correct these in the sample config. Fixes #1867 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Add BPF architecture target supportCupertino Miranda2022-12-144-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | BPF is a virtual machine and associated ISA that resides in the Linux kernel. Initially intended for user-level packet capture and filtering, BPF is nowadays generalized to serve as a general-purpose infrastructure also for non-networking purposes. Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* | | samples: Add x86_64-pc-linux-gnu,arm-picolibc-eabi Canadian cross sample configJoakim Nohlgård2022-12-112-0/+15
| | | | | | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | scripts/gcc: Add extra include dir with -idirafterJoakim Nohlgård2022-12-111-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | Fixes Canadian cross builds failing with missing include file 'stdio.h' when building libstdc++ for a companion libc with system libc set to LIBC_NONE. Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | scripts/gcc: align test conditionals with rest of repoJoakim Nohlgård2022-12-111-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Most scripts in crosstool-ng use [ -z "${string}" ] to check for empty variables. Deleted one duplicate declaration of the local exec_prefix Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | gcc: Disable CC_GCC_ENABLE_DEFAULT_PIE on RISC-V bare metal buildsJoakim Nohlgård2022-12-111-0/+1
| | | | | | | | | | | | | | | | | | -pie is not supported on riscv*-elf-ld Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | make: Add GNU Make 4.4Chris Packham2022-12-114-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | https://lists.gnu.org/archive/html/info-gnu/2022-10/msg00008.html Add GNU Make 4.4, mark 4.2.1 and 4.3 as obsolete. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | strace: Add strace 6.0Chris Packham2022-12-113-4/+4
| | | | | | | | | | | | | | | | | | https://lists.strace.io/pipermail/strace-devel/2022-October/011125.html Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Merge pull request #1854 from GrigorenkoPV/masterBryan Hundven2022-12-101-0/+3
|\ \ \ | | | | | | | | Fix `./configure --with-ncurses` not working on Arch Linux
| * | | Fix `--with-ncurses` not working on Arch LinuxPavel Grigorenko2022-11-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts the changes introduced to `m4/ax_with_curses_extra.m4` in 59b664806c55dc1e5878448be2536fe110944f62, which seem to make `cofigure` look only for `ncursesw/panel.h` and not consider `panel.h` as a candidate, thus causing `./configure` to fail with "error: panel library not found" on systems (such as Arch Linux) where ncurses headers are not put under the `ncursesw/` directory. Signed-off-by: Pavel Grigorenko <grigorenkopv@ya.ru>
* | | | newlib: Change ftp mirror link to https oneYuriy Kolerov2022-12-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some corporate VPN services block ftp connections. It leads to an error while building a toolchain with packages with ftp mirrors. It's possible to safely use https instead of ftp. Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
* | | | Detect if a package src_dir is missingJoakim Nohlgård2022-12-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user deletes the package directory under .build/src/ but fails to remove the hidden stamp files the CT_DoExtractPatch function will detect this, delete the stamps and perform the full extract-and-patch step. Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | | CI: Disable python support in GDB on macosChris Packham2022-12-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There appears to be a problem with GDB+Python+MacOS Error: [ERROR] configure: error: no usable python found at /usr/local/bin/python3 Error: make[2]: *** [Makefile:11454: configure-gdb] Error 1 Error: make[1]: *** [Makefile:1030: all] Error 2 For now disable CT_GDB_CROSS_PYTHON on macos. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | | glibc: Add fix for GNU make 4.4 compatibility issueChris Packham2022-12-041-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an upstream patch that resolves a compatibility issue with GNU make 4.4. Fixes #1858 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | | expat: Update to expat-2.5.0Chris Friedt2022-11-283-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - expat-2.4.1 is not available on sf.net due to vulnerabilities - mark expat-2.4.1 as obsolte - add expat-2.5.0 version info Signed-off-by: Chris Friedt <cfriedt@meta.com>
* | | | packages: Update picolibc to 1.7.9Joakim Nohlgård2022-11-223-4/+4
|/ / / | | | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | Backport fixes for glibc and gcc to fix interactions with kernel headersBryan Hundven2022-11-096-0/+687
| | | | | | | | | | | | | | | Reported-by: milkylainen (IRC) Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Correct casing for Ada langMarc Poulhiès2022-11-091-1/+1
| | | | | | | | | | | | | | | | | | Ada is a name, not an acronym, so it doesn't need to be upcased. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* | | Bump ubuntu to ubuntu-22.04Bryan Hundven2022-10-272-10/+10
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Update config.{guess,sub}Bryan Hundven2022-10-272-8/+31
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Update copied m4 files and READMEBryan Hundven2022-10-2712-318/+604
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Switch AC_PROG_YACC to AX_PROG_BISONBryan Hundven2022-10-272-1/+65
| | | | | | | | | | | | | | | | | | | | | AC_PROG_YACC is kinda buggy. Switch to AX_PROG_BISON from autoconf-archive. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Update requirements: autoconf==2.71 and automake>=1.16Bryan Hundven2022-10-272-13/+13
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | CI: Update action versionsChris Packham2022-10-182-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ Update to v3 version of affected actions. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | linux: Add 6.0.2 bump LTSChris Packham2022-10-1824-58/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 6.0.2 Bump 5.19.2 -> 5.19.16 Bump 5.15.58 -> 5.15.74 Bump 5.10.134 -> 5.10.148 Bump 5.4.208 -> 5.4.218 Bump 4.9.325 -> 4.9.330 Bump 4.19.254 -> 4.19.261 Bump 4.14.290 -> 4.14.295 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | zlib: Replace sourceforge mirror with githubChris Packham2022-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | New zlib versions aren't being published on sourceforge. Use the github mirror instead. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | zlib: Update to zlib-1.2.13Chris Packham2022-10-175-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings in the following changes - Fix a bug when getting a gzip header extra field with inflateGetHeader(). This remedies CVE-2022-37434. - Fix a bug in block type selection when Z_FIXED used. Now the smallest block type is selected, for better compression. - Fix a configure issue that discarded the provided CC definition. - Correct incorrect inputs provided to the CRC functions. This mitigates a bug in Java. - Repair prototypes and exporting of the new CRC functions. - Fix inflateBack to detect invalid input with distances too far. Mark zlib-1.2.12 as obsolete. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Add the gdc compiler to the list of tools checked/linkedMarc Poulhiès2022-10-161-1/+1
|/ / | | | | | | | | | | Add gdc to the tool list but leave it optionnal. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* | binutils: add option to build libopcodes for targetDries Deschout2022-10-022-2/+8
| | | | | | | | | | | | It provides functionality to disassemble executable binaries. Signed-off-by: Dries Deschout <dries.deschout@dodeco.eu>
* | samples: Disable CC_GCC_ENABLE_DEFAULT_PIE with older glibcChris Packham2022-09-263-0/+3
| | | | | | | | | | | | | | | | | | | | glibc versions prior to 2.23 don't compile successfully with --enable-default-pie. While it would be nice to automatically prevent this from being selectable the simplest thing is to update the sample configs that use the older glibc versions to avoid the problem. Fixes #1819 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | samples: Remove x86_64-centos6-linux-gnuChris Packham2022-09-262-15/+0
| | | | | | | | | | | | | | | | glibc 2.12.1 was removed in commit 6d5227b6 ("Remove obsolete glibc 2.12.1"). CentOS 6 is EoL and the configuration won't work as intended so remove it. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | strace: Update to 5.19Chris Packham2022-09-263-4/+4
| | | | | | | | | | | | https://lists.strace.io/pipermail/strace-devel/2022-August/011094.html Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | avr,pru: Disable CT_CC_GCC_ENABLE_DEFAULT_PIEDimitar Dimitrov2022-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PIE is not supported by PRU and AVR backends for GCC. This fixes LD errors when trying to link user programs with a crosstool-NG toolchain: /home/dinux/x-tools/avr/lib/gcc/avr/12.2.0/../../../../avr/bin/ld: -pie not supported collect2: error: ld returned 1 exit status Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
* | cc/gcc: Use canon_prefix when dealing with moved librariesChris Packham2022-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ${CT_PREFIX_DIR} may contain relative paths (e.g. "${CT_TOP_DIR}/../x-tools/${CT_TARGET}"). Code added in commit d83a0036 ("Add symlinks from the libraries' original location to the new one.") didn't cope well with this. As we're already calculating ${cannon_prefix} make use of it when adding the symlinks. This avoids any issues with ${CT_PREFIX_DIR}. Fixes #1807 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | gnuprumcu: Add release 0.9.0Dimitar Dimitrov2022-09-132-0/+4
| | | | | | | | Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
* | avr-libc: Add avr-libc 2.1.0Rafael G. Martins2022-09-112-0/+4
| | | | | | | | Signed-off-by: Rafael G. Martins <rafael@rafaelmartins.eng.br>