Commit Graph

5682 Commits

Author SHA1 Message Date
Thomas Petazzoni
bedec42b53 Revert "Update requirements: autoconf==2.71 and automake>=1.16"
This reverts commit 658f5e574f, which
was made without any justification, and prevents using crosstool-ng
even in decently recent distributions like Ubuntu 20.04 (which has
autoconf 2.69).

We have tested that ./bootstrap && ./configure --enable-local works
fine on Ubuntu 18.04, which uses autoconf 2.69 and automake 1.15, so
the existing requirements were enough.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-07-21 16:46:59 +12:00
Chris Packham
dac4403390 gcc: Update 10.4 -> 10.5
Add GCC 10.5.0 and regenerate patches against the new version.

https://gcc.gnu.org/pipermail/gcc-announce/2023/000178.html
https://gcc.gnu.org/gcc-10/changes.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-07-14 14:01:33 +12:00
Kirill K. Smirnov
ada71ff2a0 Properly build multilib bare-metal RISC-V
To build multilib RISC-V toolchain one should use --with-multilib-generator
option instead of --with-multilib-list.

Add corresponding example configuration file.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2023-07-14 14:01:08 +12:00
Chris Packham
11d286dbc9 linux: Add missing chksum file
New file was missed in the update.

Fixes: 0752bd1a ("linux: Add 6.4 bump LTS")
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-07-10 17:04:31 +12:00
Chris Packham
35f9cc2e06 strace: Update to 6.4
https://lists.strace.io/pipermail/strace-devel/2023-June/011339.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-07-10 16:52:22 +12:00
Chris Packham
0752bd1afe linux: Add 6.4 bump LTS
Add 6.4
Update 6.3.2 -> 6.3.9
Update 6.1.25 -> 6.1.35
Update 5.15.108 -> 5.15.118
Update 5.10.179 -> 5.10.185
Update 5.4.242 -> 5.4.248
Update 4.19.282 -> 4.19.287
Update 4.14.314 -> 4.14.319

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-07-10 16:52:22 +12:00
Chris Packham
36ad0b17a7 strace: Fixup patch to configure
In the rush to sort out a build issue with strace an invalid change to
./configure was made. Update the patch with the correct delta for the
generated file.

Fixes #1978
Fixes: d659700d ("strace: Add strace 6.3")
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-06-14 15:17:16 +12:00
Chris Packham
c0135a1dce CI: Use arm-picolibc-default instead of arm-picolibc-eabi
arm-picolibc-eabi builds many multilib combinations which causes the
free tier github action runners to run out of disk space. Use
arm-picolibc-default instead so there is still some coverage of picolibc
in CI.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-06-13 11:27:51 +12:00
Chris Packham
91ed31ec04 samples: Add arm-picolibc-default
The rmprofile with picolibc produces many multilib combinations which
causes the free tier github action runners to run out of disk space.
Add a picolibc sample that only enables the default multilib so we can
still get some coverage for picolibc in the CI builds.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-06-13 11:27:51 +12:00
Chris Packham
227d99d7f3 newlib: add 4.3.0.20230120
Add the 4.3.0.20230120 and update the required patches. As of this
release the newlib-global-atexit is mandatory so set this to default y.
Included is an upstream patch to support older GCC versions.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-06-04 10:04:33 +12:00
Timo Rothenpieler
0160064f00 Add default msvcrt options for mingw-w64
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2023-06-04 10:03:32 +12:00
Chris Packham
d855363eee gcc: Add 11.4.0
Add gcc 11.4.0 and regenerate patches against the new version.

https://gcc.gnu.org/pipermail/gcc-announce/2023/000177.html
https://gcc.gnu.org/gcc-11/changes.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-31 20:21:59 +12:00
Chris Packham
72e07cce8f newlib: Add upstream patches for float support
Bring in upstream support for newer float standards being used by GCC.

Fixes #1957
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-31 20:21:34 +12:00
Chris Packham
df2c7559fa gdb: Add gdb 13.2
https://sourceware.org/pipermail/gdb-announce/2023/000135.html
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-13.2-release

Add the 13.2 release, remove 13.1.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-31 20:21:11 +12:00
Maksim Morozov
e9cd702a9f gdb: Static cross GDB is linked statically with std c++ library
If static cross GDB configuration is selected, cross GDB will be linked
statically with std c++ library, because there is no separate option for
static std c++ library for cross GDB.
The use of not existing variable CT_GDB_NATIVE_STATIC_LIBSTDC has been
replaced with CT_GDB_NATIVE_STATIC_LIBSTDCXX.

Signed-off-by: Maksim Morozov <maxim.morozov.a@gmail.com>
2023-05-31 20:20:32 +12:00
Chris Packham
d659700d68 strace: Add strace 6.3
https://lists.strace.io/pipermail/strace-devel/2023-May/011317.html

