5688 Commits

Author SHA1 Message Date
fdf3ebb707 Release esp-14.2.0_20241119 esp-14.2.0_20241119 2024-11-20 13:28:58 +07:00
3b7427d0f8 ci: fix upload to github 2024-11-20 13:28:55 +07:00
8dc4427ab9 ci: fix token use 2024-11-19 20:30:57 +07:00
fcfaa1f2a7 Release esp-14.2.0_20240906 esp-14.2.0_20240906 2024-09-06 16:38:04 +07:00
1f441f0380 Release esp-14.2.0_20240903 esp-14.2.0_20240903 2024-09-03 11:49:31 +07:00
804941e0d2 samples: add picolibc option -Dposix-console=true 2024-09-02 16:46:29 +08:00
e87db41164 picolibc: fix c++config.h installation 2024-09-02 16:46:29 +08:00
b1e0a268b1 fix reproducible builds between native and cross builds 2024-08-29 14:33:18 +07:00
270bed0416 ci: fix windows_manifest repo clone 2024-08-25 16:56:51 +07:00
ba34f99776 samples: fix reproducible builds between native and cross builds 2024-08-25 14:25:24 +08:00
fa6dbb1113 ci: add image build stage 2024-08-25 14:24:36 +08:00
0e51843c06 picolibc: fix libstd++ build
When building libstd++ toolchain should not use includes from newlib
because it places __getreent calls into the lib. So, it's definitely
wrong

This change is a continuation of the commit:
046d9480 crosstool-ng: fix libstdc++ configuration for canadian builds
2024-08-25 14:23:50 +08:00
27d8f45acf picolibc: add -Dlibgccdir option 2024-08-25 14:23:50 +08:00
1640d9d6ca samples/esp: include picolibc into toolchain 2024-08-25 14:23:50 +08:00
6269489bc5 samples: remove obsolete xtensa-esp32XX-elf targets 2024-08-22 16:20:33 +07:00
3393c69b56 Release esp-13.2.0_20240530 esp-13.2.0_20240530 2024-05-30 19:23:43 +04:00
6e630e7186 ci: fix rust crates fetching 2024-05-30 19:23:43 +04:00
0f628e2b4a ci: add platformio package.json to distros 2024-05-30 17:08:36 +04:00
9c632e0d7d xtensa: update bin-wrappers to fix 8dot3 naming issue 2024-05-30 17:08:31 +04:00
f9d86c153a ci: add windows mainfest embedding to enable LongPath 2024-05-30 17:08:27 +04:00
b0eba7d733 Release esp-13.2.0_20240305 esp-13.2.0_20240305 2024-03-06 15:08:24 +04:00
6f811883f2 newlib: change xtensa core-isa.h location 2024-03-06 15:08:24 +04:00
046d948044 crosstool-ng: fix libstdc++ configuration for canadian builds
libstdc++-v3/configure script can't find crt0.o to compile executable.
After this it attempts to verify if libc features are enabled using only
preprocessing, leading to false-positive results.

This problem appeared only for canadian builds.

https://github.com/crosstool-ng/crosstool-ng/issues/2110
2024-03-06 15:08:19 +04:00
101d1004eb ci: initial commit 2024-03-05 17:26:35 +04:00
ac38fc8a92 samples: add riscv32-esp-elf and xtensa-esp-elf 2024-02-18 00:48:43 +04:00
be5b742f21 crosstool-ng: indiscriminate fix to build on macOs host, allow case-insensitive. It works if we don't use linux headers 2024-02-17 22:45:59 +04:00
43d1711ee0 crosstool-ng: fix version generation from tags 2024-02-17 22:45:54 +04:00
e7800659fc newlib: Add an auxiliary newlib configuration if needed 2024-02-17 22:45:31 +04:00
334f6d6479 moxiebox: Use newlib 4.2
moxie-unknown-moxiebox has problems building with newlib 4.3

  ld: /lib/libc.a(libc_a-closer.o): in function `_close_r':
  newlib/libc/reent/closer.c:47: undefined reference to `_close'

There are some Makefile changes in newlib 4.3 and it's likely previously
this config was picking up `_close` from libsim.a. For now just pin the
newlib version back to 4.2 in the moxie-unknown-moxiebox config.

Resolves #2036
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-24 15:23:02 +13:00
c175b21ce4 gcc: Bring in upstream fixes for CVE-2023-4039
Bring in the fixes for GCC 7 through 13.

https://rtx.meta.security/mitigation/2023/09/12/CVE-2023-4039.html
https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-17 15:41:50 +12:00
977ed69427 mpc: Mark 1.0.3 and 1.1.0 as obsolete
Mark these versions as obsolete so they can be dropped after the next
release.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:31 +12:00
daa93b0117 mpc: Update URLs
Update the URLs for MPC to use https and the new gitlab.inria.fr
repository.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:31 +12:00
fe5d8ca9eb mpfr: Mark 3.1.6, 4.0.2 and 4.1.0 as obsolete
Mark these older versions as obsolete. These will be dropped after the
next release.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:31 +12:00
dfeb620888 mpfr: Add 4.2.1
https://www.mpfr.org/mpfr-4.2.1/

This fixes compatibility issues with hosts using newer glibc (>=2.37).