Add strace 6.3. Remove 6.2.
Add upstream patch for working with newer Linux headers.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-31 20:16:51 +12:00
Yuriy Kolerov
1f1107feff gdb: Use a relative includedir for native gdb and gdbserver
Use a relative path for include directory if gdb or gdbserver
is being built and installed for a target. Otherwise headers
are installed in ${destdir}${CT_HEADERS_DIR} - a concatenation
of ${destdir} and an absolute path to sysroot's include directory.
As a result debug-root may contain wrong paths for includes.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
2023-05-28 09:29:36 +12:00
Chris Packham
aad643b594 gcc/6.5.0: Bring in upstream fix for newer ISL versions
isl-0.26 moves some header includes around so now if we want
isl_val_free we need to include isl/val.h. Otherwise we get errors such
as

 src/gcc/gcc/graphite-isl-ast-to-gimple.c: In member function 'tree_node* translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int(tree, isl_ast_expr*)':
 src/gcc/gcc/graphite-isl-ast-to-gimple.c:349:3: error: 'isl_val_free' was not declared in this scope; did you mean 'isl_vec_free'?
      349 |   isl_val_free (val);
          |   ^~~~~~~~~~~~
          |   isl_vec_free

Bring in an upstream fix that uses the correct header file.

Fixes #1962
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-28 09:29:00 +12:00
Chris Packham
abe4f4583e gcc/6.5.0: Regenerate patches
Run patches through ./maintainer/manage-packages.sh -P -s gcc-6.5.0 to
clean them up.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-28 09:29:00 +12:00
Chris Packham
4dd730b832 picolibc: Remove version 1.7.9
Picolibc 1.8.1 has been added so we can drop 1.7.9.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-28 09:28:13 +12:00
Chris Packham
35be1c941e picolibc: Mark versions 1.4.7, 1.5.1 and 1.6.2 as obsolete
These versions were present in crosstool-ng 1.25.0 so as per current
policy mark them as obsolete so they can be dropped after the next
release.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-28 09:28:13 +12:00
Yuriy Kolerov
a8cef5773e gdb: Make native GDB 13+ dependent on MPFR
GDB 13+ depends on MPFR thus it must be selected.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
2023-05-19 15:54:16 +12:00
Yuriy Kolerov
f283bb6b1a mpfr: Add support of building MPFR for target
It's necessary for building native GDB 13+. It depends
on MPFR but it hasn't presented in scripts yet for building
for target.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
2023-05-19 15:54:16 +12:00
Yuriy Kolerov
65e5960a39 gdb: Fix extra config variable name for native GDB
Variable native_extra_config must be used for configuration
options instead for extra_config for native GDB.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
2023-05-19 15:53:17 +12:00
Dima Krasner
694c08a6ca musl: add 1.2.4
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2023-05-19 15:52:39 +12:00
Bryan Hundven
d3e77cd9d1
Merge pull request #1958 from bhundven/update_linux_6_3_2
Update linux 6.3.1 -> 6.3.2
2023-05-17 08:41:26 -07:00
Chris Packham
1289633f3a gdb: Bring in upstream fix for build error
On systems that lack pread64() (e.g. musl) the following build error is
observed.

  src/gdb/gdbserver/linux-low.cc:5393:45: error: expected ':' before ')' token
  src/gdb/gdbserver/linux-low.cc:5393:45: error: expected primary-expression before ')' token
  src/gdb/gdbserver/linux-low.cc:5393:45: error: expected ':' before ')' token
  src/gdb/gdbserver/linux-low.cc:5393:45: error: expected primary-expression before ')' token

Bring in the upstream fix for this error.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-17 10:27:59 +12:00
Bryan Hundven
efb84ea29d
Merge pull request #1952 from foss-for-synopsys-dwc-arc-processors/ykolerov-newlib-nano
newlib: Add missing linker options for nano.specs
2023-05-16 02:30:21 -07:00
Bryan Hundven
a76001d1a3
Merge pull request #1953 from bhundven/update_ncurses_6_4
Add ncurses 6.4
2023-05-16 02:29:52 -07:00
Bryan Hundven
1af5730fda Update linux 6.3.1 -> 6.3.2
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2023-05-15 10:09:46 -07:00
Bryan Hundven
82411a271d Add ncurses 6.4
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2023-05-15 02:48:56 -07:00
Chris Packham
e8b3eccd8a gcc: Add upstream patch for build issue on RISCV
Depending on the host C++ compiler GCC13 fails on riscv configurations
with the following error

 src/gcc/gcc/config/riscv/genrvv-type-indexer.cc:118:30: error: no member named 'log2' in namespace 'std'; did you mean simply 'log2'?
        elmul_log2 = lmul_log2 - std::log2 (sew / eew);
                                 ^~~~~~~~~
                                 log2
 /usr/include/c++/v1/math.h:1463:1: note: 'log2' declared here
    log2(_A1 __lcpp_x) _NOEXCEPT {return ::log2((double)__lcpp_x);}
    ^

Bring in an upstream fix for the build error.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-14 10:35:14 +12:00
Chris Packham
584b25da7a glibc: Disable -Werror with GCC13 and glibc <2.37
GCC13 picks up some new errors on older glibc versions. Disable -Werror
automatically when these combinations are selected.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-14 10:35:14 +12:00
Chris Packham
5427dac45c libc/uclibc: Require GCC12 or older
Currently uclibc configurations fail to build with GCC13

 src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc: In function 'std::from_chars_result std::from_chars(const char*, const char*, _Float128&, chars_format)':
 src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:1281:10: error: 'from_chars_strtod' was not declared in this scope
     1281 |   return from_chars_strtod(first, last, value, fmt);
          |          ^~~~~~~~~~~~~~~~~
    make[6]: *** [Makefile:587: floating_from_chars.lo] Error 1
    make[6]: *** Waiting for unfinished jobs....

For now require GCC older than 13 when using uclibc.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-14 10:35:14 +12:00
Chris Packham
f00a45eba6 gcc: Add 13.1.0
Add gcc 13.1.0 with rebased patches against the new version.

https://gcc.gnu.org/pipermail/gcc-announce/2023/000175.html
https://gcc.gnu.org/gcc-13/changes.html
https://gcc.gnu.org/gcc-13/porting_to.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-14 10:35:14 +12:00
Chris Packham
8e55ab0607 gcc: Add 12.3.0
Add gcc 12.3.0 and regenerate patches against the new version.

https://gcc.gnu.org/pipermail/gcc-announce/2023/000176.html
https://gcc.gnu.org/gcc-12/changes.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-05-14 10:34:29 +12:00
Bryan Hundven
2282a97e3c
Merge pull request #1948 from bhundven/update_linux_6_3_1
Update linux 6.3.0 -> 6.3.1
2023-05-11 02:13:55 -07:00
Yuriy Kolerov
ce6467faa1 newlib: Add missing linker options for nano.specs
Old options %(newlib_nano_link) for the linker must be passed
otherwise linking may fail. E.g., in case of multilib
configurations a correct emulation mode may be not passed.

Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
2023-05-10 17:30:15 +04:00
Bryan Hundven
2598699529 Update linux 6.3.0 -> 6.3.1
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2023-05-07 12:56:22 -07:00
Chris Packham
943364711a uClibc-ng: Add 1.0.43
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/log/?qt=range&q=v1.0.42..v1.0.43

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-04-30 20:28:57 +12:00
Chris Packham
b646773ebb gcc/12.2.0: Regenerate patches
Run the patches through

  ./maintainer/manage-packages.sh -P -s gcc-12.2.0

to mop up the fact that we'd ended up with two 0005 patches.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-04-30 20:28:57 +12:00
Chris Packham
6b5604e89e linux: Add 6.3 bump LTS
Add 6.3
Update 6.2.7 -> 6.2.12
Update 6.1.20 -> 6.1.25
Update 5.15.103 -> 5.15.108
Update 5.10.175 -> 5.10.179
Update 5.4.237 -> 5.4.242
Update 4.19.278 -> 4.19.282
Update 4.14.310 -> 4.14.314

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-04-30 20:28:57 +12:00
MOHAMED_OS
7476128546 Add zstd 1.5.5
Signed-off-by: MOHAMED_OS <mohamed19eng@gmail.com>
2023-04-30 20:28:39 +12:00
Chris Packham
c116c9a2cd isl: Add isl-0.26
Changes:
  - fix inherited overloaded methods in Python bindings
  - decompose topological sort of clusters in incremental scheduler
  - improved isl_pw_aff_list_{min,max}
  - add some convenience functions
  - more exports to (templated C++) bindings
  - slightly improved conversion from binary relation to function

https://repo.or.cz/isl.git/shortlog/?qt=range&q=isl-0.25..isl-0.26

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-04-19 15:14:30 +12:00
Keith Packard
918c2a82c8 risc-v: Provide sample for picolibc-only toolchain
This builds a multilib toolchain using picolibc. The default target
is rv32imac

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-19 15:13:55 +12:00
Keith Packard
56dbe2ad30 arm-picolibc-eabi: Specify default linker memory layout
Picolibc now lets you configure the default memory layout used in the
default linker script. Add values to the sample arm-picolibc-eabi
configuration that sets values appropriate for typical cortex m
processors run under qemu.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-19 15:13:55 +12:00
Keith Packard
c33c2bf04e picolibc: Allow default memory layout values to be configured
These values are used when constructing the default linker scripts
used with picolibc. Setting reasonable defaults allows simple test
applications to be compiled without additional configuration.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-19 15:13:55 +12:00
Keith Packard
06faf2002e picolibc: Don't disable libstdc++ wchar_t for 1.8.1 or newer
Picolibc 1.8.1 has wchar_t stdio support, so libstdc++ can include
it.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-19 15:13:55 +12:00
Keith Packard
7e39f11421 picolibc: Bump to 1.8.1
New upstream version.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-19 15:13:55 +12:00
James Knight
b42079e92a config/arch/x86: enable libsanitizer
GCC's libsanitizer module does provide a subset of support for x86
targets (e.g. libasan). GCC's `libsanitizer/configure.tgt` file only
outlines flags for optional sanitizers.

Signed-off-by: James Knight <james.d.knight@live.com>
2023-04-13 11:15:49 +12:00