Fixes #2017, #2029

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:31 +12:00
e5046f3e84 mpfr: Update mirror URL
Update the URL to use https.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:31 +12:00
2b2183b321 gcc: Add patch to avoid reference to __pthread_key_create
A toolchain uclibc-ng-1.0.43, binutils-2.40 and gcc-13.2.0 hits the
following error when building:

  ld.bfd: isl_test2.o: non-canonical reference to canonical protected function `__pthread_key_create' in x86_64-multilib-linux-uclibc/sysroot/lib64/libc.so.1
  ld.bfd: failed to set dynamic section sizes: bad value

The reference comes from libgcc where it is using the
__pthread_key_create() symbol to detect the use of pthreads with GNU
libc. Prevent this on uclibc-ng with an explicit condition.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111322

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-13 13:55:00 +12:00
6780e48aca xtensa-fsf-elf: Unset NEWLIB_GLOBAL_ATEXIT
NEWLIB_GLOBAL_ATEXIT needs to be set to y for modern newlib versions.
Commit 227d99d7 ("newlib: add 4.3.0.20230120") ensured this was done.
But xtensa-fsf-elf uses a newlib version from before this so it needs to
explicitly opt out.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-07 12:24:32 +12:00
cf25b4edb0 glibc: Fix SVE detection on aarch64
glibc-2.28 complains:

  configure: error: use a compatible toolchain or configure with --disable-mathvec (this results in incomplete ABI).

Apparently this is a problem in the way GCC passes the -mcpu and -march
values to the assembler. As a workaround have the configure check pass
-mcpu as well to override anything we're passing in the environment.

Patch and explanation taken from the Yocto project with thanks.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-01 16:34:58 +12:00
b46a0dbd1b samples: riscv32-picolibc-elf: Drop invalid config
CC_CC_GCC_ENABLE_DEFAULT_PIE=n is invalid Kconfig syntax for an option
that was intentionally disabled the saved config would be

  '# CC_CC_GCC_ENABLE_DEFAULT_PIE is not set'

but the DEFAULT_PIE option isn't selectable for RISCV && BARE_METAL so
the correct thing to do is just remove the config.

This also picks up a change regenerating the saved sample due to changes
in the Kconfig ordering.

Fixes #2019
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-09-01 16:34:31 +12:00
5a09578b67 gcc/13.2.0: Add patch with fixes for m68k soft float code
Here's a patch I've sent upstream which fixes a range of floating
point bugs in libgcc.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-08-25 18:13:37 +12:00
9473e7a481 glibc: Add option for building libcrypt
As of glibc-2.38 libcrypt is not built by default. Add an option to
allow building libcrypt support into glibc.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-25 18:13:06 +12:00
981043dc88 Do not process 'packages' folder twice
The folder 'packages' is processed in bootstrap, so there is no
need to process it again in Makefile.
This fixes a regression introduced in eb62ec3fbe3982f5f16561675fd0820d4313a0b4

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2023-08-21 20:31:24 +12:00
f064a63c6f gcc: Add patch to resolve libsanitizer build issue
libsanitizer has problems intercepting crypt() and crypt_r() with newer
glibcs. Bring in an upstream patch that drops support for these from
ASAN.

d7bead8336
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111057

Fixes #2010
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-19 16:47:15 +12:00
fab9efd8fa gdb: fix build with recent ncurses
For mingw host a special macro NCURSES_STATIC must be defined.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2023-08-15 16:26:10 +12:00
fd04f43617 Add option to re-enable ˋlibstdc++ˋ on avr targets.
Due to the small flash space on AVR devices the library containing the
standard types in C++ (ˋlibstdc++ˋ) does not get built normally when
enabling the C++ language support.

This option is an easy way to go back to the PC-way where ˋlibstdc++ˋ is
built.

Signed-off-by: Quentin Boswank <qubos@outlook.de>
2023-08-14 16:12:12 +12:00
cd8a5b72b5 Revert "libc/uclibc: Require GCC12 or older"
This reverts commit 5427dac45c12f6be8e3fca7bc38b9abcebb4ec87. The issues
that were causing this have been resolved with some updates so allow the
uclibc+gcc13 combination again.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-13 11:15:29 +12:00
b7a25ee7b0 uClibc-ng: Bring in upstream fix for static builds
Bring in an upstream fix that affects static builds of uClibc-ng.

Fixes #1959
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-13 11:15:29 +12:00
35676f3a2c CI: build glibc toolchains without debug symbols
Disable CT_GLIBC_ENABLE_DEBUG to hopefully make the toolchains use less
disk-space on the free-tier github action runners.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-10 14:01:58 +12:00
2ef5c62c68 glibc: Add glibc-2.38
https://sourceware.org/pipermail/libc-announce/2023/000036.html

Add the new version and carry through the ARC700 patch.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2023-08-10 14:01:58 +12:00
285915cb38 ncurses: correctly parse sofisticated gcc version
On canadian cross build-gcc reports its version as '13-win32'.
ncurses >=6.3 correctly interprets this line as '13', but older
ncurses versions fail and jump into wrong conclusions.

Let's cherry-pick related changes from mainline ncurses.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2023-08-04 16:44:14 +12:00